![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SuSE Linux Kernel & Veritas MultiNIC Configuration...!!! | jumadhiya | Linux | 1 | 02-29-2008 03:46 AM |
| Much time in insmod of huge kernel module | ptprabu | High Level Programming | 0 | 11-28-2007 07:48 AM |
| kernel-kernel call communication | aureliano | High Level Programming | 5 | 06-05-2007 02:48 PM |
| Kernel panic - not syncing: cannot execute a PAE-enabled kernel on PAE-less CPU | dave043 | Linux | 2 | 05-09-2007 10:57 PM |
| Making Socket System Call From Linux Kernel Module? | mian_m_hamayun | Linux | 0 | 04-06-2005 06:34 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
max number of slabs per kernel module (kernel 2.6.17, suse)
Hi All,
Is there a max number of slabs that can be used per kernel module? I'm having a tough time finding out that kind of information, but the array 'node_zonelists' (mmzone.h) has a size of 5. I just want to avoid buffer overruns and other bad stuff. Cheers, Brendan |
| Forum Sponsor | ||
|
|
|
|||
|
Thanks for the clarification Perderabo! I don't know why I got to thinking of slab spaces as 'zones'. I think I'll buy that book too...
I am aware that there is a limited amount of memory space, however is it not more efficient to use slabs (especially for allocations in the data path) since they result in less fragmentation and unused pages are reclaimed by the kernel anyway? |
|
||||
|
Not sure I follow you... more efficient than what? It sounds like you're still trying to compare slabs to zones. (That's like comparing TCP to ethernet.) But yes, slabs are efficient and tend to result in less fragmentation. However that "unused pages..." comment is off the mark. A freed slab tends to stay in its cache ready to be allocated again. Please read the book...I don't want to type the whole thing in. When you do, skip to page 329 "Interfacing the Slab Allocator with the Zoned Page Frame Allocator".
|
|
|||
|
eh, ye tcp to ethernet... I wouldn't say I'm an expert or anything.
As regards to free pages - they may tend to stay available in the short term but they do eventually get reclaimed. I would agree it's not immediate though. Thanks, I'll read your reference when I get my hands on the book! |
|||
| Google The UNIX and Linux Forums |