Главная страница


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)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 ufs2 and dynamic inodes allocation   Igor Sysoev   07 Feb 2006 13:53:12 
 Re: ufs2 and dynamic inodes allocation   Anton Yuzhaninov   07 Feb 2006 14:28:07 
 Re: ufs2 and dynamic inodes allocation   Igor Sysoev   07 Feb 2006 14:58:53 
 Re: ufs2 and dynamic inodes allocation   Igor Sysoev   07 Feb 2006 15:29:06 
 ufs2 and dynamic inodes allocation   Alex Semenyaka   07 Feb 2006 20:48:36 
 Re: ufs2 and dynamic inodes allocation   vladimir.sharun@ukr.net   07 Feb 2006 18:37:51 
 Re: ufs2 and dynamic inodes allocation   Igor Sysoev   07 Feb 2006 18:48:02 
 Re: ufs2 and dynamic inodes allocation   vladimir.sharun@ukr.net   07 Feb 2006 19:11:29 
 Re: ufs2 and dynamic inodes allocation   Igor Sysoev   07 Feb 2006 19:41:13 
 Re: ufs2 and dynamic inodes allocation   Igor Sysoev   07 Feb 2006 23:25:38 
 Re: ufs2 and dynamic inodes allocation   Anton Yuzhaninov   08 Feb 2006 16:21:29 
 Re: ufs2 and dynamic inodes allocation   Igor Sysoev   08 Feb 2006 17:20:40 
 Re: ufs2 and dynamic inodes allocation   Igor Sysoev   10 Feb 2006 14:52:56 
 Re: ufs2 and dynamic inodes allocation   Anton Yuzhaninov   10 Feb 2006 19:14:30 
 Re: ufs2 and dynamic inodes allocation   Vadim Mikhailov   09 Feb 2006 23:40:00 
 Re: ufs2 and dynamic inodes allocation   Igor Sysoev   10 Feb 2006 14:41:15 
 Re: ufs2 and dynamic inodes allocation   Vadim Goncharov   12 Feb 2006 03:43:59 
 Re: ufs2 and dynamic inodes allocation   Igor Sysoev   13 Feb 2006 18:44:29 
 Re: ufs2 and dynamic inodes allocation   Vadim Goncharov   16 Feb 2006 16:37:40 
Архивное /ru.unix.bsd/65776fe8eb93.html, оценка 2 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional