Re: About Slab Allocator

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

 



Hi Kuncoro,

> Hi Mauricio,
> 
> AFAIK, the existence of the slab allocator is to reduce the external
> fragmentation of Buddy System.(Calls to Buddy system 'dirties' the
> cache).

The slab allocator is to reduce the INTERNAL fragmentation of Buddy
System as you can see in http://en.wikipedia.org/wiki/Slab_allocation.

> However, the slab itself introduces internal fragmentation caused by
> mismatch of the requested size and the allocated one.
> Correct me if i am wrong.

The slab is used to solve the internal fragmentation caused by buddy
system and in practice the internal fragmention still exists in slab
allocation as mentioned by Manish Regmi, but slab allocator can reduce
such internal fragmentation that buddy allocator is not able to do.

BR,

Mauricio Lin.

> Ciao,
> Kuncoro Irawan
> 
> On 8/11/06, Mauricio Lin <mauriciolin2000@xxxxxxxxxxxx> wrote:
> >
> > Hi all,
> >
> > In theory the slab allocation causes no internal fragmentation, but
> in
> > the  Linux kernel implementation it just reduces the internal
> > fragmentation, since the internal fragmentation still exists.
> >
> > Is my opinion correct?
> >
> > BR,
> >
> > Mauricio Lin.
> >
> >
> >
> > _______________________________________________________
> > Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu
> celular.
> > Registre seu aparelho agora!
> > http://br.mobile.yahoo.com/mailalertas/
> >
> >
> >
> > --
> > Kernelnewbies: Help each other learn about the Linux kernel.
> > Archive:       http://mail.nl.linux.org/kernelnewbies/
> > FAQ:           http://kernelnewbies.org/faq/
> >
> >
> 



	
	
		
_______________________________________________________ 
O Yahoo! está de cara nova. Venha conferir! 
http://br.yahoo.com

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux