DragonFly BSD
DragonFly kernel List (threaded) for 2006-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

vinum start config disk thrashing

From: "Simon 'corecode' Schubert" <corecode@xxxxxxxxxxxx>
Date: Sun, 09 Jul 2006 02:45:12 +0200


I noticed that a "start" in vinum results in quite heavy disk thrasing here. I found out why:

- start results in a "read /dev/ad0 /dev/ad4"
- read tries all slices and partitions therein
- each try opens the partition
- each opening of a partition results in the kernel re-scanning all slice tables and disklabels

so this means for each of my ntfs slices and for my bsd partitions the kernel will read all slice tables (including extended slices) and all disklabels, which is quite a lot.

why don't we cache this information until it is invalidated or something? how would we do that? I found this comment in kern/subr_diskslice.c:dsopen():

/* * XXX reinitialize the slice table unless there is an open device
* on the unit. This should only be done if the media has changed.

and that's obviously the problem.



Serve - BSD     +++  RENT this banner advert  +++    ASCII Ribbon   /"\
Work - Mac      +++  space for low €€€ NOW!1  +++      Campaign     \ /
Party Enjoy Relax   |   http://dragonflybsd.org      Against  HTML   \
Dude 2c 2 the max   !   http://golden-apple.biz       Mail + News   / \

Attachment: signature.asc
Description: OpenPGP digital signature

[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]