LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 10-23-2013, 09:14 AM   #1
macogala
LQ Newbie
 
Registered: Jul 2011
Location: Italy
Distribution: Debian
Posts: 6

Rep: Reputation: Disabled
Post Compiling the kernel - Memory Management: SLAB or SLUB?


Hi you all guys!

I've decided to try to configure & compile a kernel on my own. This is the first time I do that, and I'm following a pretty recent guide:
http://www.linux.org/threads/%EF%BB%...oduction.4203/

I'm at a point where I'm being asked to select the SLAB allocator. I had absolutely no idea about what it is, so I have surfed the web a bit, and got an idea about that.

Now I have the 2 options(I'm configuring kernel v3.11.6) SLAB or SLUB -even if the guide tells me I am supposed to be displayed 3 options -SLAB, SLUB and SLOB-, but i think SLOB has been removed in v3.11.6(in the guide he's compiling v3.9.4).

Anyway, the only thing I've found so far is that SLUB is more recent and apparently became the default allocator from v2.6.23, even if it looks the default for me is SLAB.

Well, my question is: what is the best, why and what are the differences?

Cheers from Italy guys,

Marco
 
Old 10-23-2013, 10:25 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,252

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
From a quick read, slub is slab with shorter queues, and therefore is preferable.
I gather slub is not 100% so slab is the backup.
 
  


Reply

Tags
allocation, compilekernel, kernel, memory


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel memory leak. slab debug. hellolinux Linux - Kernel 2 04-17-2013 05:44 AM
Switching between slub or slab allocators patapout Linux - Software 6 02-02-2012 04:34 PM
Pthread and slab memory ankitm Linux - General 0 12-20-2011 05:35 AM
SLAB vs SLUB Allocator prabagaranvt Linux - Kernel 3 08-04-2011 07:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration