|
ru.unix.bsd- RU.UNIX.BSD ------------------------------------------------------------------ From : Igor Sysoev 2:5020/400 10 Feb 2006 14:41:15 To : Vadim Mikhailov Subject : Re: ufs2 and dynamic inodes allocation -------------------------------------------------------------------------------- Vadim Mikhailov <Vadim.Mikhailov@p11.f11.n5071.z2.fidonet.org> wrote: > Вторник Февраль 07 2006 12:53, Igor Sysoev wrote to All: > > IS> Hесмотря на то, что в книжке "The Design and Implementation of the > IS> FreeBSD Operating System" МакКузик рассказывает, что в UFS2 иноды > IS> выделяются динамически, это не так. Они очень легко могут кончится. > IS> Be warned. > > Hасколько я понимаю, там написано не "dynamic allocation", > а "lazy initialization" (http://sixshooter.v6.thrupoint.net/jeroen/faq.html). > Т.е. количество инодов заранее ограничено параметрами создания, но их > инициализация происходит по мере небходимости. Это позволяет делать быстрый > newfs (и возможно fsck на незаполненной fs), но не позволяет добавить иноды к > существующей fs без переинициализации. В этом FAQ написано правильно. А вот автор UFS2 в вышеупомянутой книжке пишет буквально следующее: Dynamic Inodes A common complaint about the UFS1 filesystem is that it preallocates all its inodes at the time that the filesystem is created. For filesystems with millions of files, the initialization of the filesystem can take several hours. Additionally, the filesystem creation program, newfs, had to assume that every filesystem would be filled with many small files and allocate a lot more inodes than were likely to ever be used. If a UFS1 filesystem uses up all its inodes, the only way to get more is to dump, rebuild, and restore the filesystem. The UFS2 filesystem resolves these problems by dynamically allocating its inodes. [ ... ] Лично я прочитал это как то, что в UFS2 нет ограничения на число inodes, присущего UFS1. Далее, автор рассматривает lazy initialization как побочное преимущество dynamic allocation: A side benefit of dynamically allocating inodes is that the time to create a new filesystem in UFS2 is about 1 percent of the time that it takes in UFS1. A filesystem that would take one hour to build in a UFS1 format can be built in under a minute in the UFS2 format. [ ... ] -- Игорь Сысоев http://sysoev.ru --- ifmail v.2.15dev5.3 * Origin: Demos online service (2:5020/400) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.unix.bsd/65776fe8eb93.html, оценка из 5, голосов 10
|