本文提出了一种支持事务内I/O操作的硬件事务存储系统结构.该系统基于多核处理器结构和已有的cache一致性机制,通过增加事务缓冲区和相关硬软件,实现对事务的支持.事务内I/O操作的实现基于事务提交锁的部分提交以及事务线程的阻塞/唤醒机制,解决了事务内I/O操作所面临的回滚、事务迁移和缓冲区溢出等问题.系统在模拟器中实现,并利用5个测试程序对系统的性能进行了评价分析,结果表明事务程序在系统中的性能相对于锁程序得到提升.
To support I/O operations inside transactions,this paper proposes a hardware transactional memory system architecture based on multi-core processor and current cache coherent mechanisms,It supports transactions by adding transactional buffer and related hardware and software.I/O operations within transactions are implemented by partial commit based on commit-lock,and blocking / waking-up of transactional threads.This solution solves or avoids the problems that I/O operations within transactions faced,including rollback,transaction migration and transactional buffer overflow.The system has been implemented by simulation.Its performance is evaluated by 5 benchmark applications.Simulation results show that the transactional programs executed in our system outperformed traditional lock-based programs.