Skip to contentSkip to conversation

Reiser4 does a disk write with even no disk activity during every fsync()

DISCUSSION Xu CanHao 1 participant 1 message Mar 28, 2007

lore
Share & tools
lore

Xu CanHao

author
#0 lore raw

Hi!

I see a previous topic talking about sync(), I wrote a program write() a 44B file, and then fsync()
I used "#iostat -d 1 -p hda|grep hda3" monitored many times and found:

for a single fsync(), these sectors were wrote:
ext2 16
ext3j/o/w 32
jfs 16
xfs 10
reiser3 48
reiser4 128

for multiple fsync(), I use "while (1) {sleep(1); fsync()}"
ext2 16/0/0/0/0/0.....
ext3j/o/w 32/0/0/0/0/0.....
jfs 16/0/0/0/0/0.....
xfs 10/0/0/0/0/0.....
reiser3 48/0/0/0/0/0.....
reiser4 128/48/48/48/48/48.....

so you see while there is no other disk activities in /dev/hda3, reiser4 continues writing something......?