Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* exploit preload daemon to defragment most needed files
@ 2013-05-05  9:42 Kai Krakow
  2013-05-05 13:57 ` Tomasz Torcz
  0 siblings, 1 reply; 3+ messages in thread
From: Kai Krakow @ 2013-05-05  9:42 UTC (permalink / raw)
  To: linux-btrfs

[-- Attachment #1: Type: text/plain, Size: 899 bytes --]

Hey list,

Although this is about the preload daemon, my intended audience for this 
matter is the btrfs community. So I'm posting this here.

I've created a small script here[1] to read the preload daemon state file 
and use this to run the btrfs defragmenter/compressor on these files. The 
idea was to have some proof-of-concept to maybe integrate defragmentation 
capabilities directly into preload.

While I'd like to read some feedback from the community, maybe collect some 
more ideas, I already discovered one drawback which is a show-stopper: btrfs 
won't defragment files currently in use (probably memory-mapped files only 
but these are a lot while a desktop env is running). I didn't look into it 
any closer yet. And I didn't run benchmarks. But my first impressions are 
that preloading is a bit faster and less io-intensive.

Regards,
Kai

[1]: https://gist.github.com/kakra/5520200

[-- Attachment #2: defrag-preloaded.rb --]
[-- Type: application/x-ruby, Size: 600 bytes --]

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

end of thread, other threads:[~2013-05-05 16:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-05  9:42 exploit preload daemon to defragment most needed files Kai Krakow
2013-05-05 13:57 ` Tomasz Torcz
2013-05-05 16:21   ` Kai Krakow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox