linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] few hacks to optimize write-back
@ 2009-05-22 18:38 Artem Bityutskiy
  2009-05-22 18:38 ` [RFC] [PATCH] write-back: introduce a handy helper function Artem Bityutskiy
  2009-05-22 18:38 ` [RFC] [PATCH] write-back: do not wake up unnecessarily Artem Bityutskiy
  0 siblings, 2 replies; 3+ messages in thread
From: Artem Bityutskiy @ 2009-05-22 18:38 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: Artem Bityutskiy

Hi,

I've spotted that the periodic write-back threads wakes up every
5 seconds, even though there are no dirty data. And it still wakes
up and wake up and disturbs the CPU which is resting in a low
power consumption state.

I've tried to optimize this a bit and make the periodic
write-back stop when there are no dirty data.

Here are 2 patches which kind of help. They are just quick
hacks. I did not want to spend much time on this and I'd
like to get some comments/directions first:
 * I'm not sure I went the right path;
 * there are new per-BDI patches from Jens, and I probably
   should work on top of them.

AFAIU, the periodic write-back may be stopped if there are
no dirty inodes and no dirty super-blocks. And it should
start an inode or superblock is marked as dirty.

For inodes, I've hooked to '__mark_inode_dirty()'.

For superblocks. Well, probably a new VFS helper like
'mark_sb_dirty()' should be introduced. Also, FSes
currently may mark SB as clean directly, but probably
they should use a 'mark_sb_clean()' helper. FSes
should not touch sb->s_dirt directly. Anyway, I have
not implemented this part.

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-05-22 16:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-22 18:38 [RFC] few hacks to optimize write-back Artem Bityutskiy
2009-05-22 18:38 ` [RFC] [PATCH] write-back: introduce a handy helper function Artem Bityutskiy
2009-05-22 18:38 ` [RFC] [PATCH] write-back: do not wake up unnecessarily Artem Bityutskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).