public inbox for linux-bcache@vger.kernel.org
 help / color / mirror / Atom feed
* [bcachefs] time of mounting filesystem with high number of dirs
@ 2016-09-07 20:09 Marcin
  2016-09-07 21:12 ` Kent Overstreet
  0 siblings, 1 reply; 16+ messages in thread
From: Marcin @ 2016-09-07 20:09 UTC (permalink / raw)
  To: linux-bcache

Hi!
I'm aware that performance doesn't have high priority, it's something 
for TODO.
I created bcachefs on ~10GB partition, copied some files and next I 
created huge number of directories and files. Problem is in the total 
time needed for mounting filesystem.
# time mount -t bcache /dev/sde1 /mnt/test/

real    12m20.880s
user    0m0.000s
sys     1m18.270s

I looked at iostat, mounting needs to read from disk 10083588 "kB_read". 
Device has size 10485760kB, so it looks that it reads almost the same 
amount of data as partition size. Maybe mount time can be lower? Maybe 
there can be less reads or reads could be more sequential?

Additional informations:
# time find /mnt/test/ -type d |wc -l
10564259

real    10m30.305s
user    1m6.080s
sys     3m43.770s

# time find /mnt/test/ -type f |wc -l
9145093

real    6m28.812s
user    1m3.940s
sys     3m46.210s

RAM: 1GB
CPU: core2duo - 1.86GHz
hdd: old disk SAS 15k
hdd controller: HP P400 with 512MB cache with battery

Marcin

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

end of thread, other threads:[~2016-10-18 13:19 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-07 20:09 [bcachefs] time of mounting filesystem with high number of dirs Marcin
2016-09-07 21:12 ` Kent Overstreet
2016-09-09  1:56   ` Kent Overstreet
2016-09-09  2:07     ` Christopher James Halse Rogers
2016-09-09  7:52     ` Marcin Mirosław
2016-09-09  9:00       ` Kent Overstreet
2016-09-12 12:59         ` Marcin
2016-09-13  2:35           ` Kent Overstreet
2016-10-05 12:51             ` Marcin Mirosław
2016-10-06 13:01               ` Kent Overstreet
2016-10-18 12:14         ` [bcachefs] time of mounting filesystem with high number of dirs aka ageing filesystem Marcin Mirosław
2016-10-18 12:45           ` Kent Overstreet
2016-10-18 12:51             ` Marcin Mirosław
2016-10-18 13:04               ` Kent Overstreet
2016-10-18 13:13                 ` Marcin Mirosław
2016-10-18 13:19               ` Kent Overstreet

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