procfs: provide slub's /proc/slabinfo
Subsystems (5)
PATCH 1/1 procfs: provide slub's /proc/slabinfo
SLUB's new slabinfo isn't there: it looks as if a last minute change to Pekka's patch left it dependent on CONFIG_SLAB at the procfs end:
allow for CONFIG_SLUB too.
---
To minimize ifdeffery, this leaves it with S_IWUSR though unwritable:
I'm assuming that's acceptable.
fs/proc/proc_misc.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
fs/proc/proc_misc.c +5 -2
@@ -410,15 +410,18 @@ static const struct file_operations proc };#endif -#ifdef CONFIG_SLAB +#if defined(CONFIG_SLAB ) || defined(CONFIG_SLUB )static int slabinfo_open (struct inode *inode,struct file *file) {return seq_open (file, &slabinfo_op); } +static const struct file_operations proc_slabinfo_operations = { .open = slabinfo_open, .read = seq_read, +#ifdef CONFIG_SLAB .write = slabinfo_write, +#endif .llseek = seq_lseek, .release = seq_release, };
@@ -728,7 +731,7 @@ void __init proc_misc_init(void)#endif create_seq_entry ("stat" ,0 , &proc_stat_operations);create_seq_entry ("interrupts" ,0 , &proc_interrupts_operations); -#ifdef CONFIG_SLAB +#if defined(CONFIG_SLAB ) || defined(CONFIG_SLUB )create_seq_entry ("slabinfo" ,S_IWUSR |S_IRUGO ,&proc_slabinfo_operations);#ifdef CONFIG_DEBUG_SLAB_LEAK create_seq_entry ("slab_allocators" ,0 ,&proc_slabstats_operations);
Quoted 5 lines · Hugh Dickins
SLUB's new slabinfo isn't there: it looks as if a last minute change to Pekka's patch left it dependent on
CONFIG_SLABat the procfs end:
allow forCONFIG_SLUBtoo.Signed-off-by Hugh Dickins <[email protected]>
I just saw the patch in Linus tree and wondered how this is going to work without the piece that you are providing here.
Hi,
Quoted 8 lines · Hugh Dickins
SLUB's new slabinfo isn't there: it looks as if a last minute change to Pekka's patch left it dependent on
CONFIG_SLABat the procfs end:
allow forCONFIG_SLUBtoo.Signed-off-by Hugh Dickins <[email protected]>---
To minimize ifdeffery, this leaves it withS_IWUSRthough unwritable:
I'm assuming that's acceptable.
I already sent the remaining bits to Linus but this looks much cleaner. Thanks Hugh!
Quoted 5 lines · Pekka Enberg
I already sent the remaining bits to Linus but this looks much cleaner. Thanks Hugh!
Acked-by Pekka Enberg <[email protected]>
Actually, I'd much rather just do this instead (on top of your patch)
It just creates a new CONFIG_SLABINFO that automatically has the right dependencies (ie depends on PROC being on, and either SLAB or SLUB), and then both SLAB and SLUB just have the exact same interfaces.
Which means that SLOB could also trivially implement the same thing, with no new #ifdef'fery or other crud.
It's totally untested, but looks fairly obvious.
Linus
--- fs/proc/proc_misc.c | 21 ++------------------- include/linux/slab.h | 5 +++++ include/linux/slab_def.h | 3 --- include/linux/slub_def.h | 2 -- init/Kconfig | 6 ++++++ mm/slab.c | 2 +- mm/slub.c | 11 +++++++++-- 7 files changed, 23 insertions(+), 27 deletions(-)
fs/proc/proc_misc.c +2 -19
@@ -410,7 +410,7 @@ static const struct file_operations proc_modules_operations = { };#endif -#ifdef CONFIG_SLAB +#ifdef CONFIG_SLABINFO static int slabinfo_open (struct inode *inode,struct file *file) {return seq_open (file, &slabinfo_op);
@@ -451,20 +451,6 @@ static const struct file_operations proc_slabstats_operations = {#endif #endif -#ifdef CONFIG_SLUB -static int slabinfo_open (struct inode *inode,struct file *file) -{ -return seq_open (file, &slabinfo_op); -} - -static const struct file_operations proc_slabinfo_operations = { - .open = slabinfo_open, - .read = seq_read, - .llseek = seq_lseek, - .release = seq_release, -}; -#endif -static int show_stat (struct seq_file *p,void *v) {int i;
@@ -742,15 +728,12 @@ void __init proc_misc_init(void)#endif create_seq_entry ("stat" ,0 , &proc_stat_operations);create_seq_entry ("interrupts" ,0 , &proc_interrupts_operations); -#ifdef CONFIG_SLAB +#ifdef CONFIG_SLABINFO create_seq_entry ("slabinfo" ,S_IWUSR |S_IRUGO ,&proc_slabinfo_operations);#ifdef CONFIG_DEBUG_SLAB_LEAK create_seq_entry ("slab_allocators" ,0 ,&proc_slabstats_operations);#endif #endif -#ifdef CONFIG_SLUB -create_seq_entry ("slabinfo" ,S_IWUSR |S_IRUGO , &proc_slabinfo_operations); -#endif create_seq_entry ("buddyinfo" ,S_IRUGO , &fragmentation_file_operations);create_seq_entry ("pagetypeinfo" ,S_IRUGO , &pagetypeinfo_file_ops);create_seq_entry ("vmstat" ,S_IRUGO , &proc_vmstat_file_operations);
include/linux/slab.h +5 -0
@@ -271,5 +271,10 @@ static inline void *kzalloc(size_t size, gfp_t flags)return kmalloc (size, flags | __GFP_ZERO); } +#ifdef CONFIG_SLABINFO +extern const struct seq_operations slabinfo_op; +ssize_t slabinfo_write (struct file *,const char __user *,size_t ,loff_t *); +#endif +#endif /* __KERNEL__ */ #endif /* _LINUX_SLAB_H */
include/linux/slab_def.h +0 -3
@@ -95,7 +95,4 @@ found:#endif /* CONFIG_NUMA */ -extern const struct seq_operations slabinfo_op; -ssize_t slabinfo_write (struct file *,const char __user *,size_t ,loff_t *); -#endif /* _LINUX_SLAB_DEF_H */
include/linux/slub_def.h +0 -2
@@ -200,6 +200,4 @@ static __always_inline void *kmalloc_node(size_t size, gfp_t flags, int node) }#endif -extern const struct seq_operations slabinfo_op; -#endif /* _LINUX_SLUB_DEF_H */
init/Kconfig +6 -0
@@ -658,6 +658,12 @@ endchoice endmenu # General setup +config SLABINFO + bool + depends on PROC_FS + depends on SLAB || SLUB + default y + config RT_MUTEXES boolean select PLIST
mm/slab.c +1 -1
@@ -4105,7 +4105,7 @@ out:schedule_delayed_work (work,round_jiffies_relative (REAPTIMEOUT_CPUC )); } -#ifdef CONFIG_PROC_FS +#ifdef CONFIG_SLABINFO static void print_slabinfo_header (struct seq_file *m) {
mm/slub.c +9 -2
@@ -4127,7 +4127,14 @@ __initcall(slab_sysfs_init);/* * The /proc/slabinfo ABI */ -#ifdef CONFIG_PROC_FS +#ifdef CONFIG_SLABINFO + +ssize_t slabinfo_write (struct file *file,const char __user * buffer, +size_t count,loff_t *ppos) +{ +return -EINVAL ; +} +static void print_slabinfo_header (struct seq_file *m) {
@@ -4201,4 +4208,4 @@ const struct seq_operations slabinfo_op = { .show = s_show, }; -#endif /* CONFIG_PROC_FS */ +#endif /* CONFIG_SLABINFO */
Quoted 2 lines · Linus Torvalds
Actually, I'd much rather just do this instead (on top of your patch)
Side note - and I didn't do this - this also allows you to disable slabinfo for those people who think it is pointless.
In particular, you could just make that
init/Kconfig endchoice · line 665
Quoted 5 lines
init/Kconfig +5
-0+config SLABINFO + bool + depends on PROC_FS + depends on SLAB || SLUB + default y
Kconfig entry use something like
bool "Enable /proc/slabinfo support"
(perhaps adding an "if EMBEDDED" at the end), and now people can decide whether they actually want it or not (independently of whether they use SLUB or SLAB or whatever). But I left it hardcoded to on, just because I'm not sure it's worth it.
Linus
Pekka Enberg
Reviewed-byHi Linus,
Quoted 10 lines · Linus Torvalds
Actually, I'd much rather just do this instead (on top of your patch)
It just creates a new
CONFIG_SLABINFOthat automatically has the right dependencies (ie depends on PROC being on, and either SLAB or SLUB), and then both SLAB and SLUB just have the exact same interfaces.Which means that SLOB could also trivially implement the same thing, with no new #ifdef'fery or other crud.
It's totally untested, but looks fairly obvious.
Looks good to me. Thanks! :-)
Quoted 8 lines · Linus Torvalds
Quoted 5 lines · Pekka Enberg
I already sent the remaining bits to Linus but this looks much cleaner. Thanks Hugh!
Acked-by Pekka Enberg <[email protected]>
Quoted 8 lines
Actually, I'd much rather just do this instead (on top of your patch)
It just creates a new
CONFIG_SLABINFOthat automatically has the right dependencies (ie depends on PROC being on, and either SLAB or SLUB), and then both SLAB and SLUB just have the exact same interfaces.Which means that SLOB could also trivially implement the same thing, with no new #ifdef'fery or other crud.
Except SLOB's emulation of slabs is so thin, it doesn't have the relevant information. We have a very small struct kmem_cache, which I suppose could contain a counter. But we don't have anything like the kmalloc slabs, so you'd only be getting half the picture anyway. The output of slabtop would simply be misleading because there are no underlying "slabs" in the first place.
Signature · 1 line
Mathematics is the supreme nostalgia of our time.
Quoted 9 lines · Matt Mackall
Quoted 2 lines
Which means that SLOB could also trivially implement the same thing, with no new #ifdef'fery or other crud.
Except SLOB's emulation of slabs is so thin, it doesn't have the relevant information. We have a very small struct
kmem_cache, which I suppose could contain a counter. But we don't have anything like the kmalloc slabs, so you'd only be getting half the picture anyway. The output of slabtop would simply be misleading because there are no underlying "slabs" in the first place.
i think SLOB/embedded is sufficiently special that a "no /proc/slabinfo" restriction is perfectly supportable. (for instance it's only selectable if CONFIG_EMBEDDED=y) If a SLOB user has any memory allocation problems it's worth going to the bigger allocators anyway, to get all the debugging goodies.
btw., do you think it would be worth/possible to have build mode for SLUB that is acceptably close to the memory efficiency of SLOB? (and hence work towards unifying all the 3 allocators into SLUB in essence)
right now we are far away from it - SLUB has an order of magnitude larger .o than SLOB, even on UP. I'm wondering why that is so - SLUB's data structures _are_ quite compact and could in theory be used in a SLOB-alike way. Perhaps one problem is that much of SLUB's debugging code is always built in?
Ingo
Quoted 18 lines · Ingo Molnar
Quoted 9 lines · Matt Mackall
Quoted 2 lines
Which means that SLOB could also trivially implement the same thing, with no new #ifdef'fery or other crud.
Except SLOB's emulation of slabs is so thin, it doesn't have the relevant information. We have a very small struct
kmem_cache, which I suppose could contain a counter. But we don't have anything like the kmalloc slabs, so you'd only be getting half the picture anyway. The output of slabtop would simply be misleading because there are no underlying "slabs" in the first place.i think SLOB/embedded is sufficiently special that a "no
/proc/slabinfo" restriction is perfectly supportable. (for instance it's only selectable ifCONFIG_EMBEDDED=y) If a SLOB user has any memory allocation problems it's worth going to the bigger allocators anyway, to get all the debugging goodies.
Quoted 3 lines
btw., do you think it would be worth/possible to have build mode for SLUB that is acceptably close to the memory efficiency of SLOB? (and hence work towards unifying all the 3 allocators into SLUB in essence)
There are three downsides with the slab-like approach: internal fragmentation, under-utilized slabs, and pinning.
The first is the situation where we ask for a kmalloc of 33 bytes and get 64. I think the average kmalloc wastes about 30% trying to fit into power-of-two buckets. We can tune our buckets a bit, but I think in general trying to back kmalloc with slabs is problematic. SLOB has a 2-byte granularity up to the point where it just hands things off to the page allocator.
If we tried to add more slabs to fill the gaps, we'd exacerbate the second problem: because only one type of object can go on a slab, a lot of slabs are half-full. SLUB's automerging of slabs helps some here, but is still restricted to objects of the same size.
And finally, there's the whole pinning problem: we can have a cache like the dcache grow very large and then contract, but still have most of its slabs used by pinned dentries. Christoph has some rather hairy patches to address this, but SLOB doesn't have much of a problem here - those pages are still available to allocate other objects on.
By comparison, SLOB's big downsides are that it's not O(1) and it has a single lock. But it's currently fast enough to keep up with SLUB on kernel compiles on my 2G box and Nick had an allocator benchmark where scalability didn't fall off until beyond 4 CPUs.
Quoted 5 lines
right now we are far away from it - SLUB has an order of magnitude larger .o than SLOB, even on UP. I'm wondering why that is so - SLUB's data structures _are_ quite compact and could in theory be used in a SLOB-alike way. Perhaps one problem is that much of SLUB's debugging code is always built in?
I think we should probably just accept that it makes sense to have more than one allocator. A 64MB single CPU machine is very, very different than a 64TB 4096-CPU machine. On one of those, it probably makes some sense to burn some memory for maximum scalability.
Signature · 1 line
Mathematics is the supreme nostalgia of our time.
Quoted 9 lines · Matt Mackall
There are three downsides with the slab-like approach: internal fragmentation, under-utilized slabs, and pinning.
The first is the situation where we ask for a kmalloc of 33 bytes and get 64. I think the average kmalloc wastes about 30% trying to fit into power-of-two buckets. We can tune our buckets a bit, but I think in general trying to back kmalloc with slabs is problematic. SLOB has a 2-byte granularity up to the point where it just hands things off to the page allocator.
The 2 byte overhead of SLOB becomes a liability when it comes to correctly aligning power of two sized object. SLOB has to add two bytes and then align the combined object (argh!). SLUB can align these without a 2 byte overhead. In some configurations this results in SLUB using even less memory than SLOB. See f.e. Pekka's test at
http://marc.info/?l=linux-kernel&m=118405559214029&w=2
Quoted 4 lines
If we tried to add more slabs to fill the gaps, we'd exacerbate the second problem: because only one type of object can go on a slab, a lot of slabs are half-full. SLUB's automerging of slabs helps some here, but is still restricted to objects of the same size.
The advantage of SLOB is to be able to put objects of multiple sizes into the same slab page. That advantage goes away once we have more than a few objects per slab because SLUB can store object in a denser way than SLOB.
Quoted 5 lines
And finally, there's the whole pinning problem: we can have a cache like the dcache grow very large and then contract, but still have most of its slabs used by pinned dentries. Christoph has some rather hairy patches to address this, but SLOB doesn't have much of a problem here - those pages are still available to allocate other objects on.
Well if you just have a few dentries then they are likely all pinned. A large number of dentries will typically result in reclaimable slabs. The slab defrag patchset not only deals with the dcache issue but provides similar solutions for inode and buffer_heads. Support for other slabs that defragment can be added by providing two hooks per slab.
Quoted 4 lines
By comparison, SLOB's big downsides are that it's not O(1) and it has a single lock. But it's currently fast enough to keep up with SLUB on kernel compiles on my 2G box and Nick had an allocator benchmark where scalability didn't fall off until beyond 4 CPUs.
Both SLOB and SLAB suffer from the single lock problem. SLOB does it for every item allocated. SLAB does it for every nth item allocated. Given a fast allocation from multiple processors both will generate a bouncing cacheline. SLUB can take pages from the page allocator pools and allocate all objects from it without taking a lock.
Quoted 10 lines
Quoted 5 lines
right now we are far away from it - SLUB has an order of magnitude larger .o than SLOB, even on UP. I'm wondering why that is so - SLUB's data structures _are_ quite compact and could in theory be used in a SLOB-alike way. Perhaps one problem is that much of SLUB's debugging code is always built in?
I think we should probably just accept that it makes sense to have more than one allocator. A 64MB single CPU machine is very, very different than a 64TB 4096-CPU machine. On one of those, it probably makes some sense to burn some memory for maximum scalability.
I still have trouble to see that SLOB still has much to offer. An embedded allocator that in many cases has more allocation overhead than the default one? Ok you still have advantages if allocations are rounded up to the next power of two for a kmalloc and because of the combining of different types of allocations in a single slab if there are an overall small number of allocations. If one would create a custom slab for the worst problems there then this may also go away.
Quoted 7 lines
I still have trouble to see that SLOB still has much to offer. An embedded allocator that in many cases has more allocation overhead than the default one? Ok you still have advantages if allocations are rounded up to the next power of two for a kmalloc and because of the combining of different types of allocations in a single slab if there are an overall small number of allocations. If one would create a custom slab for the worst problems there then this may also go away.
I suspect it would be a good idea anyways to reevaluate the power of two slabs. Perhaps a better distribution can be found based on some profiling? I did profile kmalloc using a systemtap script some time ago but don't remember the results exactly, but iirc it looked like it could be improved.
A long time ago i also had some code to let the network stack give hints about its MMUs to slab to create fitting slabs for packets. But that was never really pushed forward because it turned out it didn't help much for the most common 1.5K MTU -- always only two packets fit into a page.
-Andi
Quoted 1 line
Quoted 8 lines · Andi Kleen
Quoted 7 lines
I still have trouble to see that SLOB still has much to offer. An embedded allocator that in many cases has more allocation overhead than the default one? Ok you still have advantages if allocations are rounded up to the next power of two for a kmalloc and because of the combining of different types of allocations in a single slab if there are an overall small number of allocations. If one would create a custom slab for the worst problems there then this may also go away.
Quoted 4 lines
I suspect it would be a good idea anyways to reevaluate the power of two slabs. Perhaps a better distribution can be found based on some profiling? I did profile kmalloc using a systemtap script some time ago but don't remember the results exactly, but iirc it looked like it could be improved.
We can roughly group kmalloced objects into two classes:
a) intrinsically variable-sized (strings, etc.)
b) fixed-sized objects that nonetheless don't have their own caches
For (a), we can expect the size distribution to be approximately a scale-invariant power distribution. So buckets of the form n**x make a fair amount of sense. We might consider n less than 2 though.
For objects of type (b) that occur in significant numbers, well, we might just want to add more caches. SLUB's merging of same-sized caches will reduce the pain here.
Quoted 5 lines
A long time ago i also had some code to let the network stack give hints about its MMUs to slab to create fitting slabs for packets. But that was never really pushed forward because it turned out it didn't help much for the most common 1.5K MTU -- always only two packets fit into a page.
Yes, that and task_struct kinda make you want to cry. Large-order SLAB/SLUB/SLOB would go a long way to fix that, but has its own problems of course.
One could imagine restructuring things so that the buddy allocator only extended down to 64k or so and below that, gfp and friends called through SLAB/SLUB/SLOB.
Signature · 1 line
Mathematics is the supreme nostalgia of our time.
Quoted 8 lines · Andi Kleen
Quoted 7 lines
I still have trouble to see that SLOB still has much to offer. An embedded allocator that in many cases has more allocation overhead than the default one? Ok you still have advantages if allocations are rounded up to the next power of two for a kmalloc and because of the combining of different types of allocations in a single slab if there are an overall small number of allocations. If one would create a custom slab for the worst problems there then this may also go away.
Quoted 4 lines
I suspect it would be a good idea anyways to reevaluate the power of two slabs. Perhaps a better distribution can be found based on some profiling? I did profile kmalloc using a systemtap script some time ago but don't remember the results exactly, but iirc it looked like it could be improved.
I remember wli trying to work out a series that had minimal fragmentation. IIRC he was mixing a fibonaci series with the power of two series.
Bill, do you remember getting anywhere?
Quoted 5 lines · Peter Zijlstra
I remember wli trying to work out a series that had minimal fragmentation. IIRC he was mixing a fibonaci series with the power of two series.
Bill, do you remember getting anywhere?
I tried various approaches to reduce the overhead that power of two slab sizes cause in SLUB during the initial comparison of memory use with SLOB. This involved creating slabs in 32 byte increments and trying to add a few additional extra slabs in between the power of two sizes. None of that led to convincing results.
I found that the SLAB scheme with power of two caches and two extra ones (96 and 192 bytes) was optimal.
Quoted 12 lines · Christoph Lameter
Quoted 9 lines · Matt Mackall
There are three downsides with the slab-like approach: internal fragmentation, under-utilized slabs, and pinning.
The first is the situation where we ask for a kmalloc of 33 bytes and get 64. I think the average kmalloc wastes about 30% trying to fit into power-of-two buckets. We can tune our buckets a bit, but I think in general trying to back kmalloc with slabs is problematic. SLOB has a 2-byte granularity up to the point where it just hands things off to the page allocator.
Quoted 3 lines
The 2 byte overhead of SLOB becomes a liability when it comes to correctly aligning power of two sized object. SLOB has to add two bytes and then align the combined object (argh!).
It does no such thing. Only kmallocs have 2-byte headers and kmalloc is never aligned. RTFS, it's quite short.
Quoted 4 lines
SLUB can align these without a 2 byte
overhead. In some configurations this results in SLUB using even less memory than SLOB. See f.e. Pekka's test at
http://marc.info/?l=linux-kernel&m=118405559214029&w=2
Available memory after boot is not a particularly stable measurement and not valid if there's memory pressure. At any rate, I wasn't able to reproduce this.
Quoted 8 lines
Quoted 4 lines
If we tried to add more slabs to fill the gaps, we'd exacerbate the second problem: because only one type of object can go on a slab, a lot of slabs are half-full. SLUB's automerging of slabs helps some here, but is still restricted to objects of the same size.
The advantage of SLOB is to be able to put objects of multiple sizes into the same slab page. That advantage goes away once we have more than a few objects per slab because SLUB can store object in a denser way than SLOB.
Ugh, Christoph. Can you please stop repeating this falsehood? I'm sick and tired of debunking it. There is no overhead for any objects with externally-known size. So unless SLUB actually has negative overhead, this just isn't true.
Quoted 11 lines
Quoted 5 lines
And finally, there's the whole pinning problem: we can have a cache like the dcache grow very large and then contract, but still have most of its slabs used by pinned dentries. Christoph has some rather hairy patches to address this, but SLOB doesn't have much of a problem here - those pages are still available to allocate other objects on.
Well if you just have a few dentries then they are likely all pinned. A large number of dentries will typically result in reclaimable slabs. The slab defrag patchset not only deals with the dcache issue but provides similar solutions for inode and
buffer_heads. Support for other slabs that defragment can be added by providing two hooks per slab.
What's your point? Slabs have a inherent pinning problem that's ugly to combat. SLOB doesn't.
Quoted 10 lines
Quoted 4 lines
By comparison, SLOB's big downsides are that it's not O(1) and it has a single lock. But it's currently fast enough to keep up with SLUB on kernel compiles on my 2G box and Nick had an allocator benchmark where scalability didn't fall off until beyond 4 CPUs.
Both SLOB and SLAB suffer from the single lock problem. SLOB does it for every item allocated. SLAB does it for every nth item allocated. Given a fast allocation from multiple processors both will generate a bouncing cacheline. SLUB can take pages from the page allocator pools and allocate all objects from it without taking a lock.
That's very nice, but SLOB already runs lockless on most of its target machines by virtue of them being UP. Lock contention just isn't interesting to SLOB.
Quoted 15 lines
Quoted 1 line
Quoted 1 line
right now we are far away from it - SLUB has an order of
magnitude
Quoted 1 line
Quoted 1 line
larger .o than SLOB, even on UP. I'm wondering why that is so -
SLUB's
Quoted 1 line
Quoted 1 line
data structures _are_ quite compact and could in theory be used in
a
Quoted 1 line
Quoted 1 line
SLOB-alike way. Perhaps one problem is that much of SLUB's
debugging
Quoted 3 lines
Quoted 1 line
code is always built in?
I think we should probably just accept that it makes sense to have
more
Quoted 1 line
than one allocator. A 64MB single CPU machine is very, very
different
Quoted 1 line
than a 64TB 4096-CPU machine. On one of those, it probably makes
Quoted 8 lines
some
Quoted 1 line
sense to burn some memory for maximum scalability.
I still have trouble to see that SLOB still has much to offer. An embedded
allocator that in many cases has more allocation overhead than the default
one?
For the benefit of anyone who didn't read this the last few times I rehashed this with you:
SLOB:
- internal overhead for kmalloc is 2 bytes (or 3 for odd-sized objects)
- internal overhead for kmem_cache_alloc is 0 bytes (or 1 for odd-sized objects)
- any unused space down to 2 bytes on any SLOB page can be allocated by any object that will fit
SLAB/SLUB
- internal overhead for kmalloc averages about 30%
- internal overhead for kmem_cache_alloc is (slab-size % object-size) / objects-per-slab, which can be quite large for things like SKBs and task_structs and is made worse by alignment
- unused space on slabs can't be allocated by objects of other sizes/types
The only time SLAB/SLUB can win in efficiency (assuming they're using the same page size) is when all your kmallocs just happen to be powers of two. Which, assuming any likely distribution of string or other object sizes, isn't often.
Signature · 1 line
Mathematics is the supreme nostalgia of our time.
Quoted 8 lines · Matt Mackall
Quoted 3 lines
The advantage of SLOB is to be able to put objects of multiple sizes into the same slab page. That advantage goes away once we have more than a few objects per slab because SLUB can store object in a denser way than SLOB.
Ugh, Christoph. Can you please stop repeating this falsehood? I'm sick and tired of debunking it. There is no overhead for any objects with externally-known size. So unless SLUB actually has negative overhead, this just isn't true.
Hmmm.. Seems that I still do not understand how it is possible then to mix objects of different sizes in the same slab page. Somehow the allocator needs to know the size. So it is not possible in SLOB to use kmem_cache_alloc on an object and then free it using kfree?
Quoted 8 lines
Quoted 5 lines
Well if you just have a few dentries then they are likely all pinned. A large number of dentries will typically result in reclaimable slabs. The slab defrag patchset not only deals with the dcache issue but provides similar solutions for inode and
buffer_heads. Support for other slabs that defragment can be added by providing two hooks per slab.What's your point? Slabs have a inherent pinning problem that's ugly to combat. SLOB doesn't.
I thought we were talking about pinning problems of dentries. How are slabs pinned and why does it matter? If slabs are pineed by a dentry that is pinned then the slab page will be filled up with other dentries that are not pinned. The slab defrag approach causes a coalescing of objects around slabs that have pinned objects.
Quoted 2 lines
SLOB:
- internal overhead for kmalloc is 2 bytes (or 3 for odd-sized objects)
Well that increase if you need to align the object. For kmalloc this usually means cache line align a power of two object right? So we have a cacheline size of overhead?
Quoted 2 lines
- internal overhead for
kmem_cache_allocis 0 bytes (or 1 for odd-sized objects)
You are not aligning to a double word boundary? This will create issues on certain platforms.
Quoted 2 lines
SLAB/SLUB
- internal overhead for kmalloc averages about 30%
I think that is valid for a random object size distribution?
Quoted 3 lines
- internal overhead for
kmem_cache_allocis (slab-size % object-size) / objects-per-slab, which can be quite large for things like SKBs andtask_structsand is made worse by alignment
Good, so SLOB can fit in small objects in those holes.
The calculation for SLAB is different since it also typically places it management structure in the slab. The management structure needs at least 2 bytes per object.
So the per object overhead in SLAB is
((slab-size - management-structure-overhead) % object-size) / objects-per-slab
Quoted 4 lines
The only time SLAB/SLUB can win in efficiency (assuming they're using the same page size) is when all your kmallocs just happen to be powers of two. Which, assuming any likely distribution of string or other object sizes, isn't often.
In case of SLAB that is true. In case of SLUB we could convert the kmallocs to kmem_cache_alloc. The newly created slab would in all likelyhood be an alias of an already existing structure and thus be essentially free. In that fashion SLUB can (in a limited way) put objects for different slab caches into the same slab page too.
Quoted 11 lines · Christoph Lameter
Quoted 8 lines · Matt Mackall
Quoted 3 lines
The advantage of SLOB is to be able to put objects of multiple sizes into the same slab page. That advantage goes away once we have more than a few objects per slab because SLUB can store object in a denser way than SLOB.
Ugh, Christoph. Can you please stop repeating this falsehood? I'm sick and tired of debunking it. There is no overhead for any objects with externally-known size. So unless SLUB actually has negative overhead, this just isn't true.
Quoted 4 lines
Hmmm.. Seems that I still do not understand how it is possible then to mix objects of different sizes in the same slab page. Somehow the allocator needs to know the size. So it is not possible in SLOB to use
kmem_cache_allocon an object and then free it using kfree?
Indeed. Mismatching allocator and deallocator is bug, even if it happens to work for SLAB/SLUB.
Quoted 11 lines
Quoted 8 lines
Quoted 5 lines
Well if you just have a few dentries then they are likely all pinned. A large number of dentries will typically result in reclaimable slabs. The slab defrag patchset not only deals with the dcache issue but provides similar solutions for inode and
buffer_heads. Support for other slabs that defragment can be added by providing two hooks per slab.What's your point? Slabs have a inherent pinning problem that's ugly to combat. SLOB doesn't.
I thought we were talking about pinning problems of dentries. How are slabs pinned and why does it matter?
If a slab contains a dentry that is pinned, it can only be used for other dentries and cannot be recycled for other allocations. If updatedb comes along and fills memory with dentry slabs, many of which get permanently pinned, then you have wasted memory.
Quoted 4 lines
If slabs are pineed by a dentry that
is pinned then the slab page will be filled up with other dentries that are not pinned. The slab defrag approach causes a coalescing of objects around slabs that have pinned objects.
Yes. You've got (most of) a fix. It's overly-complicated and SLOB doesn't need it. How many ways do I need to say this?
Quoted 6 lines
Quoted 2 lines
SLOB:
- internal overhead for kmalloc is 2 bytes (or 3 for odd-sized objects)Well that increase if you need to align the object. For kmalloc this usually means cache line align a power of two object right? So we have a cacheline size of overhead?
a) alignment doesn't increase memory use because the memory before the object is still allocatable
b) kmallocs aren't aligned!
Quoted 5 lines
Quoted 2 lines
- internal overhead for
kmem_cache_allocis 0 bytes (or 1 for odd-sized objects)You are not aligning to a double word boundary? This will create issues on certain platforms.
The alignment minimum varies per arch. SLOB can go down to 2 bytes.
Quoted 4 lines
Quoted 2 lines
SLAB/SLUB
- internal overhead for kmalloc averages about 30%I think that is valid for a random object size distribution?
It's a measurement from memory. But it roughly agrees with what you'd expect from a random distribution.
Quoted 10 lines
Quoted 4 lines
The only time SLAB/SLUB can win in efficiency (assuming they're using the same page size) is when all your kmallocs just happen to be powers of two. Which, assuming any likely distribution of string or other object sizes, isn't often.
In case of SLAB that is true. In case of SLUB we could convert the kmallocs to
kmem_cache_alloc. The newly created slab would in all likelyhood be an alias of an already existing structure and thus be essentially free. In that fashion SLUB can (in a limited way) put objects for different slab caches into the same slab page too.
Uh, no. You'd need a new slab for every multiple of 2 bytes. And then you'd just be making the underused and pinned slab problems worse.
Signature · 1 line
Mathematics is the supreme nostalgia of our time.
Quoted 5 lines · Matt Mackall
Quoted 2 lines
needs to know the size. So it is not possible in SLOB to use
kmem_cache_allocon an object and then free it using kfree?Indeed. Mismatching allocator and deallocator is bug, even if it happens to work for SLAB/SLUB.
Was the kernel audited for this case? I saw some rather scary uses of slab objects for I/O purposes come up during SLUB development.
Quoted 2 lines
Yes. You've got (most of) a fix. It's overly-complicated and SLOB doesn't need it. How many ways do I need to say this?
So SLOB is then not able to compact memory after an updatedb run? The memory must stay dedicated to slab uses. SLOB memory can be filled up with objects of other slab types but it cannot be reused for page cache and anonymous pages etc. Slab defrag is freeing memory back to the page allocator with SLUB. That is *not* provided by SLOB. Could be made to work though.
Quoted 6 lines
Quoted 3 lines
Well that increase if you need to align the object. For kmalloc this usually means cache line align a power of two object right? So we have a cacheline size of overhead?
a) alignment doesn't increase memory use because the memory before the object is still allocatable
Ok so we end up with lots of small holes on a list that has to be scanned to find free memory?
Quoted 3 lines
b) kmallocs aren't aligned!
From
mm/slob.c:
#ifndef ARCH_KMALLOC_MINALIGN
#define ARCH_KMALLOC_MINALIGN __alignof__(unsigned long) #endif
void *__kmalloc_node(size_t size, gfp_t gfp, int node)
{
unsigned int *m;
int align = max(ARCH_KMALLOC_MINALIGN, ARCH_SLAB_MINALIGN);(IMHO it would be safer to set the minimum default to __alignof__(unsigned long long) like SLAB/SLUB).
Ok. So lets try a worst case scenario. If we do a 128 byte kmalloc then we can allocate the following number of object from one 4k slab
SLUB 32 (all memory of the 4k page is used for 128 byte objects) SLAB 29/30 (management structure occupies first two/three objects) SLOB 30(?) (Alignment results in object being 136 byte of effective size,
we have 16 bytes leftover that could be used for a very small allocation. Right?)
Quoted 9 lines · Christoph Lameter
Ok. So lets try a worst case scenario. If we do a 128 byte kmalloc then we
can allocate the following number of object from one 4k slabSLUB 32 (all memory of the 4k page is used for 128 byte objects) SLAB 29/30 (management structure occupies first two/three objects) SLOB 30(?) (Alignment results in object being 136 byte of effective size,we have 16 bytes leftover that could be used for a very small allocation. Right?)
Don't know how you got to 136, the minimum alignment is 4 on x86. But I already said in my last email that SLUB would win for the special case of power of two allocations. But as long as we're looking at worst cases, let's consider an alloc of 257 bytes..
SLUB 8 (1016 bytes wasted)
SLOB 15 (105 bytes wasted, with 136 bytes still usable)
Can we be done with this now, please?
Signature · 1 line
Mathematics is the supreme nostalgia of our time.
Quoted 7 lines · Matt Mackall
Quoted 5 lines
SLUB 32 (all memory of the 4k page is used for 128 byte objects) SLAB 29/30 (management structure occupies first two/three objects) SLOB 30(?) (Alignment results in object being 136 byte of effective size,we have 16 bytes leftover that could be used for a very small allocation. Right?)
Don't know how you got to 136, the minimum alignment is 4 on x86. But I
Right I am thinking about 64 bit systems where the alignment is 8 bytes.
Quoted 3 lines
already said in my last email that SLUB would win for the special case of power of two allocations. But as long as we're looking at worst cases, let's consider an alloc of 257 bytes..
Yup that hits it by forcing a rounding up to a size of 512 bytes because there is no intermediate cache size before 1024. The rounding up is a pretty weak spot in terms of memory use.
Quoted 2 lines
SLUB 8 (1016 bytes wasted)
SLOB 15 (105 bytes wasted, with 136 bytes still usable)
Well we can actually turn this around. What I gave was not actually the worst case for SLOB. The worst case is an 8 byte allocation where SLOB needs double the memory of SLUB.
SLUB 512 (Nothing wasted)
SLOB 256 (Half of the page wasted for metadata)
SLAB 119 (32 byte mininum alloc size + management struct needs)
But these are all extreme cases. Depends on the mix of allocs who wins and from what I can tell the avoiding of rounding up to a power of two gives SLOB a key advantage. If we would find the worst offenders there and use kmem_cache_alloc instead then we may be able to offset that advantage.
Hi Matt,
Quoted 8 lines · Matt Mackall
Quoted 4 lines
SLUB can align these without a 2 byte
overhead. In some configurations this results in SLUB using even less memory than SLOB. See f.e. Pekka's test at
http://marc.info/?l=linux-kernel&m=118405559214029&w=2Available memory after boot is not a particularly stable measurement and not valid if there's memory pressure. At any rate, I wasn't able to reproduce this.
So, I have this silly memory profiler derived from the kleak patches by the relayfs people and would love to try it out on an embedded workload where SLUB memory footprint is terrible. Any suggestions?
Pekka
--- Documentation/kmemprof/Makefile | 5 + Documentation/kmemprof/kmemprof.c | 136 +++++++++++++++++++++++++++++++++++++ Documentation/kmemprof/kmemprof.pl | 125 ++++++++++++++++++++++++++++++++++ include/linux/slab.h | 16 ++++ include/linux/slub_def.h | 27 +++++-- lib/Kconfig.debug | 8 ++ mm/Makefile | 2 mm/kmemprof.c | 124 +++++++++++++++++++++++++++++++++ mm/slub.c | 34 +++++++-- 9 files changed, 463 insertions(+), 14 deletions(-)
lib/Kconfig.debug +8 -0
@@ -173,6 +173,14 @@ off in a kernel built with CONFIG_SLUB_DEBUG_ON by specifying "slub_debug=-". +config KMEMPROF + bool "Kernel memory profiling support" + depends on SLUB + default n + help + Say Y here to have the kernel track every memory allocation in + the kernel. + config DEBUG_PREEMPT bool "Debug preemptible kernel" depends on DEBUG_KERNEL && PREEMPT && (TRACE_IRQFLAGS_SUPPORT || PPC64)
mm/Makefile +1 -1
@@ -30,4 +30,4 @@ obj-$(CONFIG_MIGRATION) += migrate.o obj-$(CONFIG_SMP) += allocpercpu.o obj-$(CONFIG_QUICKLIST) += quicklist.o - +obj-$(CONFIG_KMEMPROF) += kmemprof.o
include/linux/slab.h +16 -0
@@ -95,6 +95,22 @@void kfree (const void *);size_t ksize (const void *); +#ifdef CONFIG_KMEMPROF +void kmem_track_alloc (void *,const void *,unsigned long ,unsigned long ,gfp_t ); +void kmem_track_free (void *,const void *); +#else +static inline void kmem_track_alloc (void *call_site,const void *p, +unsigned long nr_req, +unsigned long nr_allocated, +gfp_t flags) +{ +} + +static inline void kmem_track_free (void *call_site,const void *p) +{ +} +#endif /* CONFIG_KMEMPROF */ +/* * Allocator specific definitions. These are mainly used to establish optimized * ways to convert kmalloc() calls to kmem_cache_alloc() invocations by
include/linux/slub_def.h +22 -5
@@ -162,20 +162,37 @@void *kmem_cache_alloc (struct kmem_cache *,gfp_t );void *__kmalloc (size_t size,gfp_t flags); +static __always_inline void *__kmalloc_pagealloc(size_t size, gfp_t flags) +{ +unsigned long order =get_order (size); +void *p; + + p = (void *)__get_free_pages (flags | __GFP_COMP, order); +kmem_track_alloc (__builtin_return_address (0 ), p, size, +PAGE_SIZE << order, flags); +return p; +} + static __always_inline void *kmalloc(size_t size, gfp_t flags) {if (__builtin_constant_p (size)) {if (size >PAGE_SIZE /2 ) -return (void *)__get_free_pages (flags | __GFP_COMP, -get_order (size)); +return __kmalloc_pagealloc (size, flags);if (!(flags &SLUB_DMA )) {struct kmem_cache *s =kmalloc_slab (size); +void *p; -if (!s) +if (!s) { +kmem_track_alloc (__builtin_return_address (0 ), +ZERO_SIZE_PTR , size,0 , + flags);return ZERO_SIZE_PTR ; - -return kmem_cache_alloc (s, flags); + } + p =kmem_cache_alloc (s, flags); +kmem_track_alloc (__builtin_return_address (0 ), p, size, + s->size, flags); +return p; } }return __kmalloc (size, flags);
mm/slub.c +26 -8
@@ -1566,14 +1566,22 @@void *kmem_cache_alloc (struct kmem_cache *s,gfp_t gfpflags) { -return slab_alloc (s, gfpflags,-1 ,__builtin_return_address (0 )); +void *p; + + p =slab_alloc (s, gfpflags,-1 ,__builtin_return_address (0 )); +kmem_track_alloc (__builtin_return_address (0 ), p, s->size, s->size, gfpflags); +return p; }EXPORT_SYMBOL (kmem_cache_alloc);#ifdef CONFIG_NUMA void *kmem_cache_alloc_node (struct kmem_cache *s,gfp_t gfpflags,int node) { -return slab_alloc (s, gfpflags, node,__builtin_return_address (0 )); +void *p; + + p =slab_alloc (s, gfpflags, node,__builtin_return_address (0 )); +kmem_track_alloc (__builtin_return_address (0 ), p, s->size, s->size, gfpflags); +return p; }EXPORT_SYMBOL (kmem_cache_alloc_node);#endif
@@ -1670,6 +1678,8 @@ {struct page *page; +kmem_track_free (__builtin_return_address (0 ), x); + page =virt_to_head_page (x);slab_free (s, page, x,__builtin_return_address (0 ));
@@ -2516,17 +2526,20 @@void *__kmalloc (size_t size,gfp_t flags) {struct kmem_cache *s; +void *p;if (unlikely (size >PAGE_SIZE /2 )) -return (void *)__get_free_pages (flags | __GFP_COMP, -get_order (size)); +return __kmalloc_pagealloc (size, flags); s =get_slab (size, flags);if (unlikely (ZERO_OR_NULL_PTR (s)))return s; -return slab_alloc (s, flags,-1 ,__builtin_return_address (0 )); + p =slab_alloc (s, flags,-1 ,__builtin_return_address (0 )); +kmem_track_alloc (__builtin_return_address (0 ), p, size, s->size, + flags); +return p; }EXPORT_SYMBOL (__kmalloc);
@@ -2534,17 +2547,20 @@void *__kmalloc_node (size_t size,gfp_t flags,int node) {struct kmem_cache *s; +void *p;if (unlikely (size >PAGE_SIZE /2 )) -return (void *)__get_free_pages (flags | __GFP_COMP, -get_order (size)); +return __kmalloc_pagealloc (size, flags); s =get_slab (size, flags);if (unlikely (ZERO_OR_NULL_PTR (s)))return s; -return slab_alloc (s, flags, node,__builtin_return_address (0 )); + p =slab_alloc (s, flags, node,__builtin_return_address (0 )); +kmem_track_alloc (__builtin_return_address (0 ), p, size, s->size, + flags); +return p; }EXPORT_SYMBOL (__kmalloc_node);#endif
@@ -2593,6 +2609,8 @@ {struct page *page; +kmem_track_free (__builtin_return_address (0 ), x); +if (unlikely (ZERO_OR_NULL_PTR (x)))return ;
Documentation/kmemprof/Makefile new file +5 -0
@@ -0,0 +1,5 @@ +default: + $(CC) -lpthread -Wall kmemprof.c -o kmemprof + +clean: + rm -rf kmemprof cpu*.out kmemprof.all
Documentation/kmemprof/kmemprof.c new file +136 -0
136 lines not on this page · raw message
Documentation/kmemprof/kmemprof.pl new file +125 -0
125 lines not on this page · raw message
mm/kmemprof.c new file +124 -0
124 lines not on this page · raw message
Quoted 3 lines
So, I have this silly memory profiler derived from the kleak patches by the relayfs people and would love to try it out on an embedded workload where SLUB memory footprint is terrible. Any suggestions?
FWIW this can be all done in a few lines of systemtap. The only change needed to the kernel is to not inline kmalloc().
-Andi
Quoted 3 lines · Pekka J Enberg
So, I have this silly memory profiler derived from the kleak patches by the relayfs people and would love to try it out on an embedded workload where SLUB memory footprint is terrible. Any suggestions?
Good idea. But have you tried to look at slabinfo?
Try to run
slabinfo -t
which will calculate the allocation overhead of the currently allocated objects in all slab caches.
One problem: The actual size of kmalloc'ed objects is not available so it does not calculate the overhead that comes about because of rounding. Your approach would cover that as well but I think we could also add a debug mode in which we store the actual size of a kmalloc object and export the information via sysfs. Would be nicer than adding this whole additional layer.
Hi Christoph,
Quoted 3 lines · Pekka J Enberg
Quoted 3 lines
So, I have this silly memory profiler derived from the kleak patches by the relayfs people and would love to try it out on an embedded workload where SLUB memory footprint is terrible. Any suggestions?
Quoted 8 lines · Christoph Lameter
Good idea. But have you tried to look at slabinfo?
Try to run
slabinfo -t
which will calculate the allocation overhead of the currently allocated objects in all slab caches.
Oh, I didn't know about that. It's great for looking at the current memory footprint but not really suitable if you want to analyze allocation/free patterns.
And I think we need to look at the patterns to figure out *where* and *why* SLOB is better than SLUB and whether that can be fixed in SLUB or the callers. For example, while it's obviously true that SLUB has much higher internal fragmentation for kmalloc() than SLOB, it doesn't matter as much if the allocations are short-lived. I don't think you can extend the current SLUB debug mechanism to provide that but rather "kmalloc accounting" is needed.
The problem with my patch, though, is that due to relayfs I cannot capture events unless userspace is ready to read them which is why I am missing all the data from boot (I think systemtap has this same limitation?). So we need something like what Matt has except that it needs to keep track of every *event* and userspace must be able to access them.
Pekka
Quoted 8 lines · Pekka J Enberg
Hi Matt,
Quoted 5 lines · Matt Mackall
Quoted 4 lines
SLUB can align these without a 2 byte
overhead. In some configurations this results in SLUB using even less memory than SLOB. See f.e. Pekka's test at
http://marc.info/?l=linux-kernel&m=118405559214029&w=2
Quoted 7 lines
Quoted 3 lines
Available memory after boot is not a particularly stable measurement and not valid if there's memory pressure. At any rate, I wasn't able to reproduce this.
So, I have this silly memory profiler derived from the kleak patches by the relayfs people and would love to try it out on an embedded workload where SLUB memory footprint is terrible. Any suggestions?
Or you could use this (which is a bit broken on modern kernels, but provides lots of interesting detail):
http://lwn.net/Articles/124374/
I don't have any particular "terrible" workloads for SLUB. But my attempts to simply boot with all three allocators to init=/bin/bash in, say, lguest show a fair margin for SLOB.
Signature · 1 line
Mathematics is the supreme nostalgia of our time.
Hi Matt,
Quoted 3 lines · Matt Mackall
I don't have any particular "terrible" workloads for SLUB. But my attempts to simply boot with all three allocators to init=/bin/bash in, say, lguest show a fair margin for SLOB.
Sorry, I once again have bad news ;-). I did some testing with
lguest --block=<rootfile> 32 /boot/vmlinuz-2.6.24-rc6 root=/dev/vda init=doit
where rootfile is
http://uml.nagafix.co.uk/BusyBox-1.5.0/BusyBox-1.5.0-x86-root_fs.bz2
and the "doit" script in the guest passed as init= is just
#!/bin/sh
mount -t proc proc /proc
cat /proc/meminfo | grep MemTotal cat /proc/meminfo | grep MemFree cat /proc/meminfo | grep Slab
and the results are:
[ the minimum, maximum, and average are of captured from 10 individual runs ]
Free (kB) Used (kB)
Total (kB) min max average min max average
SLUB (no debug) 26536 23868 23892 23877.6 2644 2668 2658.4
SLOB 26548 23472 23640 23579.6 2908 3076 2968.4
SLAB (no debug) 26544 23316 23364 23343.2 3180 3228 3200.8
SLUB (with debug) 26484 23120 23136 23127.2 3348 3364 3356.8So it seems that on average SLUB uses 300 kilobytes *less memory* (!) (which is roughly 1% of total memory available) after boot than SLOB for my configuration.
One possible explanation is that the high internal fragmentation (space allocated but not used) of SLUB kmalloc() only affects short-lived allocations and thus does not show up in the more permanent memory footprint. Likewise, it could be that SLOB has higher external fragmentation (small blocks that are unavailable for allocation) of which SLUB does not suffer from. Dunno, haven't investigated as my results are contradictory to yours.
I am beginning to think this is highly dependent on .config so would you mind sending me one you're using for testing, Matt?
Pekka
Quoted 34 lines · Pekka J Enberg
Hi Matt,
Quoted 3 lines · Matt Mackall
I don't have any particular "terrible" workloads for SLUB. But my attempts to simply boot with all three allocators to init=/bin/bash in, say, lguest show a fair margin for SLOB.
Sorry, I once again have bad news ;-). I did some testing with
lguest --block=<rootfile> 32 /boot/vmlinuz-2.6.24-rc6 root=/dev/vda init=doitwhere rootfile is
http://uml.nagafix.co.uk/BusyBox-1.5.0/BusyBox-1.5.0-x86-root_fs.bz2
and the "doit" script in the guest passed as init= is just
#!/bin/sh
mount -t proc proc /proccat /proc/meminfo | grep MemTotal cat /proc/meminfo | grep MemFree cat /proc/meminfo | grep Slaband the results are:
[ the minimum, maximum, and average are of captured from 10 individual runs ]
Free (kB) Used (kB) Total (kB) min max average min max average SLUB (no debug) 26536 23868 23892 23877.6 2644 2668 2658.4 SLOB 26548 23472 23640 23579.6 2908 3076 2968.4 SLAB (no debug) 26544 23316 23364 23343.2 3180 3228 3200.8 SLUB (with debug) 26484 23120 23136 23127.2 3348 3364 3356.8
Quoted 3 lines
So it seems that on average SLUB uses 300 kilobytes *less memory* (!) (which is roughly 1% of total memory available) after boot than SLOB for my configuration.
Fascinating. Which kernel version are you using? This patch doesn't seem to have made it to mainline:
---
slob: fix free block merging at head of subpage
We weren't merging freed blocks at the beginning of the free list. Fixing this showed a 2.5% efficiency improvement in a userspace test harness.
mm/slob.c +4 -0
@@ -398,6 +398,10 @@ static void slob_free(void *block, int s sp->units += units;if (b < sp->free) { +if (b + units == sp->free) { + units +=slob_units (sp->free); + sp->free =slob_next (sp->free); + }set_slob (b, units, sp->free); sp->free = b; }else {
---
Quoted 6 lines
One possible explanation is that the high internal fragmentation (space allocated but not used) of SLUB
kmalloc()only affects short-lived allocations and thus does not show up in the more permanent memory footprint. Likewise, it could be that SLOB has higher external fragmentation (small blocks that are unavailable for allocation) of which SLUB does not suffer from. Dunno, haven't investigated as my results are contradictory to yours.
I suppose that's possible.
Quoted 2 lines
I am beginning to think this is highly dependent on .config so would you mind sending me one you're using for testing, Matt?
I'm sure I don't have it any more, as that was back in July or so. How about you send me your config and I'll try to figure out what's going on?
Signature · 1 line
Mathematics is the supreme nostalgia of our time.
Hi Matt,
Quoted 2 lines · Matt Mackall
Fascinating. Which kernel version are you using? This patch doesn't seem to have made it to mainline:
It's a git pull from yesterday so that's 2.6.24-rc6-something. I'll give your patch a spin.
Quoted 6 lines · Matt Mackall
Quoted 2 lines
I am beginning to think this is highly dependent on .config so would you mind sending me one you're using for testing, Matt?
I'm sure I don't have it any more, as that was back in July or so. How about you send me your config and I'll try to figure out what's going on?
Sure. It's the config of my trusty old 32-bit x86 development laptop. This one has SLUB with debugging disabled. I didn't save the other ones but they're the same except for SLUB/SLOB options.
Pekka
#
# Automatically generated make config: don't edit # Linux kernel version: 2.6.24-rc6
# Mon Jan 7 21:47:08 2008
#
# CONFIG_64BIT is not setCONFIG_X86_32=y
# CONFIG_X86_64 is not setCONFIG_X86=yCONFIG_GENERIC_TIME=yCONFIG_GENERIC_CMOS_UPDATE=y CONFIG_CLOCKSOURCE_WATCHDOG=y CONFIG_GENERIC_CLOCKEVENTS=y CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_SEMAPHORE_SLEEPERS=yCONFIG_MMU=yCONFIG_ZONE_DMA=yCONFIG_QUICKLIST=yCONFIG_GENERIC_ISA_DMA=yCONFIG_GENERIC_IOMAP=yCONFIG_GENERIC_BUG=yCONFIG_GENERIC_HWEIGHT=y CONFIG_ARCH_MAY_HAVE_PC_FDC=yCONFIG_DMI=y
# CONFIG_RWSEM_GENERIC_SPINLOCK is not set CONFIG_RWSEM_XCHGADD_ALGORITHM=y
# CONFIG_ARCH_HAS_ILOG2_U32 is not set
# CONFIG_ARCH_HAS_ILOG2_U64 is not set CONFIG_GENERIC_CALIBRATE_DELAY=y
# CONFIG_GENERIC_TIME_VSYSCALL is not set CONFIG_ARCH_SUPPORTS_OPROFILE=y
# CONFIG_ZONE_DMA32 is not set CONFIG_ARCH_POPULATES_NODE_MAP=y
# CONFIG_AUDIT_ARCH is not set CONFIG_GENERIC_HARDIRQS=y CONFIG_GENERIC_IRQ_PROBE=y CONFIG_GENERIC_PENDING_IRQ=yCONFIG_X86_SMP=yCONFIG_X86_HT=yCONFIG_X86_BIOS_REBOOT=yCONFIG_X86_TRAMPOLINE=yCONFIG_KTIME_SCALAR=y CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
#
# General setup
#CONFIG_EXPERIMENTAL=yCONFIG_LOCK_KERNEL=yCONFIG_INIT_ENV_ARG_LIMIT=32CONFIG_LOCALVERSION=""
# CONFIG_LOCALVERSION_AUTO is not setCONFIG_SWAP=yCONFIG_SYSVIPC=yCONFIG_SYSVIPC_SYSCTL=yCONFIG_POSIX_MQUEUE=yCONFIG_BSD_PROCESS_ACCT=yCONFIG_BSD_PROCESS_ACCT_V3=y
# CONFIG_TASKSTATS is not set
# CONFIG_USER_NS is not set
# CONFIG_PID_NS is not setCONFIG_AUDIT=y
# CONFIG_AUDITSYSCALL is not set
# CONFIG_IKCONFIG is not setCONFIG_LOG_BUF_SHIFT=17
# CONFIG_CGROUPS is not setCONFIG_FAIR_GROUP_SCHED=yCONFIG_FAIR_USER_SCHED=y
# CONFIG_FAIR_CGROUP_SCHED is not setCONFIG_SYSFS_DEPRECATED=yCONFIG_RELAY=yCONFIG_BLK_DEV_INITRD=yCONFIG_INITRAMFS_SOURCE=""
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not setCONFIG_SYSCTL=yCONFIG_EMBEDDED=yCONFIG_UID16=yCONFIG_SYSCTL_SYSCALL=yCONFIG_KALLSYMS=yCONFIG_KALLSYMS_ALL=y
# CONFIG_KALLSYMS_EXTRA_PASS is not setCONFIG_HOTPLUG=yCONFIG_PRINTK=yCONFIG_BUG=yCONFIG_ELF_CORE=yCONFIG_BASE_FULL=yCONFIG_FUTEX=yCONFIG_ANON_INODES=y
# CONFIG_EPOLL is not set
# CONFIG_SIGNALFD is not set
# CONFIG_EVENTFD is not set
# CONFIG_SHMEM is not set
# CONFIG_VM_EVENT_COUNTERS is not set
# CONFIG_SLUB_DEBUG is not set
# CONFIG_SLAB is not setCONFIG_SLUB=y
# CONFIG_SLOB is not setCONFIG_SLABINFO=yCONFIG_RT_MUTEXES=yCONFIG_TINY_SHMEM=yCONFIG_BASE_SMALL=0CONFIG_MODULES=yCONFIG_MODULE_UNLOAD=y
# CONFIG_MODULE_FORCE_UNLOAD is not setCONFIG_MODVERSIONS=yCONFIG_MODULE_SRCVERSION_ALL=yCONFIG_KMOD=yCONFIG_STOP_MACHINE=yCONFIG_BLOCK=yCONFIG_LBD=y
# CONFIG_BLK_DEV_IO_TRACE is not set
# CONFIG_LSF is not set
# CONFIG_BLK_DEV_BSG is not set
#
# IO Schedulers
#CONFIG_IOSCHED_NOOP=yCONFIG_IOSCHED_AS=yCONFIG_IOSCHED_DEADLINE=yCONFIG_IOSCHED_CFQ=y
# CONFIG_DEFAULT_AS is not set
# CONFIG_DEFAULT_DEADLINE is not setCONFIG_DEFAULT_CFQ=y
# CONFIG_DEFAULT_NOOP is not setCONFIG_DEFAULT_IOSCHED="cfq"CONFIG_PREEMPT_NOTIFIERS=y
#
# Processor type and features
#
# CONFIG_TICK_ONESHOT is not set
# CONFIG_NO_HZ is not set
# CONFIG_HIGH_RES_TIMERS is not setCONFIG_GENERIC_CLOCKEVENTS_BUILD=yCONFIG_SMP=yCONFIG_X86_PC=y
# CONFIG_X86_ELAN is not set
# CONFIG_X86_VOYAGER is not set
# CONFIG_X86_NUMAQ is not set
# CONFIG_X86_SUMMIT is not set
# CONFIG_X86_BIGSMP is not set
# CONFIG_X86_VISWS is not set
# CONFIG_X86_GENERICARCH is not set
# CONFIG_X86_ES7000 is not set
# CONFIG_X86_VSMP is not setCONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=yCONFIG_PARAVIRT=yCONFIG_PARAVIRT_GUEST=y
# CONFIG_VMI is not setCONFIG_LGUEST_GUEST=y
# CONFIG_M386 is not set
# CONFIG_M486 is not setCONFIG_M586=y
# CONFIG_M586TSC is not set
# CONFIG_M586MMX is not set
# CONFIG_M686 is not set
# CONFIG_MPENTIUMII is not set
# CONFIG_MPENTIUMIII is not set
# CONFIG_MPENTIUMM is not set
# CONFIG_MPENTIUM4 is not set
# CONFIG_MK6 is not set
# CONFIG_MK7 is not set
# CONFIG_MK8 is not set
# CONFIG_MCRUSOE is not set
# CONFIG_MEFFICEON is not set
# CONFIG_MWINCHIPC6 is not set
# CONFIG_MWINCHIP2 is not set
# CONFIG_MWINCHIP3D is not set
# CONFIG_MGEODEGX1 is not set
# CONFIG_MGEODE_LX is not set
# CONFIG_MCYRIXIII is not set
# CONFIG_MVIAC3_2 is not set
# CONFIG_MVIAC7 is not set
# CONFIG_MPSC is not set
# CONFIG_MCORE2 is not set
# CONFIG_GENERIC_CPU is not setCONFIG_X86_GENERIC=yCONFIG_X86_CMPXCHG=yCONFIG_X86_L1_CACHE_SHIFT=7CONFIG_X86_XADD=yCONFIG_X86_PPRO_FENCE=yCONFIG_X86_F00F_BUG=yCONFIG_X86_WP_WORKS_OK=yCONFIG_X86_INVLPG=yCONFIG_X86_BSWAP=yCONFIG_X86_POPAD_OK=yCONFIG_X86_ALIGNMENT_16=yCONFIG_X86_INTEL_USERCOPY=yCONFIG_X86_MINIMUM_CPU_FAMILY=4CONFIG_HPET_TIMER=yCONFIG_HPET_EMULATE_RTC=yCONFIG_NR_CPUS=8CONFIG_SCHED_SMT=yCONFIG_SCHED_MC=y
# CONFIG_PREEMPT_NONE is not setCONFIG_PREEMPT_VOLUNTARY=y
# CONFIG_PREEMPT is not setCONFIG_PREEMPT_BKL=yCONFIG_X86_LOCAL_APIC=yCONFIG_X86_IO_APIC=y
# CONFIG_X86_MCE is not setCONFIG_VM86=yCONFIG_TOSHIBA=mCONFIG_I8K=mCONFIG_X86_REBOOTFIXUPS=yCONFIG_MICROCODE=mCONFIG_MICROCODE_OLD_INTERFACE=yCONFIG_X86_MSR=mCONFIG_X86_CPUID=m
# CONFIG_NOHIGHMEM is not setCONFIG_HIGHMEM4G=y
# CONFIG_HIGHMEM64G is not setCONFIG_VMSPLIT_3G=y
# CONFIG_VMSPLIT_3G_OPT is not set
# CONFIG_VMSPLIT_2G is not set
# CONFIG_VMSPLIT_2G_OPT is not set
# CONFIG_VMSPLIT_1G is not setCONFIG_PAGE_OFFSET=0xC0000000CONFIG_HIGHMEM=yCONFIG_ARCH_FLATMEM_ENABLE=yCONFIG_ARCH_SPARSEMEM_ENABLE=yCONFIG_ARCH_SELECT_MEMORY_MODEL=yCONFIG_SELECT_MEMORY_MODEL=yCONFIG_FLATMEM_MANUAL=y
# CONFIG_DISCONTIGMEM_MANUAL is not set
# CONFIG_SPARSEMEM_MANUAL is not setCONFIG_FLATMEM=yCONFIG_FLAT_NODE_MEM_MAP=yCONFIG_SPARSEMEM_STATIC=y
# CONFIG_SPARSEMEM_VMEMMAP_ENABLE is not setCONFIG_SPLIT_PTLOCK_CPUS=4
# CONFIG_RESOURCES_64BIT is not setCONFIG_ZONE_DMA_FLAG=1CONFIG_BOUNCE=yCONFIG_NR_QUICK=1CONFIG_VIRT_TO_BUS=yCONFIG_HIGHPTE=y
# CONFIG_MATH_EMULATION is not setCONFIG_MTRR=yCONFIG_EFI=yCONFIG_IRQBALANCE=yCONFIG_BOOT_IOREMAP=yCONFIG_SECCOMP=y
# CONFIG_HZ_100 is not setCONFIG_HZ_250=y
# CONFIG_HZ_300 is not set
# CONFIG_HZ_1000 is not setCONFIG_HZ=250CONFIG_KEXEC=yCONFIG_CRASH_DUMP=yCONFIG_PHYSICAL_START=0x100000CONFIG_RELOCATABLE=yCONFIG_PHYSICAL_ALIGN=0x100000CONFIG_HOTPLUG_CPU=yCONFIG_COMPAT_VDSO=yCONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
#
# Power management options
#CONFIG_PM=yCONFIG_PM_LEGACY=yCONFIG_PM_DEBUG=y
# CONFIG_PM_VERBOSE is not setCONFIG_PM_TRACE=yCONFIG_PM_SLEEP_SMP=yCONFIG_PM_SLEEP=yCONFIG_SUSPEND_SMP_POSSIBLE=yCONFIG_SUSPEND=yCONFIG_HIBERNATION_SMP_POSSIBLE=y
# CONFIG_HIBERNATION is not setCONFIG_ACPI=yCONFIG_ACPI_SLEEP=y
# CONFIG_ACPI_PROCFS is not setCONFIG_ACPI_PROCFS_POWER=yCONFIG_ACPI_PROC_EVENT=yCONFIG_ACPI_AC=yCONFIG_ACPI_BATTERY=yCONFIG_ACPI_BUTTON=mCONFIG_ACPI_VIDEO=mCONFIG_ACPI_FAN=mCONFIG_ACPI_DOCK=m
# CONFIG_ACPI_BAY is not setCONFIG_ACPI_PROCESSOR=mCONFIG_ACPI_HOTPLUG_CPU=yCONFIG_ACPI_THERMAL=mCONFIG_ACPI_ASUS=mCONFIG_ACPI_TOSHIBA=mCONFIG_ACPI_BLACKLIST_YEAR=2000
# CONFIG_ACPI_DEBUG is not setCONFIG_ACPI_EC=yCONFIG_ACPI_POWER=yCONFIG_ACPI_SYSTEM=yCONFIG_X86_PM_TIMER=yCONFIG_ACPI_CONTAINER=m
# CONFIG_ACPI_SBS is not setCONFIG_APM=m
# CONFIG_APM_IGNORE_USER_SUSPEND is not set
# CONFIG_APM_DO_ENABLE is not set
# CONFIG_APM_CPU_IDLE is not set
# CONFIG_APM_DISPLAY_BLANK is not set
# CONFIG_APM_ALLOW_INTS is not set
# CONFIG_APM_REAL_MODE_POWER_OFF is not set
#
# CPU Frequency scaling
#CONFIG_CPU_FREQ=yCONFIG_CPU_FREQ_TABLE=m
# CONFIG_CPU_FREQ_DEBUG is not set CONFIG_CPU_FREQ_STAT=m CONFIG_CPU_FREQ_STAT_DETAILS=y CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set CONFIG_CPU_FREQ_GOV_PERFORMANCE=y CONFIG_CPU_FREQ_GOV_POWERSAVE=m CONFIG_CPU_FREQ_GOV_USERSPACE=m CONFIG_CPU_FREQ_GOV_ONDEMAND=m CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m
#
# CPUFreq processor drivers
#CONFIG_X86_ACPI_CPUFREQ=mCONFIG_X86_POWERNOW_K6=mCONFIG_X86_POWERNOW_K7=mCONFIG_X86_POWERNOW_K7_ACPI=yCONFIG_X86_POWERNOW_K8=mCONFIG_X86_POWERNOW_K8_ACPI=yCONFIG_X86_GX_SUSPMOD=mCONFIG_X86_SPEEDSTEP_CENTRINO=mCONFIG_X86_SPEEDSTEP_CENTRINO_TABLE=yCONFIG_X86_SPEEDSTEP_ICH=mCONFIG_X86_SPEEDSTEP_SMI=mCONFIG_X86_P4_CLOCKMOD=mCONFIG_X86_CPUFREQ_NFORCE2=mCONFIG_X86_LONGRUN=mCONFIG_X86_LONGHAUL=m
# CONFIG_X86_E_POWERSAVER is not set
#
# shared options # # CONFIG_X86_ACPI_CPUFREQ_PROC_INTF is not set CONFIG_X86_SPEEDSTEP_LIB=m CONFIG_X86_SPEEDSTEP_RELAXED_CAP_CHECK=y # CONFIG_CPU_IDLE is not set
#
# Bus options (PCI etc.)
#CONFIG_PCI=y
# CONFIG_PCI_GOBIOS is not set
# CONFIG_PCI_GOMMCONFIG is not set
# CONFIG_PCI_GODIRECT is not setCONFIG_PCI_GOANY=yCONFIG_PCI_BIOS=yCONFIG_PCI_DIRECT=yCONFIG_PCI_MMCONFIG=yCONFIG_PCI_DOMAINS=yCONFIG_PCIEPORTBUS=yCONFIG_HOTPLUG_PCI_PCIE=mCONFIG_PCIEAER=yCONFIG_ARCH_SUPPORTS_MSI=yCONFIG_PCI_MSI=yCONFIG_PCI_LEGACY=y
# CONFIG_PCI_DEBUG is not setCONFIG_HT_IRQ=yCONFIG_ISA_DMA_API=yCONFIG_ISA=yCONFIG_EISA=yCONFIG_EISA_VLB_PRIMING=yCONFIG_EISA_PCI_EISA=yCONFIG_EISA_VIRTUAL_ROOT=yCONFIG_EISA_NAMES=y
# CONFIG_MCA is not set
# CONFIG_SCx200 is not setCONFIG_K8_NB=yCONFIG_PCCARD=m
# CONFIG_PCMCIA_DEBUG is not setCONFIG_PCMCIA=mCONFIG_PCMCIA_LOAD_CIS=yCONFIG_PCMCIA_IOCTL=yCONFIG_CARDBUS=y
#
# PC-card bridges
#CONFIG_YENTA=mCONFIG_YENTA_O2=yCONFIG_YENTA_RICOH=yCONFIG_YENTA_TI=yCONFIG_YENTA_ENE_TUNE=yCONFIG_YENTA_TOSHIBA=yCONFIG_PD6729=mCONFIG_I82092=mCONFIG_I82365=mCONFIG_TCIC=mCONFIG_PCMCIA_PROBE=yCONFIG_PCCARD_NONSTATIC=mCONFIG_HOTPLUG_PCI=mCONFIG_HOTPLUG_PCI_FAKE=mCONFIG_HOTPLUG_PCI_COMPAQ=mCONFIG_HOTPLUG_PCI_COMPAQ_NVRAM=yCONFIG_HOTPLUG_PCI_IBM=mCONFIG_HOTPLUG_PCI_ACPI=mCONFIG_HOTPLUG_PCI_ACPI_IBM=mCONFIG_HOTPLUG_PCI_CPCI=yCONFIG_HOTPLUG_PCI_CPCI_ZT5550=mCONFIG_HOTPLUG_PCI_CPCI_GENERIC=mCONFIG_HOTPLUG_PCI_SHPC=m
#
# Executable file formats / Emulations
#CONFIG_BINFMT_ELF=yCONFIG_BINFMT_AOUT=mCONFIG_BINFMT_MISC=m
#
# Networking
#CONFIG_NET=y
#
# Networking options
#CONFIG_PACKET=mCONFIG_PACKET_MMAP=yCONFIG_UNIX=yCONFIG_XFRM=yCONFIG_XFRM_USER=m
# CONFIG_XFRM_SUB_POLICY is not set
# CONFIG_XFRM_MIGRATE is not setCONFIG_NET_KEY=m
# CONFIG_NET_KEY_MIGRATE is not setCONFIG_INET=yCONFIG_IP_MULTICAST=yCONFIG_IP_ADVANCED_ROUTER=yCONFIG_ASK_IP_FIB_HASH=y
# CONFIG_IP_FIB_TRIE is not setCONFIG_IP_FIB_HASH=yCONFIG_IP_MULTIPLE_TABLES=yCONFIG_IP_ROUTE_MULTIPATH=yCONFIG_IP_ROUTE_VERBOSE=y
# CONFIG_IP_PNP is not setCONFIG_NET_IPIP=mCONFIG_NET_IPGRE=mCONFIG_NET_IPGRE_BROADCAST=yCONFIG_IP_MROUTE=yCONFIG_IP_PIMSM_V1=yCONFIG_IP_PIMSM_V2=y
# CONFIG_ARPD is not setCONFIG_SYN_COOKIES=yCONFIG_INET_AH=mCONFIG_INET_ESP=mCONFIG_INET_IPCOMP=mCONFIG_INET_XFRM_TUNNEL=mCONFIG_INET_TUNNEL=mCONFIG_INET_XFRM_MODE_TRANSPORT=mCONFIG_INET_XFRM_MODE_TUNNEL=mCONFIG_INET_XFRM_MODE_BEET=m
# CONFIG_INET_LRO is not setCONFIG_INET_DIAG=yCONFIG_INET_TCP_DIAG=y
# CONFIG_TCP_CONG_ADVANCED is not setCONFIG_TCP_CONG_CUBIC=yCONFIG_DEFAULT_TCP_CONG="cubic"CONFIG_TCP_MD5SIG=yCONFIG_IP_VS=m
# CONFIG_IP_VS_DEBUG is not setCONFIG_IP_VS_TAB_BITS=12
#
# IPVS transport protocol load balancing support
#CONFIG_IP_VS_PROTO_TCP=yCONFIG_IP_VS_PROTO_UDP=yCONFIG_IP_VS_PROTO_ESP=yCONFIG_IP_VS_PROTO_AH=y
#
# IPVS scheduler
#CONFIG_IP_VS_RR=mCONFIG_IP_VS_WRR=mCONFIG_IP_VS_LC=mCONFIG_IP_VS_WLC=mCONFIG_IP_VS_LBLC=mCONFIG_IP_VS_LBLCR=mCONFIG_IP_VS_DH=mCONFIG_IP_VS_SH=mCONFIG_IP_VS_SED=mCONFIG_IP_VS_NQ=m
#
# IPVS application helper
#CONFIG_IP_VS_FTP=mCONFIG_IPV6=mCONFIG_IPV6_PRIVACY=y
# CONFIG_IPV6_ROUTER_PREF is not set
# CONFIG_IPV6_OPTIMISTIC_DAD is not setCONFIG_INET6_AH=mCONFIG_INET6_ESP=mCONFIG_INET6_IPCOMP=m
# CONFIG_IPV6_MIP6 is not setCONFIG_INET6_XFRM_TUNNEL=mCONFIG_INET6_TUNNEL=mCONFIG_INET6_XFRM_MODE_TRANSPORT=mCONFIG_INET6_XFRM_MODE_TUNNEL=mCONFIG_INET6_XFRM_MODE_BEET=mCONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION=mCONFIG_IPV6_SIT=mCONFIG_IPV6_TUNNEL=m
# CONFIG_IPV6_MULTIPLE_TABLES is not set
# CONFIG_NETLABEL is not setCONFIG_NETWORK_SECMARK=yCONFIG_NETFILTER=y
# CONFIG_NETFILTER_DEBUG is not setCONFIG_BRIDGE_NETFILTER=y
#
# Core Netfilter Configuration
#CONFIG_NETFILTER_NETLINK=mCONFIG_NETFILTER_NETLINK_QUEUE=mCONFIG_NETFILTER_NETLINK_LOG=mCONFIG_NF_CONNTRACK_ENABLED=mCONFIG_NF_CONNTRACK=mCONFIG_NF_CT_ACCT=yCONFIG_NF_CONNTRACK_MARK=yCONFIG_NF_CONNTRACK_SECMARK=yCONFIG_NF_CONNTRACK_EVENTS=yCONFIG_NF_CT_PROTO_GRE=mCONFIG_NF_CT_PROTO_SCTP=m
# CONFIG_NF_CT_PROTO_UDPLITE is not setCONFIG_NF_CONNTRACK_AMANDA=mCONFIG_NF_CONNTRACK_FTP=mCONFIG_NF_CONNTRACK_H323=mCONFIG_NF_CONNTRACK_IRC=mCONFIG_NF_CONNTRACK_NETBIOS_NS=mCONFIG_NF_CONNTRACK_PPTP=m
# CONFIG_NF_CONNTRACK_SANE is not setCONFIG_NF_CONNTRACK_SIP=mCONFIG_NF_CONNTRACK_TFTP=mCONFIG_NF_CT_NETLINK=mCONFIG_NETFILTER_XTABLES=mCONFIG_NETFILTER_XT_TARGET_CLASSIFY=m
# CONFIG_NETFILTER_XT_TARGET_CONNMARK is not setCONFIG_NETFILTER_XT_TARGET_DSCP=mCONFIG_NETFILTER_XT_TARGET_MARK=mCONFIG_NETFILTER_XT_TARGET_NFQUEUE=mCONFIG_NETFILTER_XT_TARGET_NFLOG=m
# CONFIG_NETFILTER_XT_TARGET_NOTRACK is not set
# CONFIG_NETFILTER_XT_TARGET_TRACE is not setCONFIG_NETFILTER_XT_TARGET_SECMARK=mCONFIG_NETFILTER_XT_TARGET_CONNSECMARK=m
# CONFIG_NETFILTER_XT_TARGET_TCPMSS is not setCONFIG_NETFILTER_XT_MATCH_COMMENT=mCONFIG_NETFILTER_XT_MATCH_CONNBYTES=m
# CONFIG_NETFILTER_XT_MATCH_CONNLIMIT is not setCONFIG_NETFILTER_XT_MATCH_CONNMARK=mCONFIG_NETFILTER_XT_MATCH_CONNTRACK=mCONFIG_NETFILTER_XT_MATCH_DCCP=mCONFIG_NETFILTER_XT_MATCH_DSCP=mCONFIG_NETFILTER_XT_MATCH_ESP=mCONFIG_NETFILTER_XT_MATCH_HELPER=mCONFIG_NETFILTER_XT_MATCH_LENGTH=mCONFIG_NETFILTER_XT_MATCH_LIMIT=mCONFIG_NETFILTER_XT_MATCH_MAC=mCONFIG_NETFILTER_XT_MATCH_MARK=mCONFIG_NETFILTER_XT_MATCH_POLICY=mCONFIG_NETFILTER_XT_MATCH_MULTIPORT=mCONFIG_NETFILTER_XT_MATCH_PHYSDEV=mCONFIG_NETFILTER_XT_MATCH_PKTTYPE=mCONFIG_NETFILTER_XT_MATCH_QUOTA=mCONFIG_NETFILTER_XT_MATCH_REALM=mCONFIG_NETFILTER_XT_MATCH_SCTP=mCONFIG_NETFILTER_XT_MATCH_STATE=mCONFIG_NETFILTER_XT_MATCH_STATISTIC=mCONFIG_NETFILTER_XT_MATCH_STRING=mCONFIG_NETFILTER_XT_MATCH_TCPMSS=m
# CONFIG_NETFILTER_XT_MATCH_TIME is not set
# CONFIG_NETFILTER_XT_MATCH_U32 is not setCONFIG_NETFILTER_XT_MATCH_HASHLIMIT=m
#
# IP: Netfilter Configuration
#CONFIG_NF_CONNTRACK_IPV4=mCONFIG_NF_CONNTRACK_PROC_COMPAT=yCONFIG_IP_NF_QUEUE=mCONFIG_IP_NF_IPTABLES=mCONFIG_IP_NF_MATCH_IPRANGE=mCONFIG_IP_NF_MATCH_TOS=mCONFIG_IP_NF_MATCH_RECENT=mCONFIG_IP_NF_MATCH_ECN=mCONFIG_IP_NF_MATCH_AH=mCONFIG_IP_NF_MATCH_TTL=mCONFIG_IP_NF_MATCH_OWNER=mCONFIG_IP_NF_MATCH_ADDRTYPE=mCONFIG_IP_NF_FILTER=mCONFIG_IP_NF_TARGET_REJECT=mCONFIG_IP_NF_TARGET_LOG=mCONFIG_IP_NF_TARGET_ULOG=mCONFIG_NF_NAT=mCONFIG_NF_NAT_NEEDED=yCONFIG_IP_NF_TARGET_MASQUERADE=mCONFIG_IP_NF_TARGET_REDIRECT=mCONFIG_IP_NF_TARGET_NETMAP=mCONFIG_IP_NF_TARGET_SAME=mCONFIG_NF_NAT_SNMP_BASIC=mCONFIG_NF_NAT_PROTO_GRE=mCONFIG_NF_NAT_FTP=mCONFIG_NF_NAT_IRC=mCONFIG_NF_NAT_TFTP=mCONFIG_NF_NAT_AMANDA=mCONFIG_NF_NAT_PPTP=mCONFIG_NF_NAT_H323=mCONFIG_NF_NAT_SIP=mCONFIG_IP_NF_MANGLE=mCONFIG_IP_NF_TARGET_TOS=mCONFIG_IP_NF_TARGET_ECN=mCONFIG_IP_NF_TARGET_TTL=mCONFIG_IP_NF_TARGET_CLUSTERIP=mCONFIG_IP_NF_RAW=mCONFIG_IP_NF_ARPTABLES=mCONFIG_IP_NF_ARPFILTER=mCONFIG_IP_NF_ARP_MANGLE=m
#
# IPv6: Netfilter Configuration (EXPERIMENTAL)
#CONFIG_NF_CONNTRACK_IPV6=mCONFIG_IP6_NF_QUEUE=mCONFIG_IP6_NF_IPTABLES=mCONFIG_IP6_NF_MATCH_RT=mCONFIG_IP6_NF_MATCH_OPTS=mCONFIG_IP6_NF_MATCH_FRAG=mCONFIG_IP6_NF_MATCH_HL=mCONFIG_IP6_NF_MATCH_OWNER=mCONFIG_IP6_NF_MATCH_IPV6HEADER=mCONFIG_IP6_NF_MATCH_AH=m
# CONFIG_IP6_NF_MATCH_MH is not setCONFIG_IP6_NF_MATCH_EUI64=mCONFIG_IP6_NF_FILTER=mCONFIG_IP6_NF_TARGET_LOG=mCONFIG_IP6_NF_TARGET_REJECT=mCONFIG_IP6_NF_MANGLE=mCONFIG_IP6_NF_TARGET_HL=mCONFIG_IP6_NF_RAW=m
#
# DECnet: Netfilter Configuration
#CONFIG_DECNET_NF_GRABULATOR=m
#
# Bridge: Netfilter Configuration
#CONFIG_BRIDGE_NF_EBTABLES=mCONFIG_BRIDGE_EBT_BROUTE=mCONFIG_BRIDGE_EBT_T_FILTER=mCONFIG_BRIDGE_EBT_T_NAT=mCONFIG_BRIDGE_EBT_802_3=mCONFIG_BRIDGE_EBT_AMONG=mCONFIG_BRIDGE_EBT_ARP=mCONFIG_BRIDGE_EBT_IP=mCONFIG_BRIDGE_EBT_LIMIT=mCONFIG_BRIDGE_EBT_MARK=mCONFIG_BRIDGE_EBT_PKTTYPE=mCONFIG_BRIDGE_EBT_STP=mCONFIG_BRIDGE_EBT_VLAN=mCONFIG_BRIDGE_EBT_ARPREPLY=mCONFIG_BRIDGE_EBT_DNAT=mCONFIG_BRIDGE_EBT_MARK_T=mCONFIG_BRIDGE_EBT_REDIRECT=mCONFIG_BRIDGE_EBT_SNAT=mCONFIG_BRIDGE_EBT_LOG=mCONFIG_BRIDGE_EBT_ULOG=mCONFIG_IP_DCCP=mCONFIG_INET_DCCP_DIAG=mCONFIG_IP_DCCP_ACKVEC=y
#
# DCCP CCIDs Configuration (EXPERIMENTAL)
#CONFIG_IP_DCCP_CCID2=m
# CONFIG_IP_DCCP_CCID2_DEBUG is not setCONFIG_IP_DCCP_CCID3=mCONFIG_IP_DCCP_TFRC_LIB=m
# CONFIG_IP_DCCP_CCID3_DEBUG is not setCONFIG_IP_DCCP_CCID3_RTO=100
#
# DCCP Kernel Hacking
#
# CONFIG_IP_DCCP_DEBUG is not setCONFIG_NET_DCCPPROBE=mCONFIG_IP_SCTP=m
# CONFIG_SCTP_DBG_MSG is not set
# CONFIG_SCTP_DBG_OBJCNT is not set
# CONFIG_SCTP_HMAC_NONE is not set
# CONFIG_SCTP_HMAC_SHA1 is not setCONFIG_SCTP_HMAC_MD5=yCONFIG_TIPC=m
# CONFIG_TIPC_ADVANCED is not set
# CONFIG_TIPC_DEBUG is not setCONFIG_ATM=yCONFIG_ATM_CLIP=y
# CONFIG_ATM_CLIP_NO_ICMP is not setCONFIG_ATM_LANE=mCONFIG_ATM_MPOA=mCONFIG_ATM_BR2684=m
# CONFIG_ATM_BR2684_IPFILTER is not setCONFIG_BRIDGE=mCONFIG_VLAN_8021Q=mCONFIG_DECNET=m
# CONFIG_DECNET_ROUTER is not setCONFIG_LLC=yCONFIG_LLC2=mCONFIG_IPX=m
# CONFIG_IPX_INTERN is not setCONFIG_ATALK=mCONFIG_DEV_APPLETALK=mCONFIG_LTPC=mCONFIG_COPS=mCONFIG_COPS_DAYNA=yCONFIG_COPS_TANGENT=yCONFIG_IPDDP=mCONFIG_IPDDP_ENCAP=yCONFIG_IPDDP_DECAP=yCONFIG_X25=mCONFIG_LAPB=mCONFIG_ECONET=mCONFIG_ECONET_AUNUDP=yCONFIG_ECONET_NATIVE=yCONFIG_WAN_ROUTER=mCONFIG_NET_SCHED=y
#
# Queueing/Scheduling
#CONFIG_NET_SCH_CBQ=mCONFIG_NET_SCH_HTB=mCONFIG_NET_SCH_HFSC=mCONFIG_NET_SCH_ATM=mCONFIG_NET_SCH_PRIO=m
# CONFIG_NET_SCH_RR is not setCONFIG_NET_SCH_RED=mCONFIG_NET_SCH_SFQ=mCONFIG_NET_SCH_TEQL=mCONFIG_NET_SCH_TBF=mCONFIG_NET_SCH_GRED=mCONFIG_NET_SCH_DSMARK=mCONFIG_NET_SCH_NETEM=mCONFIG_NET_SCH_INGRESS=m
#
# Classification
#CONFIG_NET_CLS=yCONFIG_NET_CLS_BASIC=mCONFIG_NET_CLS_TCINDEX=mCONFIG_NET_CLS_ROUTE4=mCONFIG_NET_CLS_ROUTE=yCONFIG_NET_CLS_FW=mCONFIG_NET_CLS_U32=m
# CONFIG_CLS_U32_PERF is not setCONFIG_CLS_U32_MARK=yCONFIG_NET_CLS_RSVP=mCONFIG_NET_CLS_RSVP6=mCONFIG_NET_EMATCH=yCONFIG_NET_EMATCH_STACK=32CONFIG_NET_EMATCH_CMP=mCONFIG_NET_EMATCH_NBYTE=mCONFIG_NET_EMATCH_U32=mCONFIG_NET_EMATCH_META=mCONFIG_NET_EMATCH_TEXT=mCONFIG_NET_CLS_ACT=yCONFIG_NET_ACT_POLICE=y
# CONFIG_NET_ACT_GACT is not set
# CONFIG_NET_ACT_MIRRED is not set
# CONFIG_NET_ACT_IPT is not set
# CONFIG_NET_ACT_NAT is not set
# CONFIG_NET_ACT_PEDIT is not set
# CONFIG_NET_ACT_SIMP is not setCONFIG_NET_CLS_POLICE=y
# CONFIG_NET_CLS_IND is not setCONFIG_NET_SCH_FIFO=y
#
# Network testing
#CONFIG_NET_PKTGEN=mCONFIG_NET_TCPPROBE=m
# CONFIG_HAMRADIO is not set
# CONFIG_IRDA is not setCONFIG_BT=mCONFIG_BT_L2CAP=mCONFIG_BT_SCO=mCONFIG_BT_RFCOMM=mCONFIG_BT_RFCOMM_TTY=yCONFIG_BT_BNEP=mCONFIG_BT_BNEP_MC_FILTER=yCONFIG_BT_BNEP_PROTO_FILTER=yCONFIG_BT_HIDP=m
#
# Bluetooth device drivers
#CONFIG_BT_HCIUSB=mCONFIG_BT_HCIUSB_SCO=y
# CONFIG_BT_HCIBTSDIO is not setCONFIG_BT_HCIUART=mCONFIG_BT_HCIUART_H4=yCONFIG_BT_HCIUART_BCSP=y
# CONFIG_BT_HCIUART_LL is not setCONFIG_BT_HCIBCM203X=mCONFIG_BT_HCIBPA10X=mCONFIG_BT_HCIBFUSB=mCONFIG_BT_HCIDTL1=mCONFIG_BT_HCIBT3C=mCONFIG_BT_HCIBLUECARD=mCONFIG_BT_HCIBTUART=mCONFIG_BT_HCIVHCI=m
# CONFIG_AF_RXRPC is not setCONFIG_FIB_RULES=y
#
# Wireless
#CONFIG_CFG80211=mCONFIG_NL80211=yCONFIG_WIRELESS_EXT=yCONFIG_MAC80211=mCONFIG_MAC80211_RCSIMPLE=y
# CONFIG_MAC80211_DEBUGFS is not set
# CONFIG_MAC80211_DEBUG is not setCONFIG_IEEE80211=m
# CONFIG_IEEE80211_DEBUG is not setCONFIG_IEEE80211_CRYPT_WEP=mCONFIG_IEEE80211_CRYPT_CCMP=mCONFIG_IEEE80211_CRYPT_TKIP=mCONFIG_IEEE80211_SOFTMAC=m
# CONFIG_IEEE80211_SOFTMAC_DEBUG is not set
# CONFIG_RFKILL is not set
# CONFIG_NET_9P is not set
#
# Device Drivers
#
#
# Generic Driver Options
#CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"CONFIG_STANDALONE=yCONFIG_PREVENT_FIRMWARE_BUILD=yCONFIG_FW_LOADER=y
# CONFIG_DEBUG_DRIVER is not set
# CONFIG_DEBUG_DEVRES is not set
# CONFIG_SYS_HYPERVISOR is not setCONFIG_CONNECTOR=m
# CONFIG_MTD is not set
# CONFIG_PARPORT is not setCONFIG_PNP=y
# CONFIG_PNP_DEBUG is not set
#
# Protocols
#CONFIG_ISAPNP=yCONFIG_PNPBIOS=yCONFIG_PNPBIOS_PROC_FS=yCONFIG_PNPACPI=yCONFIG_BLK_DEV=yCONFIG_BLK_DEV_FD=mCONFIG_BLK_DEV_XD=mCONFIG_BLK_CPQ_DA=mCONFIG_BLK_CPQ_CISS_DA=mCONFIG_CISS_SCSI_TAPE=yCONFIG_BLK_DEV_DAC960=mCONFIG_BLK_DEV_UMEM=m
# CONFIG_BLK_DEV_COW_COMMON is not setCONFIG_BLK_DEV_LOOP=mCONFIG_BLK_DEV_CRYPTOLOOP=mCONFIG_BLK_DEV_NBD=mCONFIG_BLK_DEV_SX8=m
# CONFIG_BLK_DEV_UB is not setCONFIG_BLK_DEV_RAM=yCONFIG_BLK_DEV_RAM_COUNT=16CONFIG_BLK_DEV_RAM_SIZE=65536CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024CONFIG_CDROM_PKTCDVD=mCONFIG_CDROM_PKTCDVD_BUFFERS=8
# CONFIG_CDROM_PKTCDVD_WCACHE is not setCONFIG_ATA_OVER_ETH=mCONFIG_VIRTIO_BLK=yCONFIG_MISC_DEVICES=y
# CONFIG_IBM_ASM is not set
# CONFIG_PHANTOM is not set
# CONFIG_EEPROM_93CX6 is not set
# CONFIG_SGI_IOC4 is not setCONFIG_TIFM_CORE=m
# CONFIG_TIFM_7XX1 is not set
# CONFIG_ASUS_LAPTOP is not set
# CONFIG_FUJITSU_LAPTOP is not set
# CONFIG_MSI_LAPTOP is not set
# CONFIG_SONY_LAPTOP is not setCONFIG_THINKPAD_ACPI=m
# CONFIG_THINKPAD_ACPI_DEBUG is not setCONFIG_THINKPAD_ACPI_BAY=y
# CONFIG_IDE is not set
#
# SCSI device support
#CONFIG_RAID_ATTRS=mCONFIG_SCSI=mCONFIG_SCSI_DMA=yCONFIG_SCSI_TGT=mCONFIG_SCSI_NETLINK=yCONFIG_SCSI_PROC_FS=y
#
# SCSI support type (disk, tape, CD-ROM)
#CONFIG_BLK_DEV_SD=m
# CONFIG_CHR_DEV_ST is not set
# CONFIG_CHR_DEV_OSST is not set
# CONFIG_BLK_DEV_SR is not setCONFIG_CHR_DEV_SG=mCONFIG_CHR_DEV_SCH=m
#
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs #CONFIG_SCSI_MULTI_LUN=yCONFIG_SCSI_CONSTANTS=yCONFIG_SCSI_LOGGING=yCONFIG_SCSI_SCAN_ASYNC=yCONFIG_SCSI_WAIT_SCAN=m
#
# SCSI Transports
#CONFIG_SCSI_SPI_ATTRS=mCONFIG_SCSI_FC_ATTRS=m
# CONFIG_SCSI_FC_TGT_ATTRS is not setCONFIG_SCSI_ISCSI_ATTRS=mCONFIG_SCSI_SAS_ATTRS=mCONFIG_SCSI_SAS_LIBSAS=m
# CONFIG_SCSI_SAS_ATA is not set
# CONFIG_SCSI_SAS_LIBSAS_DEBUG is not set
# CONFIG_SCSI_SRP_ATTRS is not setCONFIG_SCSI_LOWLEVEL=y
# CONFIG_ISCSI_TCP is not set
# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
# CONFIG_SCSI_3W_9XXX is not set
# CONFIG_SCSI_7000FASST is not set
# CONFIG_SCSI_ACARD is not set
# CONFIG_SCSI_AHA152X is not set
# CONFIG_SCSI_AHA1542 is not set
# CONFIG_SCSI_AHA1740 is not set
# CONFIG_SCSI_AACRAID is not set
# CONFIG_SCSI_AIC7XXX is not set
# CONFIG_SCSI_AIC7XXX_OLD is not set
# CONFIG_SCSI_AIC79XX is not set
# CONFIG_SCSI_AIC94XX is not set
# CONFIG_SCSI_DPT_I2O is not set
# CONFIG_SCSI_ADVANSYS is not set
# CONFIG_SCSI_IN2000 is not set
# CONFIG_SCSI_ARCMSR is not set
# CONFIG_MEGARAID_NEWGEN is not set
# CONFIG_MEGARAID_LEGACY is not set
# CONFIG_MEGARAID_SAS is not set
# CONFIG_SCSI_HPTIOP is not set
# CONFIG_SCSI_BUSLOGIC is not set
# CONFIG_SCSI_DMX3191D is not set
# CONFIG_SCSI_DTC3280 is not set
# CONFIG_SCSI_EATA is not set
# CONFIG_SCSI_FUTURE_DOMAIN is not set
# CONFIG_SCSI_GDTH is not set
# CONFIG_SCSI_GENERIC_NCR5380 is not set
# CONFIG_SCSI_GENERIC_NCR5380_MMIO is not set
# CONFIG_SCSI_IPS is not set
# CONFIG_SCSI_INITIO is not set
# CONFIG_SCSI_INIA100 is not set
# CONFIG_SCSI_NCR53C406A is not set
# CONFIG_SCSI_STEX is not set
# CONFIG_SCSI_SYM53C8XX_2 is not set
# CONFIG_SCSI_IPR is not set
# CONFIG_SCSI_PAS16 is not set
# CONFIG_SCSI_PSI240I is not set
# CONFIG_SCSI_QLOGIC_FAS is not set
# CONFIG_SCSI_QLOGIC_1280 is not set
# CONFIG_SCSI_QLA_FC is not set
# CONFIG_SCSI_QLA_ISCSI is not set
# CONFIG_SCSI_LPFC is not set
# CONFIG_SCSI_SEAGATE is not set
# CONFIG_SCSI_SIM710 is not set
# CONFIG_SCSI_SYM53C416 is not set
# CONFIG_SCSI_DC395x is not set
# CONFIG_SCSI_DC390T is not set
# CONFIG_SCSI_T128 is not set
# CONFIG_SCSI_U14_34F is not set
# CONFIG_SCSI_ULTRASTOR is not set
# CONFIG_SCSI_NSP32 is not setCONFIG_SCSI_DEBUG=m
# CONFIG_SCSI_SRP is not set
# CONFIG_SCSI_LOWLEVEL_PCMCIA is not setCONFIG_ATA=m
# CONFIG_ATA_NONSTANDARD is not setCONFIG_ATA_ACPI=y
# CONFIG_SATA_AHCI is not set
# CONFIG_SATA_SVW is not setCONFIG_ATA_PIIX=m
# CONFIG_SATA_MV is not set
# CONFIG_SATA_NV is not set
# CONFIG_PDC_ADMA is not set
# CONFIG_SATA_QSTOR is not set
# CONFIG_SATA_PROMISE is not set
# CONFIG_SATA_SX4 is not set
# CONFIG_SATA_SIL is not set
# CONFIG_SATA_SIL24 is not set
# CONFIG_SATA_SIS is not set
# CONFIG_SATA_ULI is not set
# CONFIG_SATA_VIA is not set
# CONFIG_SATA_VITESSE is not set
# CONFIG_SATA_INIC162X is not set
# CONFIG_PATA_ACPI is not set
# CONFIG_PATA_ALI is not set
# CONFIG_PATA_AMD is not set
# CONFIG_PATA_ARTOP is not set
# CONFIG_PATA_ATIIXP is not set
# CONFIG_PATA_CMD640_PCI is not set
# CONFIG_PATA_CMD64X is not set
# CONFIG_PATA_CS5520 is not set
# CONFIG_PATA_CS5530 is not set
# CONFIG_PATA_CS5535 is not set
# CONFIG_PATA_CS5536 is not set
# CONFIG_PATA_CYPRESS is not set
# CONFIG_PATA_EFAR is not setCONFIG_ATA_GENERIC=m
# CONFIG_PATA_HPT366 is not set
# CONFIG_PATA_HPT37X is not set
# CONFIG_PATA_HPT3X2N is not set
# CONFIG_PATA_HPT3X3 is not set
# CONFIG_PATA_ISAPNP is not set
# CONFIG_PATA_IT821X is not set
# CONFIG_PATA_IT8213 is not set
# CONFIG_PATA_JMICRON is not set
# CONFIG_PATA_LEGACY is not set
# CONFIG_PATA_TRIFLEX is not set
# CONFIG_PATA_MARVELL is not set
# CONFIG_PATA_MPIIX is not set
# CONFIG_PATA_OLDPIIX is not set
# CONFIG_PATA_NETCELL is not set
# CONFIG_PATA_NS87410 is not set
# CONFIG_PATA_NS87415 is not set
# CONFIG_PATA_OPTI is not set
# CONFIG_PATA_OPTIDMA is not set
# CONFIG_PATA_PCMCIA is not set
# CONFIG_PATA_PDC_OLD is not set
# CONFIG_PATA_QDI is not set
# CONFIG_PATA_RADISYS is not set
# CONFIG_PATA_RZ1000 is not set
# CONFIG_PATA_SC1200 is not set
# CONFIG_PATA_SERVERWORKS is not set
# CONFIG_PATA_PDC2027X is not set
# CONFIG_PATA_SIL680 is not set
# CONFIG_PATA_SIS is not set
# CONFIG_PATA_VIA is not set
# CONFIG_PATA_WINBOND is not set
# CONFIG_PATA_WINBOND_VLB is not set
# CONFIG_PATA_PLATFORM is not setCONFIG_MD=yCONFIG_BLK_DEV_MD=mCONFIG_MD_LINEAR=mCONFIG_MD_RAID0=mCONFIG_MD_RAID1=mCONFIG_MD_RAID10=mCONFIG_MD_RAID456=mCONFIG_MD_RAID5_RESHAPE=yCONFIG_MD_MULTIPATH=mCONFIG_MD_FAULTY=mCONFIG_BLK_DEV_DM=m
# CONFIG_DM_DEBUG is not setCONFIG_DM_CRYPT=mCONFIG_DM_SNAPSHOT=mCONFIG_DM_MIRROR=mCONFIG_DM_ZERO=mCONFIG_DM_MULTIPATH=mCONFIG_DM_MULTIPATH_EMC=m
# CONFIG_DM_MULTIPATH_RDAC is not set
# CONFIG_DM_MULTIPATH_HP is not set
# CONFIG_DM_DELAY is not set
# CONFIG_DM_UEVENT is not set
# CONFIG_FUSION is not set
#
# IEEE 1394 (FireWire) support
#
# CONFIG_FIREWIRE is not set
# CONFIG_IEEE1394 is not setCONFIG_I2O=mCONFIG_I2O_LCT_NOTIFY_ON_CHANGES=yCONFIG_I2O_EXT_ADAPTEC=yCONFIG_I2O_CONFIG=mCONFIG_I2O_CONFIG_OLD_IOCTL=yCONFIG_I2O_BUS=mCONFIG_I2O_BLOCK=mCONFIG_I2O_SCSI=mCONFIG_I2O_PROC=m
# CONFIG_MACINTOSH_DRIVERS is not setCONFIG_NETDEVICES=y
# CONFIG_NETDEVICES_MULTIQUEUE is not set
# CONFIG_IFB is not setCONFIG_DUMMY=mCONFIG_BONDING=m
# CONFIG_MACVLAN is not setCONFIG_EQUALIZER=mCONFIG_TUN=m
# CONFIG_VETH is not setCONFIG_NET_SB1000=m
# CONFIG_IP1000 is not setCONFIG_ARCNET=mCONFIG_ARCNET_1201=mCONFIG_ARCNET_1051=mCONFIG_ARCNET_RAW=mCONFIG_ARCNET_CAP=m
CONFIG_ARCNET_COM90xx=m
CONFIG_ARCNET_COM90xxIO=mCONFIG_ARCNET_RIM_I=mCONFIG_ARCNET_COM20020=mCONFIG_ARCNET_COM20020_ISA=mCONFIG_ARCNET_COM20020_PCI=m
# CONFIG_NET_ETHERNET is not setCONFIG_NETDEV_1000=y
# CONFIG_ACENIC is not set
# CONFIG_DL2K is not setCONFIG_E1000=mCONFIG_E1000_NAPI=y
# CONFIG_E1000_DISABLE_PACKET_SPLIT is not set
# CONFIG_E1000E is not set
# CONFIG_NS83820 is not set
# CONFIG_HAMACHI is not set
# CONFIG_YELLOWFIN is not set
# CONFIG_R8169 is not set
# CONFIG_SIS190 is not set
# CONFIG_SKGE is not set
# CONFIG_SKY2 is not set
# CONFIG_SK98LIN is not set
# CONFIG_VIA_VELOCITY is not set
# CONFIG_TIGON3 is not set
# CONFIG_BNX2 is not set
# CONFIG_QLA3XXX is not set
# CONFIG_ATL1 is not set
# CONFIG_NETDEV_10000 is not setCONFIG_TR=yCONFIG_IBMTR=mCONFIG_IBMOL=mCONFIG_IBMLS=mCONFIG_3C359=mCONFIG_TMS380TR=mCONFIG_TMSPCI=mCONFIG_SKISA=mCONFIG_PROTEON=mCONFIG_ABYSS=mCONFIG_SMCTR=m
#
# Wireless LAN
#
# CONFIG_WLAN_PRE80211 is not setCONFIG_WLAN_80211=y
# CONFIG_PCMCIA_RAYCS is not set
# CONFIG_IPW2100 is not setCONFIG_IPW2200=mCONFIG_IPW2200_MONITOR=y
# CONFIG_IPW2200_RADIOTAP is not set
# CONFIG_IPW2200_PROMISCUOUS is not set
# CONFIG_IPW2200_QOS is not set
# CONFIG_IPW2200_DEBUG is not set
# CONFIG_LIBERTAS is not set
# CONFIG_AIRO is not set
# CONFIG_HERMES is not set
# CONFIG_ATMEL is not set
# CONFIG_AIRO_CS is not set
# CONFIG_PCMCIA_WL3501 is not set
# CONFIG_PRISM54 is not set
# CONFIG_USB_ZD1201 is not set
# CONFIG_RTL8187 is not set
# CONFIG_ADM8211 is not set
# CONFIG_P54_COMMON is not set
# CONFIG_IWLWIFI is not set
# CONFIG_HOSTAP is not set
# CONFIG_BCM43XX is not set
# CONFIG_B43 is not set
# CONFIG_B43LEGACY is not set
# CONFIG_ZD1211RW is not set
# CONFIG_RT2X00 is not set
#
# USB Network Adapters
#
# CONFIG_USB_CATC is not set
# CONFIG_USB_KAWETH is not set
# CONFIG_USB_PEGASUS is not set
# CONFIG_USB_RTL8150 is not set
# CONFIG_USB_USBNET is not set
# CONFIG_NET_PCMCIA is not set
# CONFIG_WAN is not set
# CONFIG_ATM_DRIVERS is not set
# CONFIG_FDDI is not set
# CONFIG_HIPPI is not setCONFIG_PPP=mCONFIG_PPP_MULTILINK=yCONFIG_PPP_FILTER=yCONFIG_PPP_ASYNC=mCONFIG_PPP_SYNC_TTY=mCONFIG_PPP_DEFLATE=mCONFIG_PPP_BSDCOMP=mCONFIG_PPP_MPPE=mCONFIG_PPPOE=mCONFIG_PPPOATM=m
# CONFIG_PPPOL2TP is not setCONFIG_SLIP=mCONFIG_SLIP_COMPRESSED=yCONFIG_SLHC=mCONFIG_SLIP_SMART=yCONFIG_SLIP_MODE_SLIP6=yCONFIG_NET_FC=yCONFIG_SHAPER=mCONFIG_NETCONSOLE=m
# CONFIG_NETCONSOLE_DYNAMIC is not setCONFIG_NETPOLL=y
# CONFIG_NETPOLL_TRAP is not setCONFIG_NET_POLL_CONTROLLER=y
# CONFIG_VIRTIO_NET is not set
# CONFIG_ISDN is not set
# CONFIG_PHONE is not set
#
# Input device support
#CONFIG_INPUT=yCONFIG_INPUT_FF_MEMLESS=mCONFIG_INPUT_POLLDEV=m
#
# Userland interfaces
#CONFIG_INPUT_MOUSEDEV=yCONFIG_INPUT_MOUSEDEV_PSAUX=yCONFIG_INPUT_MOUSEDEV_SCREEN_X=1024CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768CONFIG_INPUT_JOYDEV=mCONFIG_INPUT_EVDEV=mCONFIG_INPUT_EVBUG=m
#
# Input Device Drivers
#CONFIG_INPUT_KEYBOARD=yCONFIG_KEYBOARD_ATKBD=yCONFIG_KEYBOARD_SUNKBD=mCONFIG_KEYBOARD_LKKBD=mCONFIG_KEYBOARD_XTKBD=mCONFIG_KEYBOARD_NEWTON=mCONFIG_KEYBOARD_STOWAWAY=mCONFIG_INPUT_MOUSE=yCONFIG_MOUSE_PS2=mCONFIG_MOUSE_PS2_ALPS=yCONFIG_MOUSE_PS2_LOGIPS2PP=yCONFIG_MOUSE_PS2_SYNAPTICS=yCONFIG_MOUSE_PS2_LIFEBOOK=yCONFIG_MOUSE_PS2_TRACKPOINT=y
# CONFIG_MOUSE_PS2_TOUCHKIT is not setCONFIG_MOUSE_SERIAL=m
# CONFIG_MOUSE_APPLETOUCH is not setCONFIG_MOUSE_INPORT=m
# CONFIG_MOUSE_ATIXL is not setCONFIG_MOUSE_LOGIBM=mCONFIG_MOUSE_PC110PAD=mCONFIG_MOUSE_VSXXXAA=mCONFIG_INPUT_JOYSTICK=yCONFIG_JOYSTICK_ANALOG=mCONFIG_JOYSTICK_A3D=mCONFIG_JOYSTICK_ADI=mCONFIG_JOYSTICK_COBRA=mCONFIG_JOYSTICK_GF2K=mCONFIG_JOYSTICK_GRIP=mCONFIG_JOYSTICK_GRIP_MP=mCONFIG_JOYSTICK_GUILLEMOT=mCONFIG_JOYSTICK_INTERACT=mCONFIG_JOYSTICK_SIDEWINDER=mCONFIG_JOYSTICK_TMDC=mCONFIG_JOYSTICK_IFORCE=mCONFIG_JOYSTICK_IFORCE_USB=yCONFIG_JOYSTICK_IFORCE_232=yCONFIG_JOYSTICK_WARRIOR=mCONFIG_JOYSTICK_MAGELLAN=mCONFIG_JOYSTICK_SPACEORB=mCONFIG_JOYSTICK_SPACEBALL=mCONFIG_JOYSTICK_STINGER=mCONFIG_JOYSTICK_TWIDJOY=mCONFIG_JOYSTICK_JOYDUMP=m
# CONFIG_JOYSTICK_XPAD is not set
# CONFIG_INPUT_TABLET is not setCONFIG_INPUT_TOUCHSCREEN=yCONFIG_TOUCHSCREEN_ADS7846=m
# CONFIG_TOUCHSCREEN_FUJITSU is not setCONFIG_TOUCHSCREEN_GUNZE=mCONFIG_TOUCHSCREEN_ELO=mCONFIG_TOUCHSCREEN_MTOUCH=mCONFIG_TOUCHSCREEN_MK712=mCONFIG_TOUCHSCREEN_PENMOUNT=mCONFIG_TOUCHSCREEN_TOUCHRIGHT=mCONFIG_TOUCHSCREEN_TOUCHWIN=mCONFIG_TOUCHSCREEN_UCB1400=m
# CONFIG_TOUCHSCREEN_USB_COMPOSITE is not setCONFIG_INPUT_MISC=yCONFIG_INPUT_PCSPKR=mCONFIG_INPUT_WISTRON_BTNS=m
# CONFIG_INPUT_ATLAS_BTNS is not set
# CONFIG_INPUT_ATI_REMOTE is not set
# CONFIG_INPUT_ATI_REMOTE2 is not set
# CONFIG_INPUT_KEYSPAN_REMOTE is not set
# CONFIG_INPUT_POWERMATE is not set
# CONFIG_INPUT_YEALINK is not setCONFIG_INPUT_UINPUT=m
#
# Hardware I/O ports
#CONFIG_SERIO=yCONFIG_SERIO_I8042=yCONFIG_SERIO_SERPORT=mCONFIG_SERIO_CT82C710=mCONFIG_SERIO_PCIPS2=mCONFIG_SERIO_LIBPS2=yCONFIG_SERIO_RAW=mCONFIG_GAMEPORT=mCONFIG_GAMEPORT_NS558=mCONFIG_GAMEPORT_L4=mCONFIG_GAMEPORT_EMU10K1=mCONFIG_GAMEPORT_FM801=m
#
# Character devices
#CONFIG_VT=yCONFIG_VT_CONSOLE=yCONFIG_HW_CONSOLE=yCONFIG_VT_HW_CONSOLE_BINDING=yCONFIG_SERIAL_NONSTANDARD=y
# CONFIG_COMPUTONE is not setCONFIG_ROCKETPORT=mCONFIG_CYCLADES=m
# CONFIG_CYZ_INTR is not setCONFIG_DIGIEPCA=m
# CONFIG_ESPSERIAL is not set
# CONFIG_MOXA_INTELLIO is not setCONFIG_MOXA_SMARTIO=mCONFIG_MOXA_SMARTIO_NEW=m
# CONFIG_ISI is not setCONFIG_SYNCLINK=mCONFIG_SYNCLINKMP=mCONFIG_SYNCLINK_GT=mCONFIG_N_HDLC=mCONFIG_SPECIALIX=m
# CONFIG_SPECIALIX_RTSCTS is not setCONFIG_SX=m
# CONFIG_RIO is not setCONFIG_STALDRV=y
#
# Serial drivers
#CONFIG_SERIAL_8250=yCONFIG_SERIAL_8250_CONSOLE=yCONFIG_FIX_EARLYCON_MEM=yCONFIG_SERIAL_8250_PCI=yCONFIG_SERIAL_8250_PNP=yCONFIG_SERIAL_8250_CS=mCONFIG_SERIAL_8250_NR_UARTS=48CONFIG_SERIAL_8250_RUNTIME_UARTS=4CONFIG_SERIAL_8250_EXTENDED=yCONFIG_SERIAL_8250_MANY_PORTS=yCONFIG_SERIAL_8250_FOURPORT=mCONFIG_SERIAL_8250_ACCENT=mCONFIG_SERIAL_8250_BOCA=mCONFIG_SERIAL_8250_EXAR_ST16C554=mCONFIG_SERIAL_8250_HUB6=mCONFIG_SERIAL_8250_SHARE_IRQ=y
# CONFIG_SERIAL_8250_DETECT_IRQ is not setCONFIG_SERIAL_8250_RSA=y
#
# Non-8250 serial port support
#CONFIG_SERIAL_CORE=yCONFIG_SERIAL_CORE_CONSOLE=yCONFIG_SERIAL_JSM=mCONFIG_UNIX98_PTYS=yCONFIG_LEGACY_PTYS=yCONFIG_LEGACY_PTY_COUNT=256CONFIG_HVC_DRIVER=yCONFIG_VIRTIO_CONSOLE=yCONFIG_IPMI_HANDLER=m
# CONFIG_IPMI_PANIC_EVENT is not setCONFIG_IPMI_DEVICE_INTERFACE=mCONFIG_IPMI_SI=mCONFIG_IPMI_WATCHDOG=mCONFIG_IPMI_POWEROFF=mCONFIG_HW_RANDOM=yCONFIG_HW_RANDOM_INTEL=mCONFIG_HW_RANDOM_AMD=mCONFIG_HW_RANDOM_GEODE=mCONFIG_HW_RANDOM_VIA=mCONFIG_NVRAM=mCONFIG_RTC=yCONFIG_DTLK=mCONFIG_R3964=mCONFIG_APPLICOM=mCONFIG_SONYPI=m
#
# PCMCIA character devices
#CONFIG_SYNCLINK_CS=mCONFIG_CARDMAN_4000=mCONFIG_CARDMAN_4040=mCONFIG_MWAVE=m
CONFIG_PC8736x_GPIO=mCONFIG_NSC_GPIO=mCONFIG_CS5535_GPIO=mCONFIG_RAW_DRIVER=mCONFIG_MAX_RAW_DEVS=256CONFIG_HPET=y
# CONFIG_HPET_RTC_IRQ is not setCONFIG_HPET_MMAP=yCONFIG_HANGCHECK_TIMER=mCONFIG_TCG_TPM=mCONFIG_TCG_TIS=mCONFIG_TCG_NSC=mCONFIG_TCG_ATMEL=mCONFIG_TCG_INFINEON=mCONFIG_TELCLOCK=mCONFIG_DEVPORT=yCONFIG_I2C=mCONFIG_I2C_BOARDINFO=yCONFIG_I2C_CHARDEV=m
#
# I2C Algorithms
#CONFIG_I2C_ALGOBIT=mCONFIG_I2C_ALGOPCF=mCONFIG_I2C_ALGOPCA=m
#
# I2C Hardware Bus support
#CONFIG_I2C_ALI1535=mCONFIG_I2C_ALI1563=mCONFIG_I2C_ALI15X3=mCONFIG_I2C_AMD756=mCONFIG_I2C_AMD756_S4882=mCONFIG_I2C_AMD8111=mCONFIG_I2C_I801=mCONFIG_I2C_I810=mCONFIG_I2C_PIIX4=mCONFIG_I2C_NFORCE2=mCONFIG_I2C_OCORES=mCONFIG_I2C_PARPORT_LIGHT=mCONFIG_I2C_PROSAVAGE=mCONFIG_I2C_SAVAGE4=m
# CONFIG_I2C_SIMTEC is not set
CONFIG_SCx200_ACB=mCONFIG_I2C_SIS5595=mCONFIG_I2C_SIS630=mCONFIG_I2C_SIS96X=m
# CONFIG_I2C_TAOS_EVM is not setCONFIG_I2C_STUB=m
# CONFIG_I2C_TINY_USB is not setCONFIG_I2C_VIA=mCONFIG_I2C_VIAPRO=mCONFIG_I2C_VOODOO3=mCONFIG_I2C_PCA_ISA=m
#
# Miscellaneous I2C Chip support
#CONFIG_SENSORS_DS1337=mCONFIG_SENSORS_DS1374=m
# CONFIG_DS1682 is not setCONFIG_SENSORS_EEPROM=mCONFIG_SENSORS_PCF8574=mCONFIG_SENSORS_PCA9539=mCONFIG_SENSORS_PCF8591=mCONFIG_SENSORS_MAX6875=m
# CONFIG_SENSORS_TSL2550 is not set
# CONFIG_I2C_DEBUG_CORE is not set
# CONFIG_I2C_DEBUG_ALGO is not set
# CONFIG_I2C_DEBUG_BUS is not set
# CONFIG_I2C_DEBUG_CHIP is not set
#
# SPI support
#CONFIG_SPI=y
# CONFIG_SPI_DEBUG is not setCONFIG_SPI_MASTER=y
#
# SPI Master Controller Drivers
#CONFIG_SPI_BITBANG=m
#
# SPI Protocol Masters
#
# CONFIG_SPI_AT25 is not set
# CONFIG_SPI_SPIDEV is not set
# CONFIG_SPI_TLE62X0 is not set
# CONFIG_W1 is not setCONFIG_POWER_SUPPLY=y
# CONFIG_POWER_SUPPLY_DEBUG is not set
# CONFIG_PDA_POWER is not set
# CONFIG_BATTERY_DS2760 is not setCONFIG_HWMON=yCONFIG_HWMON_VID=mCONFIG_SENSORS_ABITUGURU=m
# CONFIG_SENSORS_ABITUGURU3 is not set
# CONFIG_SENSORS_AD7418 is not setCONFIG_SENSORS_ADM1021=mCONFIG_SENSORS_ADM1025=mCONFIG_SENSORS_ADM1026=m
# CONFIG_SENSORS_ADM1029 is not setCONFIG_SENSORS_ADM1031=mCONFIG_SENSORS_ADM9240=m
# CONFIG_SENSORS_ADT7470 is not setCONFIG_SENSORS_K8TEMP=mCONFIG_SENSORS_ASB100=mCONFIG_SENSORS_ATXP1=mCONFIG_SENSORS_DS1621=m
# CONFIG_SENSORS_I5K_AMB is not setCONFIG_SENSORS_F71805F=m
# CONFIG_SENSORS_F71882FG is not set
# CONFIG_SENSORS_F75375S is not setCONFIG_SENSORS_FSCHER=mCONFIG_SENSORS_FSCPOS=m
# CONFIG_SENSORS_FSCHMD is not setCONFIG_SENSORS_GL518SM=mCONFIG_SENSORS_GL520SM=m
# CONFIG_SENSORS_CORETEMP is not set
# CONFIG_SENSORS_IBMPEX is not setCONFIG_SENSORS_IT87=mCONFIG_SENSORS_LM63=mCONFIG_SENSORS_LM70=mCONFIG_SENSORS_LM75=mCONFIG_SENSORS_LM77=mCONFIG_SENSORS_LM78=mCONFIG_SENSORS_LM80=mCONFIG_SENSORS_LM83=mCONFIG_SENSORS_LM85=mCONFIG_SENSORS_LM87=mCONFIG_SENSORS_LM90=mCONFIG_SENSORS_LM92=m
# CONFIG_SENSORS_LM93 is not setCONFIG_SENSORS_MAX1619=m
# CONFIG_SENSORS_MAX6650 is not setCONFIG_SENSORS_PC87360=mCONFIG_SENSORS_PC87427=mCONFIG_SENSORS_SIS5595=m
# CONFIG_SENSORS_DME1737 is not setCONFIG_SENSORS_SMSC47M1=mCONFIG_SENSORS_SMSC47M192=mCONFIG_SENSORS_SMSC47B397=m
# CONFIG_SENSORS_THMC50 is not setCONFIG_SENSORS_VIA686A=mCONFIG_SENSORS_VT1211=mCONFIG_SENSORS_VT8231=mCONFIG_SENSORS_W83781D=mCONFIG_SENSORS_W83791D=mCONFIG_SENSORS_W83792D=mCONFIG_SENSORS_W83793=mCONFIG_SENSORS_W83L785TS=mCONFIG_SENSORS_W83627HF=mCONFIG_SENSORS_W83627EHF=mCONFIG_SENSORS_HDAPS=mCONFIG_SENSORS_APPLESMC=m
# CONFIG_HWMON_DEBUG_CHIP is not setCONFIG_WATCHDOG=y
# CONFIG_WATCHDOG_NOWAYOUT is not set
#
# Watchdog Device Drivers
#CONFIG_SOFT_WATCHDOG=mCONFIG_ACQUIRE_WDT=mCONFIG_ADVANTECH_WDT=mCONFIG_ALIM1535_WDT=mCONFIG_ALIM7101_WDT=mCONFIG_SC520_WDT=mCONFIG_EUROTECH_WDT=mCONFIG_IB700_WDT=mCONFIG_IBMASR=mCONFIG_WAFER_WDT=mCONFIG_I6300ESB_WDT=mCONFIG_ITCO_WDT=mCONFIG_ITCO_VENDOR_SUPPORT=y
# CONFIG_IT8712F_WDT is not setCONFIG_SC1200_WDT=mCONFIG_PC87413_WDT=mCONFIG_60XX_WDT=mCONFIG_SBC8360_WDT=m
# CONFIG_SBC7240_WDT is not setCONFIG_CPU5_WDT=mCONFIG_SMSC37B787_WDT=mCONFIG_W83627HF_WDT=mCONFIG_W83697HF_WDT=mCONFIG_W83877F_WDT=mCONFIG_W83977F_WDT=mCONFIG_MACHZ_WDT=mCONFIG_SBC_EPX_C3_WATCHDOG=m
#
# ISA-based Watchdog Cards
#CONFIG_PCWATCHDOG=mCONFIG_MIXCOMWD=mCONFIG_WDT=mCONFIG_WDT_501=y
#
# PCI-based Watchdog Cards
#CONFIG_PCIPCWATCHDOG=mCONFIG_WDTPCI=mCONFIG_WDT_501_PCI=y
#
# USB-based Watchdog Cards
#CONFIG_USBPCWATCHDOG=m
#
# Sonics Silicon Backplane
#CONFIG_SSB_POSSIBLE=y
# CONFIG_SSB is not set
#
# Multifunction device drivers
#
# CONFIG_MFD_SM501 is not set
#
# Multimedia devices
#
# CONFIG_VIDEO_DEV is not set
# CONFIG_DVB_CORE is not set
# CONFIG_DAB is not set
#
# Graphics support
#CONFIG_AGP=mCONFIG_AGP_ALI=mCONFIG_AGP_ATI=mCONFIG_AGP_AMD=mCONFIG_AGP_AMD64=mCONFIG_AGP_INTEL=mCONFIG_AGP_NVIDIA=mCONFIG_AGP_SIS=mCONFIG_AGP_SWORKS=mCONFIG_AGP_VIA=mCONFIG_AGP_EFFICEON=mCONFIG_DRM=mCONFIG_DRM_TDFX=mCONFIG_DRM_R128=mCONFIG_DRM_RADEON=mCONFIG_DRM_I810=mCONFIG_DRM_I830=mCONFIG_DRM_I915=mCONFIG_DRM_MGA=mCONFIG_DRM_SIS=mCONFIG_DRM_VIA=mCONFIG_DRM_SAVAGE=mCONFIG_VGASTATE=mCONFIG_VIDEO_OUTPUT_CONTROL=mCONFIG_FB=yCONFIG_FIRMWARE_EDID=yCONFIG_FB_DDC=mCONFIG_FB_CFB_FILLRECT=yCONFIG_FB_CFB_COPYAREA=yCONFIG_FB_CFB_IMAGEBLIT=y
# CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set
# CONFIG_FB_SYS_FILLRECT is not set
# CONFIG_FB_SYS_COPYAREA is not set
# CONFIG_FB_SYS_IMAGEBLIT is not set
# CONFIG_FB_SYS_FOPS is not setCONFIG_FB_DEFERRED_IO=y
# CONFIG_FB_SVGALIB is not set
# CONFIG_FB_MACMODES is not setCONFIG_FB_BACKLIGHT=yCONFIG_FB_MODE_HELPERS=yCONFIG_FB_TILEBLITTING=y
#
# Frame buffer hardware drivers
#
# CONFIG_FB_CIRRUS is not set
# CONFIG_FB_PM2 is not set
# CONFIG_FB_CYBER2000 is not set
# CONFIG_FB_ARC is not set
# CONFIG_FB_ASILIANT is not set
# CONFIG_FB_IMSTT is not setCONFIG_FB_VGA16=m
# CONFIG_FB_UVESA is not set
# CONFIG_FB_VESA is not set
# CONFIG_FB_EFI is not setCONFIG_FB_IMAC=y
# CONFIG_FB_HECUBA is not set
# CONFIG_FB_HGA is not set
# CONFIG_FB_S1D13XXX is not set
# CONFIG_FB_NVIDIA is not set
# CONFIG_FB_RIVA is not set
# CONFIG_FB_I810 is not set
# CONFIG_FB_LE80578 is not set
# CONFIG_FB_INTEL is not set
# CONFIG_FB_MATROX is not setCONFIG_FB_RADEON=mCONFIG_FB_RADEON_I2C=yCONFIG_FB_RADEON_BACKLIGHT=y
# CONFIG_FB_RADEON_DEBUG is not set
# CONFIG_FB_ATY128 is not set
# CONFIG_FB_ATY is not set
# CONFIG_FB_S3 is not set
# CONFIG_FB_SAVAGE is not set
# CONFIG_FB_SIS is not set
# CONFIG_FB_NEOMAGIC is not set
# CONFIG_FB_KYRO is not set
# CONFIG_FB_3DFX is not set
# CONFIG_FB_VOODOO1 is not set
# CONFIG_FB_VT8623 is not set
# CONFIG_FB_CYBLA is not set
# CONFIG_FB_TRIDENT is not set
# CONFIG_FB_ARK is not set
# CONFIG_FB_PM3 is not set
# CONFIG_FB_GEODE is not set
# CONFIG_FB_VIRTUAL is not setCONFIG_BACKLIGHT_LCD_SUPPORT=yCONFIG_LCD_CLASS_DEVICE=m
# CONFIG_LCD_LTV350QV is not setCONFIG_BACKLIGHT_CLASS_DEVICE=y
# CONFIG_BACKLIGHT_CORGI is not set
# CONFIG_BACKLIGHT_PROGEAR is not set
#
# Display device support
#
# CONFIG_DISPLAY_SUPPORT is not set
#
# Console display driver support
#CONFIG_VGA_CONSOLE=y
# CONFIG_VGACON_SOFT_SCROLLBACK is not set CONFIG_VIDEO_SELECT=yCONFIG_MDA_CONSOLE=mCONFIG_DUMMY_CONSOLE=y CONFIG_FRAMEBUFFER_CONSOLE=m
# CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY is not set # CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set # CONFIG_FONTS is not set
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y
# CONFIG_LOGO is not set
#
# Sound
#CONFIG_SOUND=m
#
# Advanced Linux Sound Architecture
#CONFIG_SND=mCONFIG_SND_TIMER=mCONFIG_SND_PCM=mCONFIG_SND_RAWMIDI=mCONFIG_SND_SEQUENCER=mCONFIG_SND_SEQ_DUMMY=mCONFIG_SND_OSSEMUL=yCONFIG_SND_MIXER_OSS=mCONFIG_SND_PCM_OSS=mCONFIG_SND_PCM_OSS_PLUGINS=yCONFIG_SND_SEQUENCER_OSS=yCONFIG_SND_RTCTIMER=mCONFIG_SND_SEQ_RTCTIMER_DEFAULT=yCONFIG_SND_DYNAMIC_MINORS=yCONFIG_SND_SUPPORT_OLD_API=yCONFIG_SND_VERBOSE_PROCFS=y
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set
#
# Generic devices
#CONFIG_SND_MPU401_UART=mCONFIG_SND_AC97_CODEC=mCONFIG_SND_DUMMY=mCONFIG_SND_VIRMIDI=mCONFIG_SND_MTPAV=mCONFIG_SND_SERIAL_U16550=mCONFIG_SND_MPU401=m
#
# ISA devices
#
# CONFIG_SND_ADLIB is not set
# CONFIG_SND_AD1816A is not set
# CONFIG_SND_AD1848 is not set
# CONFIG_SND_ALS100 is not set
# CONFIG_SND_AZT2320 is not set
# CONFIG_SND_CMI8330 is not set
# CONFIG_SND_CS4231 is not set
# CONFIG_SND_CS4232 is not set
# CONFIG_SND_CS4236 is not set
# CONFIG_SND_DT019X is not set
# CONFIG_SND_ES968 is not set
# CONFIG_SND_ES1688 is not set
# CONFIG_SND_ES18XX is not set
# CONFIG_SND_SC6000 is not set
# CONFIG_SND_GUSCLASSIC is not set
# CONFIG_SND_GUSEXTREME is not set
# CONFIG_SND_GUSMAX is not set
# CONFIG_SND_INTERWAVE is not set
# CONFIG_SND_INTERWAVE_STB is not set
# CONFIG_SND_OPL3SA2 is not set
# CONFIG_SND_OPTI92X_AD1848 is not set
# CONFIG_SND_OPTI92X_CS4231 is not set
# CONFIG_SND_OPTI93X is not set
# CONFIG_SND_MIRO is not set
# CONFIG_SND_SB8 is not set
# CONFIG_SND_SB16 is not set
# CONFIG_SND_SBAWE is not set
# CONFIG_SND_SGALAXY is not set
# CONFIG_SND_SSCAPE is not set
# CONFIG_SND_WAVEFRONT is not set
#
# PCI devices
#
# CONFIG_SND_AD1889 is not set
# CONFIG_SND_ALS300 is not set
# CONFIG_SND_ALS4000 is not set
# CONFIG_SND_ALI5451 is not set
# CONFIG_SND_ATIIXP is not set
# CONFIG_SND_ATIIXP_MODEM is not set
# CONFIG_SND_AU8810 is not set
# CONFIG_SND_AU8820 is not set
# CONFIG_SND_AU8830 is not set
# CONFIG_SND_AZT3328 is not set
# CONFIG_SND_BT87X is not set
# CONFIG_SND_CA0106 is not set
# CONFIG_SND_CMIPCI is not set
# CONFIG_SND_CS4281 is not set
# CONFIG_SND_CS46XX is not set
# CONFIG_SND_CS5530 is not set
# CONFIG_SND_CS5535AUDIO is not set
# CONFIG_SND_DARLA20 is not set
# CONFIG_SND_GINA20 is not set
# CONFIG_SND_LAYLA20 is not set
# CONFIG_SND_DARLA24 is not set
# CONFIG_SND_GINA24 is not set
# CONFIG_SND_LAYLA24 is not set
# CONFIG_SND_MONA is not set
# CONFIG_SND_MIA is not set
# CONFIG_SND_ECHO3G is not set
# CONFIG_SND_INDIGO is not set
# CONFIG_SND_INDIGOIO is not set
# CONFIG_SND_INDIGODJ is not set
# CONFIG_SND_EMU10K1 is not set
# CONFIG_SND_EMU10K1X is not set
# CONFIG_SND_ENS1370 is not set
# CONFIG_SND_ENS1371 is not set
# CONFIG_SND_ES1938 is not set
# CONFIG_SND_ES1968 is not set
# CONFIG_SND_FM801 is not set
# CONFIG_SND_HDA_INTEL is not set
# CONFIG_SND_HDSP is not set
# CONFIG_SND_HDSPM is not set
# CONFIG_SND_ICE1712 is not set
# CONFIG_SND_ICE1724 is not setCONFIG_SND_INTEL8X0=mCONFIG_SND_INTEL8X0M=m
# CONFIG_SND_KORG1212 is not set
# CONFIG_SND_MAESTRO3 is not set
# CONFIG_SND_MIXART is not set
# CONFIG_SND_NM256 is not set
# CONFIG_SND_PCXHR is not set
# CONFIG_SND_RIPTIDE is not set
# CONFIG_SND_RME32 is not set
# CONFIG_SND_RME96 is not set
# CONFIG_SND_RME9652 is not set
# CONFIG_SND_SONICVIBES is not set
# CONFIG_SND_TRIDENT is not set
# CONFIG_SND_VIA82XX is not set
# CONFIG_SND_VIA82XX_MODEM is not set
# CONFIG_SND_VX222 is not set
# CONFIG_SND_YMFPCI is not set
# CONFIG_SND_AC97_POWER_SAVE is not set
#
# SPI devices
#
#
# USB devices
#
# CONFIG_SND_USB_AUDIO is not set
# CONFIG_SND_USB_USX2Y is not set
# CONFIG_SND_USB_CAIAQ is not set
#
# PCMCIA devices
#
# CONFIG_SND_VXPOCKET is not set
# CONFIG_SND_PDAUDIOCF is not set
#
# System on Chip audio support
#
# CONFIG_SND_SOC is not set
#
# SoC Audio support for SuperH
#
#
# Open Sound System
#
# CONFIG_SOUND_PRIME is not setCONFIG_AC97_BUS=mCONFIG_HID_SUPPORT=yCONFIG_HID=mCONFIG_HID_DEBUG=y
# CONFIG_HIDRAW is not set
#
# USB Input Devices
#CONFIG_USB_HID=mCONFIG_USB_HIDINPUT_POWERBOOK=y
# CONFIG_HID_FF is not setCONFIG_USB_HIDDEV=y
#
# USB HID Boot Protocol drivers
#CONFIG_USB_KBD=mCONFIG_USB_MOUSE=mCONFIG_USB_SUPPORT=yCONFIG_USB_ARCH_HAS_HCD=yCONFIG_USB_ARCH_HAS_OHCI=yCONFIG_USB_ARCH_HAS_EHCI=yCONFIG_USB=m
# CONFIG_USB_DEBUG is not set
#
# Miscellaneous USB options
#CONFIG_USB_DEVICEFS=yCONFIG_USB_DEVICE_CLASS=y
# CONFIG_USB_DYNAMIC_MINORS is not setCONFIG_USB_SUSPEND=y
# CONFIG_USB_PERSIST is not set
# CONFIG_USB_OTG is not set
#
# USB Host Controller Drivers
#CONFIG_USB_EHCI_HCD=mCONFIG_USB_EHCI_SPLIT_ISO=yCONFIG_USB_EHCI_ROOT_HUB_TT=yCONFIG_USB_EHCI_TT_NEWSCHED=y
# CONFIG_USB_ISP116X_HCD is not setCONFIG_USB_OHCI_HCD=m
# CONFIG_USB_OHCI_BIG_ENDIAN_DESC is not set
# CONFIG_USB_OHCI_BIG_ENDIAN_MMIO is not setCONFIG_USB_OHCI_LITTLE_ENDIAN=yCONFIG_USB_UHCI_HCD=mCONFIG_USB_U132_HCD=mCONFIG_USB_SL811_HCD=mCONFIG_USB_SL811_CS=m
# CONFIG_USB_R8A66597_HCD is not set
#
# USB Device Class drivers
#CONFIG_USB_ACM=mCONFIG_USB_PRINTER=m
#
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' #
#
# may also be needed; see USB_STORAGE Help for more information # CONFIG_USB_STORAGE=m # CONFIG_USB_STORAGE_DEBUG is not set CONFIG_USB_STORAGE_DATAFAB=y CONFIG_USB_STORAGE_FREECOM=y # CONFIG_USB_STORAGE_ISD200 is not set CONFIG_USB_STORAGE_DPCM=y CONFIG_USB_STORAGE_USBAT=y CONFIG_USB_STORAGE_SDDR09=y CONFIG_USB_STORAGE_SDDR55=y CONFIG_USB_STORAGE_JUMPSHOT=y CONFIG_USB_STORAGE_ALAUDA=y CONFIG_USB_STORAGE_KARMA=y CONFIG_USB_LIBUSUAL=y
#
# USB Imaging devices
#CONFIG_USB_MDC800=mCONFIG_USB_MICROTEK=mCONFIG_USB_MON=y
#
# USB port drivers
#
#
# USB Serial Converter support
#CONFIG_USB_SERIAL=mCONFIG_USB_SERIAL_GENERIC=yCONFIG_USB_SERIAL_AIRCABLE=mCONFIG_USB_SERIAL_AIRPRIME=mCONFIG_USB_SERIAL_ARK3116=mCONFIG_USB_SERIAL_BELKIN=m
# CONFIG_USB_SERIAL_CH341 is not setCONFIG_USB_SERIAL_WHITEHEAT=mCONFIG_USB_SERIAL_DIGI_ACCELEPORT=mCONFIG_USB_SERIAL_CP2101=mCONFIG_USB_SERIAL_CYPRESS_M8=mCONFIG_USB_SERIAL_EMPEG=mCONFIG_USB_SERIAL_FTDI_SIO=mCONFIG_USB_SERIAL_FUNSOFT=mCONFIG_USB_SERIAL_VISOR=mCONFIG_USB_SERIAL_IPAQ=mCONFIG_USB_SERIAL_IR=mCONFIG_USB_SERIAL_EDGEPORT=mCONFIG_USB_SERIAL_EDGEPORT_TI=mCONFIG_USB_SERIAL_GARMIN=mCONFIG_USB_SERIAL_IPW=mCONFIG_USB_SERIAL_KEYSPAN_PDA=mCONFIG_USB_SERIAL_KEYSPAN=mCONFIG_USB_SERIAL_KEYSPAN_MPR=yCONFIG_USB_SERIAL_KEYSPAN_USA28=yCONFIG_USB_SERIAL_KEYSPAN_USA28X=yCONFIG_USB_SERIAL_KEYSPAN_USA28XA=yCONFIG_USB_SERIAL_KEYSPAN_USA28XB=yCONFIG_USB_SERIAL_KEYSPAN_USA19=yCONFIG_USB_SERIAL_KEYSPAN_USA18X=yCONFIG_USB_SERIAL_KEYSPAN_USA19W=yCONFIG_USB_SERIAL_KEYSPAN_USA19QW=yCONFIG_USB_SERIAL_KEYSPAN_USA19QI=yCONFIG_USB_SERIAL_KEYSPAN_USA49W=yCONFIG_USB_SERIAL_KEYSPAN_USA49WLC=yCONFIG_USB_SERIAL_KLSI=mCONFIG_USB_SERIAL_KOBIL_SCT=mCONFIG_USB_SERIAL_MCT_U232=mCONFIG_USB_SERIAL_MOS7720=mCONFIG_USB_SERIAL_MOS7840=mCONFIG_USB_SERIAL_NAVMAN=mCONFIG_USB_SERIAL_PL2303=m
# CONFIG_USB_SERIAL_OTI6858 is not setCONFIG_USB_SERIAL_HP4X=mCONFIG_USB_SERIAL_SAFE=m
# CONFIG_USB_SERIAL_SAFE_PADDED is not setCONFIG_USB_SERIAL_SIERRAWIRELESS=mCONFIG_USB_SERIAL_TI=mCONFIG_USB_SERIAL_CYBERJACK=mCONFIG_USB_SERIAL_XIRCOM=mCONFIG_USB_SERIAL_OPTION=mCONFIG_USB_SERIAL_OMNINET=mCONFIG_USB_SERIAL_DEBUG=mCONFIG_USB_EZUSB=y
#
# USB Miscellaneous drivers
#CONFIG_USB_EMI62=mCONFIG_USB_EMI26=mCONFIG_USB_ADUTUX=mCONFIG_USB_AUERSWALD=mCONFIG_USB_RIO500=mCONFIG_USB_LEGOTOWER=mCONFIG_USB_LCD=m
# CONFIG_USB_BERRY_CHARGE is not setCONFIG_USB_LED=mCONFIG_USB_CYPRESS_CY7C63=mCONFIG_USB_CYTHERM=mCONFIG_USB_PHIDGET=mCONFIG_USB_PHIDGETKIT=mCONFIG_USB_PHIDGETMOTORCONTROL=mCONFIG_USB_PHIDGETSERVO=mCONFIG_USB_IDMOUSE=mCONFIG_USB_FTDI_ELAN=mCONFIG_USB_APPLEDISPLAY=mCONFIG_USB_SISUSBVGA=m
# CONFIG_USB_SISUSBVGA_CON is not setCONFIG_USB_LD=mCONFIG_USB_TRANCEVIBRATOR=m
# CONFIG_USB_IOWARRIOR is not setCONFIG_USB_TEST=m
#
# USB DSL modem support
#CONFIG_USB_ATM=mCONFIG_USB_SPEEDTOUCH=mCONFIG_USB_CXACRU=mCONFIG_USB_UEAGLEATM=mCONFIG_USB_XUSBATM=m
#
# USB Gadget Support
#CONFIG_USB_GADGET=m
# CONFIG_USB_GADGET_DEBUG is not set
# CONFIG_USB_GADGET_DEBUG_FILES is not set
# CONFIG_USB_GADGET_DEBUG_FS is not setCONFIG_USB_GADGET_SELECTED=y
# CONFIG_USB_GADGET_AMD5536UDC is not set
# CONFIG_USB_GADGET_ATMEL_USBA is not set
# CONFIG_USB_GADGET_FSL_USB2 is not setCONFIG_USB_GADGET_NET2280=yCONFIG_USB_NET2280=m
# CONFIG_USB_GADGET_PXA2XX is not set
# CONFIG_USB_GADGET_M66592 is not set
# CONFIG_USB_GADGET_GOKU is not set
# CONFIG_USB_GADGET_LH7A40X is not set
# CONFIG_USB_GADGET_OMAP is not set
# CONFIG_USB_GADGET_S3C2410 is not set
# CONFIG_USB_GADGET_AT91 is not set
# CONFIG_USB_GADGET_DUMMY_HCD is not setCONFIG_USB_GADGET_DUALSPEED=yCONFIG_USB_ZERO=mCONFIG_USB_ETH=mCONFIG_USB_ETH_RNDIS=yCONFIG_USB_GADGETFS=mCONFIG_USB_FILE_STORAGE=m
# CONFIG_USB_FILE_STORAGE_TEST is not setCONFIG_USB_G_SERIAL=mCONFIG_USB_MIDI_GADGET=mCONFIG_MMC=m
# CONFIG_MMC_DEBUG is not set
# CONFIG_MMC_UNSAFE_RESUME is not set
#
# MMC/SD Card Drivers
#CONFIG_MMC_BLOCK=mCONFIG_MMC_BLOCK_BOUNCE=y
# CONFIG_SDIO_UART is not set
#
# MMC/SD Host Controller Drivers
#CONFIG_MMC_SDHCI=m
# CONFIG_MMC_RICOH_MMC is not setCONFIG_MMC_WBSD=mCONFIG_MMC_TIFM_SD=mCONFIG_NEW_LEDS=yCONFIG_LEDS_CLASS=m
#
# LED drivers
#
#
# LED Triggers
#
# CONFIG_LEDS_TRIGGERS is not set
# CONFIG_INFINIBAND is not set
# CONFIG_EDAC is not setCONFIG_RTC_LIB=mCONFIG_RTC_CLASS=m
#
# RTC interfaces
#CONFIG_RTC_INTF_SYSFS=yCONFIG_RTC_INTF_PROC=yCONFIG_RTC_INTF_DEV=yCONFIG_RTC_INTF_DEV_UIE_EMUL=yCONFIG_RTC_DRV_TEST=m
#
# I2C RTC drivers
#CONFIG_RTC_DRV_DS1307=m
# CONFIG_RTC_DRV_DS1374 is not setCONFIG_RTC_DRV_DS1672=m
# CONFIG_RTC_DRV_MAX6900 is not setCONFIG_RTC_DRV_RS5C372=mCONFIG_RTC_DRV_ISL1208=mCONFIG_RTC_DRV_X1205=mCONFIG_RTC_DRV_PCF8563=mCONFIG_RTC_DRV_PCF8583=m
# CONFIG_RTC_DRV_M41T80 is not set
#
# SPI RTC drivers
#CONFIG_RTC_DRV_RS5C348=mCONFIG_RTC_DRV_MAX6902=m
#
# Platform RTC drivers
#
# CONFIG_RTC_DRV_CMOS is not setCONFIG_RTC_DRV_DS1553=m
# CONFIG_RTC_DRV_STK17TA8 is not setCONFIG_RTC_DRV_DS1742=mCONFIG_RTC_DRV_M48T86=m
# CONFIG_RTC_DRV_M48T59 is not setCONFIG_RTC_DRV_V3020=m
#
# on-CPU RTC drivers
#
# CONFIG_DMADEVICES is not setCONFIG_VIRTUALIZATION=yCONFIG_KVM=mCONFIG_KVM_INTEL=mCONFIG_KVM_AMD=mCONFIG_LGUEST=m
#
# Userspace I/O
#
# CONFIG_UIO is not setCONFIG_VIRTIO=yCONFIG_VIRTIO_RING=y
#
# Firmware Drivers
#
# CONFIG_EDD is not setCONFIG_EFI_VARS=yCONFIG_DELL_RBU=mCONFIG_DCDBAS=mCONFIG_DMIID=y
#
# File systems
#CONFIG_EXT2_FS=yCONFIG_EXT2_FS_XATTR=yCONFIG_EXT2_FS_POSIX_ACL=yCONFIG_EXT2_FS_SECURITY=y
# CONFIG_EXT2_FS_XIP is not setCONFIG_EXT3_FS=yCONFIG_EXT3_FS_XATTR=yCONFIG_EXT3_FS_POSIX_ACL=yCONFIG_EXT3_FS_SECURITY=y
# CONFIG_EXT4DEV_FS is not setCONFIG_JBD=y
# CONFIG_JBD_DEBUG is not setCONFIG_FS_MBCACHE=y
# CONFIG_REISERFS_FS is not set
# CONFIG_JFS_FS is not setCONFIG_FS_POSIX_ACL=y
# CONFIG_XFS_FS is not set
# CONFIG_GFS2_FS is not set
# CONFIG_OCFS2_FS is not setCONFIG_MINIX_FS=mCONFIG_ROMFS_FS=mCONFIG_INOTIFY=yCONFIG_INOTIFY_USER=yCONFIG_QUOTA=y
# CONFIG_QUOTA_NETLINK_INTERFACE is not setCONFIG_PRINT_QUOTA_WARNING=yCONFIG_QFMT_V1=mCONFIG_QFMT_V2=mCONFIG_QUOTACTL=yCONFIG_DNOTIFY=yCONFIG_AUTOFS_FS=mCONFIG_AUTOFS4_FS=mCONFIG_FUSE_FS=m
#
# CD-ROM/DVD Filesystems
#CONFIG_ISO9660_FS=mCONFIG_JOLIET=yCONFIG_ZISOFS=yCONFIG_UDF_FS=mCONFIG_UDF_NLS=y
#
# DOS/FAT/NT Filesystems
#CONFIG_FAT_FS=mCONFIG_MSDOS_FS=mCONFIG_VFAT_FS=mCONFIG_FAT_DEFAULT_CODEPAGE=437CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"CONFIG_NTFS_FS=m
# CONFIG_NTFS_DEBUG is not set
# CONFIG_NTFS_RW is not set
#
# Pseudo filesystems
#CONFIG_PROC_FS=yCONFIG_PROC_KCORE=yCONFIG_PROC_VMCORE=yCONFIG_PROC_SYSCTL=yCONFIG_SYSFS=yCONFIG_TMPFS=y
# CONFIG_TMPFS_POSIX_ACL is not set
# CONFIG_HUGETLBFS is not set
# CONFIG_HUGETLB_PAGE is not setCONFIG_CONFIGFS_FS=m
#
# Miscellaneous filesystems
#
# CONFIG_ADFS_FS is not set
# CONFIG_AFFS_FS is not setCONFIG_ECRYPT_FS=mCONFIG_HFS_FS=mCONFIG_HFSPLUS_FS=m
# CONFIG_BEFS_FS is not set
# CONFIG_BFS_FS is not set
# CONFIG_EFS_FS is not setCONFIG_CRAMFS=y
# CONFIG_VXFS_FS is not set
# CONFIG_HPFS_FS is not set
# CONFIG_QNX4FS_FS is not set
# CONFIG_SYSV_FS is not setCONFIG_UFS_FS=m
# CONFIG_UFS_FS_WRITE is not set
# CONFIG_UFS_DEBUG is not setCONFIG_NETWORK_FILESYSTEMS=yCONFIG_NFS_FS=mCONFIG_NFS_V3=y
# CONFIG_NFS_V3_ACL is not setCONFIG_NFS_V4=yCONFIG_NFS_DIRECTIO=yCONFIG_NFSD=mCONFIG_NFSD_V3=y
# CONFIG_NFSD_V3_ACL is not setCONFIG_NFSD_V4=yCONFIG_NFSD_TCP=yCONFIG_LOCKD=mCONFIG_LOCKD_V4=yCONFIG_EXPORTFS=mCONFIG_NFS_COMMON=yCONFIG_SUNRPC=mCONFIG_SUNRPC_GSS=m
# CONFIG_SUNRPC_BIND34 is not setCONFIG_RPCSEC_GSS_KRB5=mCONFIG_RPCSEC_GSS_SPKM3=m
# CONFIG_SMB_FS is not setCONFIG_CIFS=m
# CONFIG_CIFS_STATS is not set
# CONFIG_CIFS_WEAK_PW_HASH is not set
# CONFIG_CIFS_XATTR is not set
# CONFIG_CIFS_DEBUG2 is not set
# CONFIG_CIFS_EXPERIMENTAL is not set
# CONFIG_NCP_FS is not set
# CONFIG_CODA_FS is not set
# CONFIG_AFS_FS is not set
#
# Partition Types
#CONFIG_PARTITION_ADVANCED=yCONFIG_ACORN_PARTITION=y
# CONFIG_ACORN_PARTITION_CUMANA is not set
# CONFIG_ACORN_PARTITION_EESOX is not setCONFIG_ACORN_PARTITION_ICS=y
# CONFIG_ACORN_PARTITION_ADFS is not set
# CONFIG_ACORN_PARTITION_POWERTEC is not setCONFIG_ACORN_PARTITION_RISCIX=yCONFIG_OSF_PARTITION=yCONFIG_AMIGA_PARTITION=yCONFIG_ATARI_PARTITION=yCONFIG_MAC_PARTITION=yCONFIG_MSDOS_PARTITION=yCONFIG_BSD_DISKLABEL=yCONFIG_MINIX_SUBPARTITION=yCONFIG_SOLARIS_X86_PARTITION=yCONFIG_UNIXWARE_DISKLABEL=yCONFIG_LDM_PARTITION=y
# CONFIG_LDM_DEBUG is not setCONFIG_SGI_PARTITION=yCONFIG_ULTRIX_PARTITION=yCONFIG_SUN_PARTITION=yCONFIG_KARMA_PARTITION=yCONFIG_EFI_PARTITION=y
# CONFIG_SYSV68_PARTITION is not setCONFIG_NLS=yCONFIG_NLS_DEFAULT="cp437"CONFIG_NLS_CODEPAGE_437=mCONFIG_NLS_CODEPAGE_737=mCONFIG_NLS_CODEPAGE_775=mCONFIG_NLS_CODEPAGE_850=mCONFIG_NLS_CODEPAGE_852=mCONFIG_NLS_CODEPAGE_855=mCONFIG_NLS_CODEPAGE_857=mCONFIG_NLS_CODEPAGE_860=mCONFIG_NLS_CODEPAGE_861=mCONFIG_NLS_CODEPAGE_862=mCONFIG_NLS_CODEPAGE_863=mCONFIG_NLS_CODEPAGE_864=mCONFIG_NLS_CODEPAGE_865=mCONFIG_NLS_CODEPAGE_866=mCONFIG_NLS_CODEPAGE_869=mCONFIG_NLS_CODEPAGE_936=mCONFIG_NLS_CODEPAGE_950=mCONFIG_NLS_CODEPAGE_932=mCONFIG_NLS_CODEPAGE_949=mCONFIG_NLS_CODEPAGE_874=mCONFIG_NLS_ISO8859_8=mCONFIG_NLS_CODEPAGE_1250=mCONFIG_NLS_CODEPAGE_1251=mCONFIG_NLS_ASCII=mCONFIG_NLS_ISO8859_1=mCONFIG_NLS_ISO8859_2=mCONFIG_NLS_ISO8859_3=mCONFIG_NLS_ISO8859_4=mCONFIG_NLS_ISO8859_5=mCONFIG_NLS_ISO8859_6=mCONFIG_NLS_ISO8859_7=mCONFIG_NLS_ISO8859_9=mCONFIG_NLS_ISO8859_13=mCONFIG_NLS_ISO8859_14=mCONFIG_NLS_ISO8859_15=mCONFIG_NLS_KOI8_R=mCONFIG_NLS_KOI8_U=mCONFIG_NLS_UTF8=m
# CONFIG_DLM is not setCONFIG_INSTRUMENTATION=yCONFIG_PROFILING=yCONFIG_OPROFILE=mCONFIG_KPROBES=y
# CONFIG_MARKERS is not set
#
# Kernel hacking
#CONFIG_TRACE_IRQFLAGS_SUPPORT=yCONFIG_PRINTK_TIME=yCONFIG_ENABLE_WARN_DEPRECATED=y
# CONFIG_ENABLE_MUST_CHECK is not setCONFIG_MAGIC_SYSRQ=yCONFIG_UNUSED_SYMBOLS=yCONFIG_DEBUG_FS=y
# CONFIG_HEADERS_CHECK is not setCONFIG_DEBUG_KERNEL=y
# CONFIG_DEBUG_SHIRQ is not setCONFIG_DETECT_SOFTLOCKUP=yCONFIG_SCHED_DEBUG=y
# CONFIG_SCHEDSTATS is not set
# CONFIG_TIMER_STATS is not set
# CONFIG_DEBUG_RT_MUTEXES is not set
# CONFIG_RT_MUTEX_TESTER is not setCONFIG_DEBUG_SPINLOCK=yCONFIG_DEBUG_MUTEXES=yCONFIG_DEBUG_LOCK_ALLOC=yCONFIG_PROVE_LOCKING=yCONFIG_LOCKDEP=y
# CONFIG_LOCK_STAT is not set
# CONFIG_DEBUG_LOCKDEP is not setCONFIG_TRACE_IRQFLAGS=yCONFIG_DEBUG_SPINLOCK_SLEEP=y
# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not setCONFIG_STACKTRACE=y
# CONFIG_DEBUG_KOBJECT is not set
# CONFIG_DEBUG_HIGHMEM is not set
# CONFIG_DEBUG_BUGVERBOSE is not setCONFIG_DEBUG_INFO=y
# CONFIG_DEBUG_VM is not set
# CONFIG_DEBUG_LIST is not set
# CONFIG_DEBUG_SG is not setCONFIG_FRAME_POINTER=y
# CONFIG_FORCED_INLINING is not set
# CONFIG_BOOT_PRINTK_DELAY is not set
# CONFIG_RCU_TORTURE_TEST is not set
# CONFIG_LKDTM is not set
# CONFIG_FAULT_INJECTION is not set
# CONFIG_SAMPLES is not setCONFIG_EARLY_PRINTK=yCONFIG_DEBUG_STACKOVERFLOW=y
# CONFIG_DEBUG_STACK_USAGE is not set
# CONFIG_DEBUG_PAGEALLOC is not set
# CONFIG_DEBUG_RODATA is not setCONFIG_4KSTACKS=yCONFIG_X86_FIND_SMP_CONFIG=yCONFIG_X86_MPPARSE=yCONFIG_DOUBLEFAULT=y
#
# Security options
#CONFIG_KEYS=y
# CONFIG_KEYS_DEBUG_PROC_KEYS is not set CONFIG_SECURITY=yCONFIG_SECURITY_NETWORK=y
# CONFIG_SECURITY_NETWORK_XFRM is not set
# CONFIG_SECURITY_CAPABILITIES is not set CONFIG_SECURITY_SELINUX=y CONFIG_SECURITY_SELINUX_BOOTPARAM=y CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE=0 CONFIG_SECURITY_SELINUX_DISABLE=y CONFIG_SECURITY_SELINUX_DEVELOP=y CONFIG_SECURITY_SELINUX_AVC_STATS=y CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=1
# CONFIG_SECURITY_SELINUX_ENABLE_SECMARK_DEFAULT is not set # CONFIG_SECURITY_SELINUX_POLICYDB_VERSION_MAX is not set CONFIG_XOR_BLOCKS=mCONFIG_ASYNC_CORE=mCONFIG_ASYNC_MEMCPY=mCONFIG_ASYNC_XOR=mCONFIG_CRYPTO=yCONFIG_CRYPTO_ALGAPI=yCONFIG_CRYPTO_BLKCIPHER=mCONFIG_CRYPTO_HASH=yCONFIG_CRYPTO_MANAGER=yCONFIG_CRYPTO_HMAC=yCONFIG_CRYPTO_XCBC=mCONFIG_CRYPTO_NULL=mCONFIG_CRYPTO_MD4=mCONFIG_CRYPTO_MD5=yCONFIG_CRYPTO_SHA1=mCONFIG_CRYPTO_SHA256=mCONFIG_CRYPTO_SHA512=mCONFIG_CRYPTO_WP512=mCONFIG_CRYPTO_TGR192=mCONFIG_CRYPTO_GF128MUL=mCONFIG_CRYPTO_ECB=mCONFIG_CRYPTO_CBC=mCONFIG_CRYPTO_PCBC=mCONFIG_CRYPTO_LRW=m
# CONFIG_CRYPTO_XTS is not set
# CONFIG_CRYPTO_CRYPTD is not set CONFIG_CRYPTO_DES=m
# CONFIG_CRYPTO_FCRYPT is not set CONFIG_CRYPTO_BLOWFISH=mCONFIG_CRYPTO_TWOFISH=m CONFIG_CRYPTO_TWOFISH_COMMON=m CONFIG_CRYPTO_TWOFISH_586=m CONFIG_CRYPTO_SERPENT=mCONFIG_CRYPTO_AES=mCONFIG_CRYPTO_AES_586=mCONFIG_CRYPTO_CAST5=mCONFIG_CRYPTO_CAST6=mCONFIG_CRYPTO_TEA=mCONFIG_CRYPTO_ARC4=mCONFIG_CRYPTO_KHAZAD=mCONFIG_CRYPTO_ANUBIS=m
# CONFIG_CRYPTO_SEED is not set CONFIG_CRYPTO_DEFLATE=m CONFIG_CRYPTO_MICHAEL_MIC=mCONFIG_CRYPTO_CRC32C=m
# CONFIG_CRYPTO_CAMELLIA is not set CONFIG_CRYPTO_TEST=m
# CONFIG_CRYPTO_AUTHENC is not set CONFIG_CRYPTO_HW=yCONFIG_CRYPTO_DEV_PADLOCK=m CONFIG_CRYPTO_DEV_PADLOCK_AES=m CONFIG_CRYPTO_DEV_PADLOCK_SHA=m CONFIG_CRYPTO_DEV_GEODE=m
#
# Library routines
#CONFIG_BITREVERSE=yCONFIG_CRC_CCITT=mCONFIG_CRC16=mCONFIG_CRC_ITU_T=mCONFIG_CRC32=y
# CONFIG_CRC7 is not setCONFIG_LIBCRC32C=mCONFIG_AUDIT_GENERIC=yCONFIG_ZLIB_INFLATE=yCONFIG_ZLIB_DEFLATE=mCONFIG_TEXTSEARCH=yCONFIG_TEXTSEARCH_KMP=mCONFIG_TEXTSEARCH_BM=mCONFIG_TEXTSEARCH_FSM=mCONFIG_PLIST=yCONFIG_HAS_IOMEM=yCONFIG_HAS_IOPORT=yCONFIG_HAS_DMA=yCONFIG_CHECK_SIGNATURE=y
Hi Matt,
Quoted 10 lines · Matt Mackall
Fascinating. Which kernel version are you using? This patch doesn't seem to have made it to mainline:
---
slob: fix free block merging at head of subpage
We weren't merging freed blocks at the beginning of the free list. Fixing this showed a 2.5% efficiency improvement in a userspace test harness.
Hmm, interesting, it definitely improves the best case (although not quite on a par with SLUB) but makes worst case and average case significantly worse (almost as bad as SLAB):
[ the minimum, maximum, and average are of captured from 10 individual runs ]
Free (kB) Used (kB)
Total (kB) min max average min max average
SLUB (no debug) 26536 23868 23892 23877.6 2644 2668 2658.4
SLOB 26548 23472 23640 23579.6 2908 3076 2968.4
SLOB (patched) 26548 23260 23728 23385.2 2820 3288 3162.8
SLAB (no debug) 26544 23316 23364 23343.2 3180 3228 3200.8
SLUB (with debug) 26484 23120 23136 23127.2 3348 3364 3356.8Pekka
Pekka J Enberg
Reviewed-byQuoted 5 lines · Matt Mackall
slob: fix free block merging at head of subpage
We weren't merging freed blocks at the beginning of the free list. Fixing this showed a 2.5% efficiency improvement in a userspace test harness.
[snip]
RFC PATCH 1/1 greatly reduce SLOB external fragmentation
In reply to Pekka J EnbergQuoted 38 lines · Pekka J Enberg
Hi Matt,
Quoted 3 lines · Matt Mackall
I don't have any particular "terrible" workloads for SLUB. But my attempts to simply boot with all three allocators to init=/bin/bash in, say, lguest show a fair margin for SLOB.
Sorry, I once again have bad news ;-). I did some testing with
lguest --block=<rootfile> 32 /boot/vmlinuz-2.6.24-rc6 root=/dev/vda init=doitwhere rootfile is
http://uml.nagafix.co.uk/BusyBox-1.5.0/BusyBox-1.5.0-x86-root_fs.bz2
and the "doit" script in the guest passed as init= is just
#!/bin/sh
mount -t proc proc /proccat /proc/meminfo | grep MemTotal cat /proc/meminfo | grep MemFree cat /proc/meminfo | grep Slaband the results are:
[ the minimum, maximum, and average are of captured from 10 individual runs ]
Free (kB) Used (kB) Total (kB) min max average min max average SLUB (no debug) 26536 23868 23892 23877.6 2644 2668 2658.4 SLOB 26548 23472 23640 23579.6 2908 3076 2968.4 SLAB (no debug) 26544 23316 23364 23343.2 3180 3228 3200.8 SLUB (with debug) 26484 23120 23136 23127.2 3348 3364 3356.8So it seems that on average SLUB uses 300 kilobytes *less memory* (!) (which is roughly 1% of total memory available) after boot than SLOB for my configuration.
Quoted 6 lines
One possible explanation is that the high internal fragmentation (space allocated but not used) of SLUB
kmalloc()only affects short-lived allocations and thus does not show up in the more permanent memory footprint. Likewise, it could be that SLOB has higher external fragmentation (small blocks that are unavailable for allocation) of which SLUB does not suffer from. Dunno, haven't investigated as my results are contradictory to yours.
Yep, you we definitely onto something here. Here's what I got with 10 runs of SLUB on my setup:
MemFree: 55780 kB MemFree: 55780 kB MemFree: 55780 kB MemFree: 55784 kB MemFree: 55788 kB MemFree: 55788 kB MemFree: 55788 kB MemFree: 55792 kB MemFree: 55796 kB MemFree: 55800 kB Avg: 55787.6
And with SLOB + my defrag fix:
MemFree: 55236 kB MemFree: 55284 kB MemFree: 55292 kB MemFree: 55304 kB MemFree: 55384 kB MemFree: 55388 kB MemFree: 55412 kB MemFree: 55420 kB MemFree: 55436 kB MemFree: 55444 kB Avg: 55360.0
Ouch!
So I added a bunch of statistics gathering:
counted pages 409 unused 185242 biggest 1005 fragments 1416 slob pages 410 allocs 22528 frees 12109 active 10419 allocated 932647
page scans 11249 block scans 40650
kmallocs 10247 active 5450 allocated 3484680 overhead 48836 bigpages 827 active 17
total 427 used 245
The first line tells us about SLOB's free list, which has 409 pages, 185k unused, spread into 1416 fragments. The average fragment is 130 bytes.
The next tells us that we've got 410 total SLOB pages (1 is fully allocated), we've done 22k allocs, 12k frees, have 10k allocations active, and 932k total memory allocated (including kmallocs). That means our average SLOB allocation is ~90 bytes.
The kmallocs line tells us we've done 10k allocs, and 5k of them are not yet freed. Since boot, we requested 3.48MiB of kmalloc (without padding) and added on 49k of padding. Thus the average kmalloc is 340 bytes and has 4.77 bytes of padding (1.2% overhead, quite good!).
SLAB and kmalloc objects => 4k are handed straight to the page allocator (same as SLUB), of which there are 17 active pages.
So in total, SLOB is using 427 pages for what optimally could fit in 245 pages. In other words, external fragmentation is horrible.
I kicked this around for a while, slept on it, and then came up with this little hack first thing this morning:
------------
slob: split free list by size
mm/slob.c +22 -10
@@ -112,7 +112,9 @@ static inline void free_slob_page(struct/* * All (partially) free slob pages go on this list. */ -static LIST_HEAD (free_slob_pages); +#define SLOB_BREAK_POINT 300 +static LIST_HEAD (free_slob_pages_big); +static LIST_HEAD (free_slob_pages_small);/* * slob_page: True for all slob pages (false for bigblock pages)
@@ -140,9 +142,9 @@ static inline int slob_page_free(structreturn test_bit (PG_private, &sp->flags); } -static inline void set_slob_page_free (struct slob_page *sp) +static inline void set_slob_page_free (struct slob_page *sp,struct list_head *list) { -list_add (&sp->list, &free_slob_pages); +list_add (&sp->list, list);__set_bit (PG_private, &sp->flags); }
@@ -294,12 +296,18 @@ static void *slob_alloc(size_t size, gfp {struct slob_page *sp;struct list_head *prev; +struct list_head *slob_list;slob_t *b =NULL ;unsigned long flags; + slob_list = &free_slob_pages_small; +if (size >SLOB_BREAK_POINT ) + slob_list = &free_slob_pages_big; +spin_lock_irqsave (&slob_lock, flags);/* Iterate through each partially free page, try to find room */ -list_for_each_entry (sp, &free_slob_pages, list) { + +list_for_each_entry (sp, slob_list, list) {#ifdef CONFIG_NUMA /* * If there's a node specification, search for a partial
@@ -321,9 +329,9 @@ static void *slob_alloc(size_t size, gfp/* Improve fragment distribution and reduce our average * search time by starting our next search here. (see * Knuth vol 1, sec 2.5, pg 449) */ -if (prev != free_slob_pages.prev && - free_slob_pages.next != prev->next) -list_move_tail (&free_slob_pages, prev->next); +if (prev != slob_list->prev && + slob_list->next != prev->next) +list_move_tail (slob_list, prev->next);break ; }spin_unlock_irqrestore (&slob_lock, flags);
@@ -341,7 +349,7 @@ static void *slob_alloc(size_t size, gfp sp->free = b;INIT_LIST_HEAD (&sp->list);set_slob (b,SLOB_UNITS (PAGE_SIZE ), b +SLOB_UNITS (PAGE_SIZE )); -set_slob_page_free (sp); +set_slob_page_free (sp, slob_list); b =slob_page_alloc (sp, size, align);BUG_ON (!b);spin_unlock_irqrestore (&slob_lock, flags);
@@ -357,6 +365,7 @@ static void slob_free(void *block, int sstatic void slob_free (void *block,int size) {struct slob_page *sp; +struct list_head *slob_list;slob_t *prev, *next, *b = (slob_t *)block;slobidx_t units;unsigned long flags;
@@ -364,6 +373,10 @@ static void slob_free(void *block, int sif (unlikely (ZERO_OR_NULL_PTR (block)))return ;BUG_ON (!size); + + slob_list = &free_slob_pages_small; +if (size >SLOB_BREAK_POINT ) + slob_list = &free_slob_pages_big; sp = (struct slob_page *)virt_to_page (block); units =SLOB_UNITS (size);
@@ -387,7 +400,7 @@ static void slob_free(void *block, int sset_slob (b, units, (void *)((unsigned long )(b +SLOB_UNITS (PAGE_SIZE )) &PAGE_MASK )); -set_slob_page_free (sp); +set_slob_page_free (sp, slob_list); goto out; } ------------
And the results are fairly miraculous, so please double-check them on your setup. The resulting statistics change to this:
small list pages 107 unused 39622 biggest 1516 fragments 3511 big list pages 129 unused 23264 biggest 2076 fragments 232 slob pages 243 allocs 22528 frees 12108 active 10420 allocated 932079
page scans 8074 block scans 481530
kmallocs 10248 active 5451 allocated 3484220 overhead 42054 bigpages 825 active 16
total 259 used 244
and 10 runs looks like this:
MemFree: 56056 kB MemFree: 56064 kB MemFree: 56064 kB MemFree: 56068 kB MemFree: 56068 kB MemFree: 56076 kB MemFree: 56084 kB MemFree: 56084 kB MemFree: 56088 kB MemFree: 56092 kB Avg: 56074.4
So the average jumped by 714k from before the patch, became much more stable, and beat SLUB by 287k. There are also 7 perfectly filled pages now, up from 1 before. And we can't get a whole lot better than this:
we're using 259 pages for 244 pages of actual data, so our total overhead is only 6%! For comparison, SLUB's using about 70 pages more for the same data, so its total overhead appears to be about 35%.
By the way, the break at 300 bytes was just the first number that came to my head but moving it around didn't seem to help. It might want to change with page size. Knuth suggests that empirically, arena size/10 is about the maximum allocation size to avoid fragmentation.
Signature · 1 line
Mathematics is the supreme nostalgia of our time.
Re: [RFC PATCH] greatly reduce SLOB external fragmentation
Hi Matt,
Quoted 6 lines · Matt Mackall
I kicked this around for a while, slept on it, and then came up with this little hack first thing this morning:
------------
slob: split free list by size
[snip]
Quoted 2 lines
And the results are fairly miraculous, so please double-check them on your setup. The resulting statistics change to this:
[snip]
Quoted 6 lines
So the average jumped by 714k from before the patch, became much more stable, and beat SLUB by 287k. There are also 7 perfectly filled pages now, up from 1 before. And we can't get a whole lot better than this:
we're using 259 pages for 244 pages of actual data, so our total overhead is only 6%! For comparison, SLUB's using about 70 pages more for the same data, so its total overhead appears to be about 35%.
Unfortunately I only see a slight improvement to SLOB (but it still gets beaten by SLUB):
[ the minimum, maximum, and average are captured from 10 individual runs ]
Free (kB) Used (kB)
Total (kB) min max average min max average
SLUB (no debug) 26536 23868 23892 23877.6 2644 2668 2658.4
SLOB (patched) 26548 23456 23708 23603.2 2840 3092 2944.8
SLOB (vanilla) 26548 23472 23640 23579.6 2908 3076 2968.4
SLAB (no debug) 26544 23316 23364 23343.2 3180 3228 3200.8
SLUB (with debug) 26484 23120 23136 23127.2 3348 3364 3356.8What .config did you use? What kind of user-space do you have? (I am still using the exact same configuration I described in the first mail.)
Pekka
Re: [RFC PATCH] greatly reduce SLOB external fragmentation
Quoted 29 lines · Pekka J Enberg
Hi Matt,
Quoted 6 lines · Matt Mackall
I kicked this around for a while, slept on it, and then came up with this little hack first thing this morning:
------------
slob: split free list by size[snip]
Quoted 2 lines
And the results are fairly miraculous, so please double-check them on your setup. The resulting statistics change to this:
[snip]
Quoted 6 lines
So the average jumped by 714k from before the patch, became much more stable, and beat SLUB by 287k. There are also 7 perfectly filled pages now, up from 1 before. And we can't get a whole lot better than this:
we're using 259 pages for 244 pages of actual data, so our total overhead is only 6%! For comparison, SLUB's using about 70 pages more for the same data, so its total overhead appears to be about 35%.Unfortunately I only see a slight improvement to SLOB (but it still gets beaten by SLUB):
[ the minimum, maximum, and average are captured from 10 individual runs ]
Quoted 7 lines
Free (kB) Used (kB)
Total (kB) min max average min max average
SLUB (no debug) 26536 23868 23892 23877.6 2644 2668 2658.4
SLOB (patched) 26548 23456 23708 23603.2 2840 3092 2944.8
SLOB (vanilla) 26548 23472 23640 23579.6 2908 3076 2968.4
SLAB (no debug) 26544 23316 23364 23343.2 3180 3228 3200.8
SLUB (with debug) 26484 23120 23136 23127.2 3348 3364 3356.8Huh, that's a fairly negligible change on your system. Is that with or without the earlier patch? That doesn't appear to change much here. Guess I'll have to clean up my stats patch and send it to you.
Quoted 2 lines
What .config did you use? What kind of user-space do you have? (I am still using the exact same configuration I described in the first mail.)
I'm using lguest with my Thinkpad config (I'll send that separately), with busybox and init=doit like your setup. Was having trouble getting lguest going with your config, but I may have found the problem.
Signature · 1 line
Mathematics is the supreme nostalgia of our time.
Re: [RFC PATCH] greatly reduce SLOB external fragmentation
Hi Matt,
Quoted 3 lines · Matt Mackall
Huh, that's a fairly negligible change on your system. Is that with or without the earlier patch? That doesn't appear to change much here. Guess I'll have to clean up my stats patch and send it to you.
Ok, if I apply both of the patches, I get better results for SLOB:
[ the minimum, maximum, and average are captured from 10 individual runs ]
Total Free (kB) Used (kB)
(kB) min max average min max average
SLUB (no debug) 26536 23868 23892 23877.6 2644 2668 2658.4
SLOB (both patches) 26548 23612 23860 23766.4 2688 2936 2781.6
SLOB (two lists) 26548 23456 23708 23603.2 2840 3092 2944.8
SLOB (vanilla) 26548 23472 23640 23579.6 2908 3076 2968.4
SLAB (no debug) 26544 23316 23364 23343.2 3180 3228 3200.8
SLOB (merge fix) 26548 23260 23728 23385.2 2820 3288 3162.8
SLUB (with debug) 26484 23120 23136 23127.2 3348 3364 3356.8I'll double check the results for SLUB next but it seems obvious that your patches are a net gain for SLOB and should be applied. One problem though with SLOB seems to be that its memory efficiency is not so stable. Any ideas why that is?
Pekka
Re: [RFC PATCH] greatly reduce SLOB external fragmentation
Hi Matt,
Quoted 4 lines · Pekka J Enberg
I'll double check the results for SLUB next but it seems obvious that your patches are a net gain for SLOB and should be applied. One problem though with SLOB seems to be that its memory efficiency is not so stable. Any ideas why that is?
Ok, I did that. The number are stable and reproducible. In fact, the average for SLUB is within 1 KB of the previous numbers. So, we have the same .config, the same userspace, and the same hypervisor, so what's the difference here?
We probably don't have the same version of GCC which perhaps affects memory layout (struct sizes) and thus allocation patterns? I have included ver_linux from my laptop here:
Linux haji 2.6.24-rc6 #21 SMP Thu Jan 10 12:30:59 EET 2008 i686 GNU/Linux
Gnu C 4.1.3 Gnu make 3.81 binutils 2.18 util-linux 2.13 mount 2.13 module-init-tools 3.3-pre2 e2fsprogs 1.40.2 reiserfsprogs 3.6.19 pcmciautils 014 PPP 2.4.4 Linux C Library 2.6.1 Dynamic linker (ldd) 2.6.1 Procps 3.2.7 Net-tools 1.60 Console-tools 0.2.3 Sh-utils 5.97 udev 113 wireless-tools 29 Modules Loaded af_packet ipv6 binfmt_misc rfcomm l2cap uinput radeon drm acpi_cpufreq cpufreq_userspace cpufreq_stats cpufreq_powersave cpufreq_ondemand freq_table cpufreq_conservative dock container joydev snd_intel8x0 snd_ac97_codec ac97_bus snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_dummy snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device pcmcia psmouse snd ipw2200 serio_raw pcspkr hci_usb soundcore snd_page_alloc bluetooth ieee80211 ieee80211_crypt yenta_socket rsrc_nonstatic pcmcia_core iTCO_wdt iTCO_vendor_support video output shpchp pci_hotplug intel_agp button agpgart thinkpad_acpi nvram evdev sg sd_mod ata_piix floppy ata_generic libata scsi_mod e1000 ehci_hcd uhci_hcd usbcore thermal processor fan fuse
Pekka
Re: [RFC PATCH] greatly reduce SLOB external fragmentation
Quoted 7 lines · Pekka J Enberg
Hi Matt,
Quoted 4 lines · Pekka J Enberg
I'll double check the results for SLUB next but it seems obvious that your patches are a net gain for SLOB and should be applied. One problem though with SLOB seems to be that its memory efficiency is not so stable. Any ideas why that is?
We're seeing different numbers in each allocator indicating that the ordering of allocations is not stable. When fragmentation occurs, it magnifies the underlying instability. On my config, where the split list combats fragmentation extremely effectively, the stability is quite good.
Perhaps I'll add a printk to allocs and generate some size histograms. lguest + grep = relayfs for dummies.
Quoted 4 lines
Ok, I did that. The number are stable and reproducible. In fact, the average for SLUB is within 1 KB of the previous numbers. So, we have the same .config, the same userspace, and the same hypervisor, so what's the difference here?
I've got:
gcc version 4.2.3 20080102 (prerelease) (Debian 4.2.2-5) BusyBox v1.2.1 (2006.11.01-11:21+0000) Built-in shell (ash)
Signature · 1 line
Mathematics is the supreme nostalgia of our time.
Re: [RFC PATCH] greatly reduce SLOB external fragmentation
In reply to Pekka J EnbergQuoted 3 lines · Pekka J Enberg
We probably don't have the same version of GCC which perhaps affects memory layout (struct sizes) and thus allocation patterns?
No, struct sizes will not change with compiler versions - that would create binary incompatibilities for libraries etc.
So apart from the kernel itself working around some old gcc bugs by making spinlocks have different size depending on the compiler version, sizes of structures should be the same (as long as the configuration is the same, of course).
However, a greedy first-fit allocator will be *very* sensitive to allocation pattern differences, so timing will probably make a big difference. In contrast, SLUB and SLAB both use fixed sizes per allocation queue, which makes them almost totally impervious to any allocation pattern from different allocation sizes (they still end up caring about the pattern *within* one size, but those tend to be much stabler).
There really is a reason why traditional heaps with first-fit are almost never used for any real loads.
(I'm not a fan of slabs per se - I think all the constructor/destructor crap is just that: total crap - but the size/type binning is a big deal, and I think SLOB was naïve to think a pure first-fit makes any sense. Now you guys are size-binning by just two or three bins, and it seems to make a difference for some loads, but compared to SLUB/SLAB it's a total hack).
I would suggest that if you guys are really serious about memory use, try to do a size-based heap thing, and do best-fit in that heap. Or just some really simple size-based binning, eg
if (size > 2*PAGE_SIZE) goto page_allocator; bin = lookup_bin[(size+31) >> 5];
or whatever. Because first-fit is *known* to be bad.
At try to change it to address-ordered first-fit or something (which is much more complex than just plain LIFO, but hey, that's life).
I haven't checked much, but I *think* SLOB is just basic first-fit (perhaps the "next-fit" variation?) Next-fit is known to be EVEN WORSE than the simple first-fit when it comes to fragmentation (so no, Knuth was not always right - let's face it, much of Knuth is simply outdated).
Linus
Re: [RFC PATCH] greatly reduce SLOB external fragmentation
Quoted 21 lines · Linus Torvalds
Quoted 3 lines · Pekka J Enberg
We probably don't have the same version of GCC which perhaps affects memory layout (struct sizes) and thus allocation patterns?
No, struct sizes will not change with compiler versions - that would create binary incompatibilities for libraries etc.
So apart from the kernel itself working around some old gcc bugs by making spinlocks have different size depending on the compiler version, sizes of structures should be the same (as long as the configuration is the same, of course).
However, a greedy first-fit allocator will be *very* sensitive to allocation pattern differences, so timing will probably make a big difference. In contrast, SLUB and SLAB both use fixed sizes per allocation queue, which makes them almost totally impervious to any allocation pattern from different allocation sizes (they still end up caring about the pattern *within* one size, but those tend to be much stabler).
Quoted 8 lines
There really is a reason why traditional heaps with first-fit are almost never used for any real loads.
(I'm not a fan of slabs per se - I think all the constructor/destructor crap is just that: total crap - but the size/type binning is a big deal, and I think SLOB was naïve to think a pure first-fit makes any sense. Now you guys are size-binning by just two or three bins, and it seems to make a difference for some loads, but compared to SLUB/SLAB it's a total hack).
Here I'm going to differ with you. The premises of the SLAB concept (from the original paper) are:
a) fragmentation of conventional allocators gets worse over time
b) grouping objects of the same -type- (not size) together should mean they have similar lifetimes and thereby keep fragmentation low
c) slabs can be O(1)
d) constructors and destructors are cache-friendly
There's some truth to (a), but the problem has been quite overstated, pre-SLAB Linux kernels and countless other systems run for years. And
(b) is known to be false, you just have to look at our dcache and icache pinning. (c) of course is a whole separate argument and often trumps the others. And (d) is pretty much crap now too.
And as it happens, SLOB basically always beats SLAB on size.
SLUB only wins when it starts merging caches of different -types- based on -size-, effectively throwing out the whole (b) concept. Which is good, because its wrong. So SLUB starts to look a lot like a purely size-binned allocator.
Quoted 6 lines
I would suggest that if you guys are really serious about memory use, try to do a size-based heap thing, and do best-fit in that heap. Or just some really simple size-based binning, eg
if (size > 2*PAGE_SIZE) goto page_allocator;
I think both SLOB and SLUB punt everything >= PAGE_SIZE off to the page allocator.
Quoted 3 lines
bin = lookup_bin[(size+31) >> 5]or whatever. Because first-fit is *known* to be bad.
It is known to be crummy, but it is NOT known to actually be worse than the SLAB/SLUB approach when you consider both internal and external fragmentation. Power-of-two ala SLAB kmalloc basically guarantees your internal fragmentation will be 30% or so.
In fact, first-fit is known to be pretty good if the ratio of object size to arena size is reasonable. I've already shown a system booting with 6% overhead compared to SLUB's 35% (and SLAB's nearly 70%). The fragmentation measurements for the small object list are in fact quite nice. Not the best benchmark, but it certainly shows that there's substantial room for improvement.
Where it hurts is larger objects (task structs, SKBs), which are also a problem for SLAB/SLUB and I don't think any variation on the search order is going to help there. If we threw 64k pages at it, those problems might very well disappear. Hell, it's pretty tempting to throw vmalloc at it, especially on small boxes..
Quoted 2 lines
At try to change it to address-ordered first-fit or something (which is much more complex than just plain LIFO, but hey, that's life).
Will think about that. Most of the literature here is of limited usefulness - even Knuth didn't look at 4k heaps, let alone collections of them.
Quoted 4 lines
I haven't checked much, but I *think* SLOB is just basic first-fit (perhaps the "next-fit" variation?) Next-fit is known to be EVEN WORSE than the simple first-fit when it comes to fragmentation (so no, Knuth was not always right - let's face it, much of Knuth is simply outdated).
The SLOB allocator is inherently two-level. I'm using a next-fit-like approach to decide which heap (page) to use and first-fit within that heap.
Signature · 1 line
Mathematics is the supreme nostalgia of our time.
Re: [RFC PATCH] greatly reduce SLOB external fragmentation
Quoted 9 lines · Matt Mackall
Quoted 6 lines
(I'm not a fan of slabs per se - I think all the constructor/destructor crap is just that: total crap - but the size/type binning is a big deal, and I think SLOB was naïve to think a pure first-fit makes any sense. Now you guys are size-binning by just two or three bins, and it seems to make a difference for some loads, but compared to SLUB/SLAB it's a total hack).
Here I'm going to differ with you. The premises of the SLAB concept (from the original paper) are:
I really don't think we differ.
The advantage of slab was largely the binning by type. Everything else was just a big crock. SLUB does the binning better, by really just making the type binning be about what really matters - the *size* of the type.
So my argument was that the type/size binning makes sense (size more so than type), but the rest of the original Sun arguments for why slab was such a great idea were basically just the crap.
Hard type binning was a mistake (but needed by slab due to the idiotic notion that constructors/destructors are "good for caches" - bleargh). I suspect that hard size binning is a mistake too (ie there are probably cases where you do want to split unused bigger size areas), but the fact that all of our allocators are two-level (with the page allocator acting as a size-agnostic free space) may help it somewhat.
And yes, I do agree that any current allocator has problems with the big sizes that don't fit well into a page or two (like task_struct). That said, most of those don't have lots of allocations under many normal circumstances (even if there are uses that will really blow them up).
The *big* slab users at least for me tend to be ext3_inode_cache and dentry. Everything else is orders of magnitude less. And of the two bad ones, ext3_inode_cache is the bad one at 700+ bytes or whatever (resulting in ~10% fragmentation just due to the page thing, regardless of whether you use an order-0 or order-1 page allocation).
Of course, dentries fit better in a page (due to being smaller), but then the bigger number of dentries per page make it harder to actually free pages, so then you get fragmentation from that. Oh well. You can't win.
Linus
Re: [RFC PATCH] greatly reduce SLOB external fragmentation
Quoted 40 lines · Linus Torvalds
Quoted 9 lines · Matt Mackall
Quoted 6 lines
(I'm not a fan of slabs per se - I think all the constructor/destructor crap is just that: total crap - but the size/type binning is a big deal, and I think SLOB was naïve to think a pure first-fit makes any sense. Now you guys are size-binning by just two or three bins, and it seems to make a difference for some loads, but compared to SLUB/SLAB it's a total hack).
Here I'm going to differ with you. The premises of the SLAB concept (from the original paper) are:
I really don't think we differ.
The advantage of slab was largely the binning by type. Everything else was just a big crock. SLUB does the binning better, by really just making the type binning be about what really matters - the *size* of the type.
So my argument was that the type/size binning makes sense (size more so than type), but the rest of the original Sun arguments for why slab was such a great idea were basically just the crap.
Hard type binning was a mistake (but needed by slab due to the idiotic notion that constructors/destructors are "good for caches" - bleargh). I suspect that hard size binning is a mistake too (ie there are probably cases where you do want to split unused bigger size areas), but the fact that all of our allocators are two-level (with the page allocator acting as a size-agnostic free space) may help it somewhat.
And yes, I do agree that any current allocator has problems with the big sizes that don't fit well into a page or two (like
task_struct). That said, most of those don't have lots of allocations under many normal circumstances (even if there are uses that will really blow them up).The *big* slab users at least for me tend to be
ext3_inode_cacheand dentry. Everything else is orders of magnitude less. And of the two bad ones,ext3_inode_cacheis the bad one at 700+ bytes or whatever (resulting in ~10% fragmentation just due to the page thing, regardless of whether you use an order-0 or order-1 page allocation).
Quoted 3 lines
Of course, dentries fit better in a page (due to being smaller), but then the bigger number of dentries per page make it harder to actually free pages, so then you get fragmentation from that. Oh well. You can't win.
One idea I've been kicking around is pushing the boundary for the buddy allocator back a bit (to 64k, say) and using SL*B under that. The page allocators would call into buddy for larger than 64k (rare!) and SL*B otherwise. This would let us greatly improve our handling of things like task structs and skbs and possibly also things like 8k stacks and jumbo frames. As SL*B would never be competing with the page allocator for contiguous pages (the buddy allocator's granularity would be 64k), I don't think this would exacerbate the page-level fragmentation issues.
Crazy?
Signature · 1 line
Mathematics is the supreme nostalgia of our time.
Re: [RFC PATCH] greatly reduce SLOB external fragmentation
Quoted 8 lines · Matt Mackall
One idea I've been kicking around is pushing the boundary for the buddy allocator back a bit (to 64k, say) and using SL*B under that. The page allocators would call into buddy for larger than 64k (rare!) and SL*B otherwise. This would let us greatly improve our handling of things like task structs and skbs and possibly also things like 8k stacks and jumbo frames. As SL*B would never be competing with the page allocator for contiguous pages (the buddy allocator's granularity would be 64k), I don't think this would exacerbate the page-level fragmentation issues.
This would create another large page size (and that would have my enthusiastic support). It would decrease listlock effect drastically for SLUB. Even the initial simplistic implementation of SLUB was superior on the database transaction tests (I think it was up ~1%) on IA64 from the get go. Likely due to the larger 16k page size there. The larger page size could also be used for the page cache (ducking and running.....)? A 64k page size that could be allocated without zone locks would be very good for SLUB.
However, isnt this is basically confessing that the page allocator is not efficient for 4k page allocations? I have seen some weaknesses there. The overhead in the allocation path in particular is bad and I was thinking about applying the same ideas used in SLUB also to the page allocator in order to bring the cycle count down from 500-1000 to 60 or so. Since both SLUB and SLOB use the page allocator for allocs >PAGE_SIZE this would not only benefit the general kernel but also the slab allocations.
Re: [RFC PATCH] greatly reduce SLOB external fragmentation
Quoted 11 lines · Christoph Lameter
Quoted 8 lines · Matt Mackall
One idea I've been kicking around is pushing the boundary for the buddy allocator back a bit (to 64k, say) and using SL*B under that. The page allocators would call into buddy for larger than 64k (rare!) and SL*B otherwise. This would let us greatly improve our handling of things like task structs and skbs and possibly also things like 8k stacks and jumbo frames. As SL*B would never be competing with the page allocator for contiguous pages (the buddy allocator's granularity would be 64k), I don't think this would exacerbate the page-level fragmentation issues.
Quoted 2 lines
This would create another large page size (and that would have my enthusiastic support).
Well, I think we'd still have the same page size, in the sense that we'd have a struct page for every hardware page and we'd still have hardware page-sized pages in the page cache. We'd just change how we allocated them. Right now we've got a stack that looks like:
buddy / page allocator
SL*B allocator
kmalloc
And we'd change that to:
buddy allocator
SL*B allocator
page allocator / kmalloc
So get_free_page() would still hand you back a hardware page, it would just do it through SL*B.
Quoted 1 line
It would decrease listlock effect drastically for SLUB.
Not sure what you're referring to here.
Quoted 2 lines
However, isnt this is basically confessing that the page allocator is not efficient for 4k page allocations?
Well I wasn't thinking of doing this for any performance reasons. But there certainly could be some.
Signature · 1 line
Mathematics is the supreme nostalgia of our time.
Re: [RFC PATCH] greatly reduce SLOB external fragmentation
Quoted 4 lines · Matt Mackall
Well, I think we'd still have the same page size, in the sense that we'd have a struct page for every hardware page and we'd still have hardware page-sized pages in the page cache. We'd just change how we allocated them. Right now we've got a stack that looks like:
We would not change the hardware page. Cannot do that. But we would have preferential threadment for 64k and 2M pages in the page allocator?
Quoted 4 lines
buddy / page allocator
SL*B allocator
kmalloc
Quoted 8 lines
And we'd change that to:
buddy allocator
SL*B allocator
page allocator / kmallocSo
get_free_page()would still hand you back a hardware page, it would just do it through SL*B.
Hmm.... Not sure what effect this would have. We already have the pcp's that have a similar effect.
Quoted 3 lines
Quoted 1 line
It would decrease listlock effect drastically for SLUB.
Not sure what you're referring to here.
Allocations in 64k chunks means 16 times less basic allocation blocks to manage for the slab allocators. So the metadata to be maintained by the allocators is reduces by that factor. SLUB only needs to touch the list_lock (in some situations like a free to a non cpu slab) if a block becomes completely empty or is going from fully allocated to partially allocated. The larger the block size the more objects are in a block and the less of these actions that need a per node lock are needed.
Re: [RFC PATCH] greatly reduce SLOB external fragmentation
In reply to Matt MackallQuoted 7 lines · Matt Mackall
One idea I've been kicking around is pushing the boundary for the buddy allocator back a bit (to 64k, say) and using SL*B under that. The page allocators would call into buddy for larger than 64k (rare!) and SL*B otherwise. This would let us greatly improve our handling of things like task structs and skbs and possibly also things like 8k stacks and jumbo frames.
Yes, something like that may well be reasonable. It could possibly solve some of the issues for bigger page cache sizes too, but one issue is that many things actually end up having those power-of-two alignment constraints too - so an 8kB allocation would often still have to be naturally aligned, which then removes some of the freedom.
Quoted 1 line
Crazy?
It sounds like it might be worth trying out - there's just no way to know how well it would work. Buddy allocators sure as hell have problems too, no question about that. It's not like the page allocator is perfect.
It's not even clear that a buddy allocator even for the high-order pages is at all the right choice. Almost nobody actually wants >64kB blocks, and the ones that *do* want bigger allocations tend to want *much* bigger ones, so it's quite possible that it could be worth it to have something like a three-level allocator:
- huge pages (superpages for those crazy db people)
Just a simple linked list of these things is fine, we'd never care about coalescing large pages together anyway.
- "large pages" (on the order of ~64kB) - with *perhaps* a buddy bitmap setup to try to coalesce back into huge-pages, but more likely just admitting that you'd need something like migration to ever get back a hugepage that got split into large-pages.
So maybe a simple bitmap allocator per huge-page for large pages. Say you have a 4MB huge-page, and just a 64-bit free-bitmap per huge-page when you split it into large pages.
- slab/slub/slob for anything else, and "get_free_page()" ends up being just a shorthand for saying "naturally aligned kmalloc of size "PAGE_SIZE<<order"
and maybe it would all work out ok.
Linus
Re: [RFC PATCH] greatly reduce SLOB external fragmentation
Quoted 5 lines · Linus Torvalds
It's not even clear that a buddy allocator even for the high-order pages is at all the right choice. Almost nobody actually wants >64kB blocks, and the ones that *do* want bigger allocations tend to want *much* bigger ones, so it's quite possible that it could be worth it to have something like a three-level allocator:
Excellent! I am definitely on board with this.
Quoted 14 lines
- huge pages (superpages for those crazy db people)
Just a simple linked list of these things is fine, we'd never care about coalescing large pages together anyway.
- "large pages" (on the order of ~64kB) - with *perhaps* a buddy bitmap setup to try to coalesce back into huge-pages, but more likely just admitting that you'd need something like migration to ever get back a hugepage that got split into large-pages.
So maybe a simple bitmap allocator per huge-page for large pages. Say you have a 4MB huge-page, and just a 64-bit free-bitmap per huge-page when you split it into large pages.
Quoted 5 lines
- slab/slub/slob for anything else, and "
get_free_page()" ends up being just a shorthand for saying "naturally aligned kmalloc of size "PAGE_SIZE<<order"and maybe it would all work out ok.
Hmmm... a 3 level allocator? Basically we would have BASE_PAGE STANDARD_PAGE and HUGE_PAGE? We could simply extend the page allocator to have 3 pcp lists for these sizes and go from there?
Thinking about the arches this would mean
BASE_PAGE STANDARD_PAGE HUGE_PAGEx86_64 4k 64k 2M
i386 4k 16k 4M
ia64 16k 256k 1G
?
Re: [RFC PATCH] greatly reduce SLOB external fragmentation
In reply to Linus TorvaldsQuoted 4 lines
- huge pages (superpages for those crazy db people)
Just a simple linked list of these things is fine, we'd never care about coalescing large pages together anyway.
I did essentially that for my GBpages hugetlbfs patchkit. GB pages are already beyond MAX_ORDER and increasing MAX_ORDER didn't seem attractive because it would require aligning the zones all to 1GB which would quite nasty.
So it just grabbed them out of bootmem early and managed them in a per node list.
Not sure it's a good idea for 2MB pages though.
-Andi
Re: [RFC PATCH] greatly reduce SLOB external fragmentation
Quoted 3 lines · Andi Kleen
I did essentially that for my GBpages hugetlbfs patchkit. GB pages are already beyond
MAX_ORDERand increasingMAX_ORDERdidn't seem attractive because it would require aligning the zones all to 1GB which would quite nasty.
I am very very interested in that work and I could not find it when I looked for it a couple of weeks back. Can you sent me a copy?
Re: [RFC PATCH] greatly reduce SLOB external fragmentation
In reply to Matt MackallQuoted 4 lines · Matt Mackall
Here I'm going to differ with you. The premises of the SLAB concept (from the original paper) are:
a) fragmentation of conventional allocators gets worse over time
Even fragmentation of SLAB/SLUB gets worses over time. That is why we need a defrag solution.
Quoted 2 lines
b) grouping objects of the same -type- (not size) together should mean they have similar lifetimes and thereby keep fragmentation low
I agree that is crap. The lifetimes argument is mostly only exploitable in benchmarks. That is why SLUB just groups them by size if possible.
Quoted 1 line
d) constructors and destructors are cache-friendly
I agree. Crap too. We removed the destructors. The constructors are needed so that objects in slab pages always have a definite state. That is f.e. necessary for slab defragmentation because it has to be able to inspect an object at an arbitrary time and either remove it or move it to another slab page.
Constructors also make sense because the initialization of a cache object may be expensive. Initializing list heads and spinlocks can take some code and that code can be omitted if objects have a definite state when they are free. We saw that when measuring the buffer_head constructors effect on performance.
Re: [RFC PATCH] greatly reduce SLOB external fragmentation
Quoted 16 lines · Christoph Lameter
Quoted 4 lines · Matt Mackall
Here I'm going to differ with you. The premises of the SLAB concept (from the original paper) are:
a) fragmentation of conventional allocators gets worse over time
Even fragmentation of SLAB/SLUB gets worses over time. That is why we need a defrag solution.
Quoted 2 lines
b) grouping objects of the same -type- (not size) together should mean they have similar lifetimes and thereby keep fragmentation low
I agree that is crap. The lifetimes argument is mostly only exploitable in benchmarks. That is why SLUB just groups them by size if possible.
Quoted 7 lines
Quoted 1 line
d) constructors and destructors are cache-friendly
I agree. Crap too. We removed the destructors. The constructors are needed so that objects in slab pages always have a definite state. That is f.e. necessary for slab defragmentation because it has to be able to inspect an object at an arbitrary time and either remove it or move it to another slab page.
Are you saying that the state of -freed- objects matters for your active defragmentation? That's odd.
Quoted 5 lines
Constructors also make sense because the initialization of a cache object may be expensive. Initializing list heads and spinlocks can take some code and that code can be omitted if objects have a definite state when they are free. We saw that when measuring the
buffer_headconstructors effect on performance.
Hmm. SLOB proves that you don't need to segregate objects based on constructors, so you could combine even slabs that have constructors and just delay construction until allocation. I'm surprised constructors have measurable advantage..
Signature · 1 line
Mathematics is the supreme nostalgia of our time.
Re: [RFC PATCH] greatly reduce SLOB external fragmentation
Quoted 8 lines · Matt Mackall
Quoted 5 lines
I agree. Crap too. We removed the destructors. The constructors are needed so that objects in slab pages always have a definite state. That is f.e. necessary for slab defragmentation because it has to be able to inspect an object at an arbitrary time and either remove it or move it to another slab page.
Are you saying that the state of -freed- objects matters for your active defragmentation? That's odd.
The state of the object immediately after it is allocated matters for a defrag solution. A kmalloc leads to an object in a undetermined state if you have no constructor. Code will then initialize the object but defrag f.e. must be able to inspect the object before. This means either that the freed object has a defined state or that kmalloc establishes that state before the object is marked as allocated.
Quoted 10 lines
Quoted 5 lines
Constructors also make sense because the initialization of a cache object may be expensive. Initializing list heads and spinlocks can take some code and that code can be omitted if objects have a definite state when they are free. We saw that when measuring the
buffer_headconstructors effect on performance.Hmm. SLOB proves that you don't need to segregate objects based on constructors, so you could combine even slabs that have constructors and just delay construction until allocation. I'm surprised constructors have measurable advantage..
That is not working if you need to inspect allocated objects at any time for a defrag solution. All objects in a defragmentable slab need to have a consistent object state if allocated. If you have some without constructors then these object have no defined state and may contain arbitrary bytes.
Re: [RFC PATCH] greatly reduce SLOB external fragmentation
In reply to Matt MackallQuoted 6 lines · Matt Mackall
b) grouping objects of the same -type- (not size) together should mean they have similar lifetimes and thereby keep fragmentation low
(b) is known to be false, you just have to look at our dcache and icache pinning.
(b) is half-true, actually. The grouping by lifetime makes a lot of sense. LogFS has a similar problem to slabs (only full segments are useful, a single object can pin the segment). And when I grouped my objects very roughly by their life expectency, the impact was *HUGE*!
In both cases, you want slabs/segments that are either close to 100% full or close to 0% full. It matters a lot when you have to move objects around and I would bet it matters even more when you cannot move objects and the slab just remains pinned.
So just because the type alone is a relatively bad heuristic for life expectency does not make the concept false. Bonwick was onto something. He just failed in picking a good heuristic. Quite likely spreading by type was even a bonus when slab was developed, because even such a crude heuristic is slightly better than completely randomized lifetimes.
I've been meaning to split the dentry cache into 2-3 seperate ones for a while and kept spending my time elsewhere. But I remain convinced that this will make a measurable difference.
Jörn
Signature · 3 lines
Never argue with idiots - first they drag you down to their level, then they beat you with experience. -- unknown
Re: [RFC PATCH] greatly reduce SLOB external fragmentation
In reply to Linus TorvaldsQuoted 2 lines
I would suggest that if you guys are really serious about memory use, try to do a size-based heap thing, and do best-fit in that heap. Or just some
iirc best fit usually also has some nasty long term fragmentation behaviour. That is why it is usually also not used.
-Andi
Re: [RFC PATCH] greatly reduce SLOB external fragmentation
In reply to Linus TorvaldsHi Linus,
(I'm replying to an old thread.)
Quoted 10 lines · Linus Torvalds
I would suggest that if you guys are really serious about memory use, try to do a size-based heap thing, and do best-fit in that heap. Or just some really simple size-based binning, eg
if (size > 2*PAGE_SIZE) goto page_allocator; bin = lookup_bin[(size+31) >> 5];or whatever. Because first-fit is *known* to be bad.
Quoted 7 lines
At try to change it to address-ordered first-fit or something (which is much more complex than just plain LIFO, but hey, that's life).
I haven't checked much, but I *think* SLOB is just basic first-fit (perhaps the "next-fit" variation?) Next-fit is known to be EVEN WORSE than the simple first-fit when it comes to fragmentation (so no, Knuth was not always right - let's face it, much of Knuth is simply outdated).
In case you're interested, it turns out that best-fit with binning gives roughly the same results as SLOB (or alternatively, I messed something up with the design and implementation). The interesting bit here is that BINALLOC is more stable than SLOB (almost as stable as SLUB in my tests).
Pekka
Subject: [PATCH] binalloc: best-fit allocation with binning
From: Pekka Enberg <[email protected]>
As suggested by Linus, to optimize memory use, I have implemented a best-fit general purpose kernel memory allocator with binning. You can find the original discussion here:
http://lkml.org/lkml/2008/1/10/229
The results are as follows:
[ the minimum, maximum, and average are of captured from 25 individual runs ]
Total Free (kB) Used (kB)
(kB) min max average sd min max average
SLOB 122372 117676 117768 117721.12 20.51 4604 4696 4650.88
BINALLOC 122368 117672 117732 117699.68 16.74 4636 4696 4668.32
SLUB (no debug) 122360 117284 117328 117308.96 15.27 5032 5076 5051.04Thanks to Vegard Nossum for his help with debugging and testing the allocator and to Johannes Weiner for fixing my bugs.
---
include/linux/binalloc_def.h new file +34 -0
@@ -0,0 +1,34 @@ +#ifndef __LINUX_BINALLOC_DEF_H +#define __LINUX_BINALLOC_DEF_H + +void *kmem_cache_alloc_node (struct kmem_cache *,gfp_t flags,int node); + +static inline void *kmem_cache_alloc (struct kmem_cache *cachep,gfp_t flags) +{ +return kmem_cache_alloc_node (cachep, flags,-1 ); +} + +void *__kmalloc_node (size_t size,gfp_t flags,int node); + +static inline void *kmalloc_node (size_t size,gfp_t flags,int node) +{ +return __kmalloc_node (size, flags, node); +} + +/** +* kmalloc - allocate memory +* @size: how many bytes of memory are required. +* @flags: the type of memory to allocate (see kcalloc). +* +* kmalloc is the normal method of allocating memory +* in the kernel. +*/ +static inline void *kmalloc (size_t size,gfp_t flags) +{ +return __kmalloc_node (size, flags,-1 ); +} + +void *__kmalloc (size_t size,gfp_t flags); + +#endif /* __LINUX_BINALLOC_DEF_H */ +
include/linux/slab.h +3 -1
@@ -124,6 +124,8 @@ size_t ksize(const void *);#include <linux/slub_def.h> #elif defined(CONFIG_SLOB )#include <linux/slob_def.h> +#elif defined(CONFIG_BINALLOC ) +#include <linux/binalloc_def.h> #else #include <linux/slab_def.h> #endif
@@ -186,7 +188,7 @@ static inline void *kcalloc(size_t n, size_t size, gfp_t flags)return __kmalloc (n * size, flags | __GFP_ZERO); } -#if !defined(CONFIG_NUMA ) && !defined(CONFIG_SLOB ) +#if !defined(CONFIG_NUMA ) && !defined(CONFIG_SLOB ) && !defined(CONFIG_BINALLOC )/** * kmalloc_node - allocate memory from a specific node * @size: how many bytes of memory are required.
init/Kconfig +7 -0
@@ -774,6 +774,13 @@ config SLOB allocator. SLOB is generally more space efficient but does not perform as well on large systems. +config BINALLOC + depends on EMBEDDED + bool "BINALLOC" + help + A best-fit general-purpose kernel memory allocator with binning + that tries to be as memory efficient as possible. + endchoice config PROFILING
lib/Kconfig.debug +7 -0
@@ -290,6 +290,13 @@ config SLUB_STATS out which slabs are relevant to a particular load. Try running: slabinfo -DA +config BINALLOC_DEBUG + bool "Debug binalloc memory allocations" + default n + help + Say Y here to have the memory allocator to do sanity checks for + allocation and deallocation. + config DEBUG_PREEMPT bool "Debug preemptible kernel" depends on DEBUG_KERNEL && PREEMPT && (TRACE_IRQFLAGS_SUPPORT || PPC64)
mm/Makefile +1 -0
@@ -28,6 +28,7 @@ obj-$(CONFIG_SLOB) += slob.o obj-$(CONFIG_MMU_NOTIFIER) += mmu_notifier.o obj-$(CONFIG_SLAB) += slab.o obj-$(CONFIG_SLUB) += slub.o +obj-$(CONFIG_BINALLOC) += binalloc.o obj-$(CONFIG_MEMORY_HOTPLUG) += memory_hotplug.o obj-$(CONFIG_FS_XIP) += filemap_xip.o obj-$(CONFIG_MIGRATION) += migrate.o
mm/binalloc.c new file +826 -0
826 lines not on this page · raw message
Re: [RFC PATCH] greatly reduce SLOB external fragmentation
Quoted 3 lines · Pekka J Enberg
Subject: [PATCH] binalloc: best-fit allocation with binning
From: Pekka Enberg <[email protected]>
Shoot me now.
Quoted 1 line
As suggested by Linus,
I'm happy to hear that the thing worked, but I'm not sure how happy I should be about yet _another_ allocator. Will it ever end?
But seriously, it looks simple and small enough, so in that sense there doesn't seem to be a problem. But I really don't look forward to another one of these, at least not without somebody deciding that yes, we can prune one of the old ones as never being better. Hmm?
Linus
Re: [RFC PATCH] greatly reduce SLOB external fragmentation
Hi Linus,
Quoted 2 lines · Linus Torvalds
I'm happy to hear that the thing worked, but I'm not sure how happy I should be about yet _another_ allocator. Will it ever end?
Oh, I didn't suggest this for merging. Just thought you'd be interested to know that best-fit doesn't really do that much better than what we have in the tree now. (Well, I was kinda hoping you'd tell me why my implementation is wrong and you were right all along.)
Quoted 4 lines · Linus Torvalds
But seriously, it looks simple and small enough, so in that sense there doesn't seem to be a problem. But I really don't look forward to another one of these, at least not without somebody deciding that yes, we can prune one of the old ones as never being better. Hmm?
I think the current situation is bit unfortunate. SLOB doesn't want cater for everybody (and probably can't do that either), SLAB sucks for NUMA and embedded, and SLUB is too much of a "memory pig" (although much less so than SLAB) to replace SLOB and it has that TPC regression we don't have a test case for.
So while SLAB is (slowly) on it's way out, we really don't have a strategy for SLOB/SLUB. I'm trying to come up with something that's memory efficient first and then try to tune that for SMP and NUMA. Looking at how tuned the fast-paths of SLAB and SLUB are (due to the design), it seems unlikely that we can come up with anything that could compete with them. But that doesn't mean we can't have fun trying ;-).
Pekka
Re: [RFC PATCH] greatly reduce SLOB external fragmentation
Quoted 5 lines · Pekka Enberg
Oh, I didn't suggest this for merging. Just thought you'd be interested to know that best-fit doesn't really do that much better than what we have in the tree now. (Well, I was kinda hoping you'd tell me why my implementation is wrong and you were right all along.)
Heh. Most allocators tend to work pretty well under normal load, and the real fragmentation problems all tend to happen under special patterns. The one in glibc, for example, sucks donkey dick when using threading, but is apparently ok otherwise.
I wouldn't actually expect most "normal" kernel use to show any really bad patterns on any normal loads. Google for
worst-case first-fit fragmentation
(or 'next-fit' for that matter) to see some stuff. Of course, it is scary only if you can trigger it in practice (perhaps with certains games on packet size, or creating/removing files with pathname size patterns ec).
[ Of course, google probably mostly returns hits from all those ACM
portals etc. I wonder why google does that - they're almost totally useless search results. Sad. If somebody knows how to turn those ACM pay-portals off in google, pls let me know ]
Linus
Re: [RFC PATCH] greatly reduce SLOB external fragmentation
Quoted 4 lines · Linus Torvalds
[ Of course, google probably mostly returns hits from all those ACM
portals etc. I wonder why google does that - they're almost totally useless search results. Sad. If somebody knows how to turn those ACM pay-portals off in google, pls let me know ]
Maybe you, as one of the better known developers in the world, could write an open letter suggesting that ACM get a clue and open up their archives. It's ridiculous that physicists, biologists, and historians should have more and better web resources than the computer scientists.
I propose you start it with "Hey morons".
Signature · 1 line
Mathematics is the supreme nostalgia of our time.
Re: [RFC PATCH] greatly reduce SLOB external fragmentation
In reply to Linus TorvaldsQuoted 21 lines · Linus Torvalds
Quoted 5 lines · Pekka Enberg
Oh, I didn't suggest this for merging. Just thought you'd be interested to know that best-fit doesn't really do that much better than what we have in the tree now. (Well, I was kinda hoping you'd tell me why my implementation is wrong and you were right all along.)
Heh. Most allocators tend to work pretty well under normal load, and the real fragmentation problems all tend to happen under special patterns. The one in glibc, for example, sucks donkey dick when using threading, but is apparently ok otherwise.
I wouldn't actually expect most "normal" kernel use to show any really bad patterns on any normal loads. Google for
worst-case first-fit fragmentation
(or 'next-fit' for that matter) to see some stuff. Of course, it is scary only if you can trigger it in practice (perhaps with certains games on packet size, or creating/removing files with pathname size patterns ec).
Quoted 6 lines
[ Of course, google probably mostly returns hits from all those ACM
portals etc. I wonder why google does that - they're almost totally useless search results. Sad. If somebody knows how to turn those ACM pay-portals off in google, pls let me know ]Linus
blahblah -site:portal.acm.org ?
Signature · 1 line
mailto:[email protected]
Re: [RFC PATCH] greatly reduce SLOB external fragmentation
In reply to Linus TorvaldsQuoted 6 lines · Linus Torvalds
Quoted 3 lines · Pekka J Enberg
Subject: [PATCH] binalloc: best-fit allocation with binning
From: Pekka Enberg <[email protected]>
Quoted 6 lines
Shoot me now.
Quoted 1 line
As suggested by Linus,
I'm happy to hear that the thing worked, but I'm not sure how happy I should be about yet _another_ allocator. Will it ever end?
I think you can relax: the logical limit is probably two. We want an allocator that is both optimally fast and scalable on one end and optimally space-efficient on the other end and we're unlikely to find one allocator that is simultaneously both. But I don't think there's much call for things in the middle of the spectrum.
So if this new one (which I haven't looked at yet) beats SLOB in space usage and simplicity, I'll be happy to see it replace SLOB.
Finally getting rid of SLAB is a much trickier proposition because SLUB still loses in a few important corner cases.
Signature · 1 line
Mathematics is the supreme nostalgia of our time.
Re: [RFC PATCH] greatly reduce SLOB external fragmentation
Quoted 2 lines
Finally getting rid of SLAB is a much trickier proposition because SLUB still loses in a few important corner cases.
The big issue is that we haven't really made much progress on at least some of these test cases (like the database benchmarks) for quite some time (and that wasn't for a lack of trying) :-/ Might be a fundamental problem.
-Andi
Re: [RFC PATCH] greatly reduce SLOB external fragmentation
Quoted 7 lines · Andi Kleen
Quoted 2 lines
Finally getting rid of SLAB is a much trickier proposition because SLUB still loses in a few important corner cases.
The big issue is that we haven't really made much progress on at least some of these test cases (like the database benchmarks) for quite some time (and that wasn't for a lack of trying) :-/ Might be a fundamental problem.
It would be good to have more of these benchmark regressions than just TPC which requires a database setup etc etc. Preferably something that is easily runnable by everyone.
There is a fundamental difference in how frees are handled. Slub is queueless so it must use an atomic operation on the page struct of the slab that we free to (in the case that the freeing does not occur to the current cpu slab) to serialize access.
SLAB can avoid that by just stuffing the pointer to the object to be freed into a per cpu queue. Then later the queue is processed and the objects are merged into the slabs. But the later workqueue processing then causes run time variabilities which impact network performance and cause latencies. And the queuing only works in the SMP case. In the NUMA case we need to first check the locality of the object and then stuff it into alien queues (if its not local node). Then we need to expire the alien queues at some point. We have these alien queues per node which means they require locks and we have NODES * CPUS of them.
Re: [RFC PATCH] greatly reduce SLOB external fragmentation
Quoted 10 lines · Christoph Lameter
Quoted 7 lines · Andi Kleen
Quoted 2 lines
Finally getting rid of SLAB is a much trickier proposition because SLUB still loses in a few important corner cases.
The big issue is that we haven't really made much progress on at least some of these test cases (like the database benchmarks) for quite some time (and that wasn't for a lack of trying) :-/ Might be a fundamental problem.
It would be good to have more of these benchmark regressions than just TPC which requires a database setup etc etc. Preferably something that is easily runnable by everyone.
AFAIK willy had a small test case for at least one of them.
-Andi
Re: [RFC PATCH] greatly reduce SLOB external fragmentation
Quoted 11 lines · Andi Kleen
Quoted 8 lines · Christoph Lameter
Quoted 6 lines · Andi Kleen
Quoted 2 lines
Finally getting rid of SLAB is a much trickier proposition because SLUB still loses in a few important corner cases.
The big issue is that we haven't really made much progress on at least some of these test cases (like the database benchmarks) for quite some time (and that wasn't for a lack of trying) :-/ Might be a fundamental problem.
It would be good to have more of these benchmark regressions than just TPC which requires a database setup etc etc. Preferably something that is easily runnable by everyone.
AFAIK willy had a small test case for at least one of them.
He is developing a scsi performance test program that showed a regression but it was proprietary last time I heard of it. Maybe its now available?
Re: [RFC PATCH] greatly reduce SLOB external fragmentation
In reply to Matt MackallQuoted 2 lines · Matt Mackall
Finally getting rid of SLAB is a much trickier proposition because SLUB still loses in a few important corner cases.
Which corner cases? I know about the reports on the TPC issue which I guess is a result of the avoidance of queueing in the cold free case. It would be good to have a small C program (under an open source license) that shows the issue.
Re: [RFC PATCH] greatly reduce SLOB external fragmentation
Quoted 9 lines · Christoph Lameter
Quoted 2 lines · Matt Mackall
Finally getting rid of SLAB is a much trickier proposition because SLUB still loses in a few important corner cases.
Which corner cases? I know about the reports on the TPC issue which I guess is a result of the avoidance of queueing in the cold free case. It would be good to have a small C program (under an open source license) that shows the issue.
That's the one I had in mind, which I have no personal insight into.
Signature · 1 line
Mathematics is the supreme nostalgia of our time.
Re: [RFC PATCH] greatly reduce SLOB external fragmentation
Quoted 11 lines · Matt Mackall
Quoted 8 lines · Christoph Lameter
Quoted 2 lines · Matt Mackall
Finally getting rid of SLAB is a much trickier proposition because SLUB still loses in a few important corner cases.
Which corner cases? I know about the reports on the TPC issue which I guess is a result of the avoidance of queueing in the cold free case. It would be good to have a small C program (under an open source license) that shows the issue.
That's the one I had in mind, which I have no personal insight into.
I also only so far had to rely on reports by others and guesswork as to what is going on.
Re: [RFC PATCH] greatly reduce SLOB external fragmentation
In reply to Pekka J EnbergQuoted 29 lines · Pekka J Enberg
Hi Matt,
Quoted 6 lines · Matt Mackall
I kicked this around for a while, slept on it, and then came up with this little hack first thing this morning:
------------
slob: split free list by size[snip]
Quoted 2 lines
And the results are fairly miraculous, so please double-check them on your setup. The resulting statistics change to this:
[snip]
Quoted 6 lines
So the average jumped by 714k from before the patch, became much more stable, and beat SLUB by 287k. There are also 7 perfectly filled pages now, up from 1 before. And we can't get a whole lot better than this:
we're using 259 pages for 244 pages of actual data, so our total overhead is only 6%! For comparison, SLUB's using about 70 pages more for the same data, so its total overhead appears to be about 35%.Unfortunately I only see a slight improvement to SLOB (but it still gets beaten by SLUB):
[ the minimum, maximum, and average are captured from 10 individual runs ]
Quoted 7 lines
Free (kB) Used (kB)
Total (kB) min max average min max average
SLUB (no debug) 26536 23868 23892 23877.6 2644 2668 2658.4
SLOB (patched) 26548 23456 23708 23603.2 2840 3092 2944.8
SLOB (vanilla) 26548 23472 23640 23579.6 2908 3076 2968.4
SLAB (no debug) 26544 23316 23364 23343.2 3180 3228 3200.8
SLUB (with debug) 26484 23120 23136 23127.2 3348 3364 3356.8With your kernel config and my lguest+busybox setup, I get:
SLUB:
MemFree: 24208 kB MemFree: 24212 kB MemFree: 24212 kB MemFree: 24212 kB MemFree: 24216 kB MemFree: 24216 kB MemFree: 24220 kB MemFree: 24220 kB MemFree: 24224 kB MemFree: 24232 kB avg: 24217.2
SLOB with two lists:
MemFree: 24204 kB MemFree: 24260 kB MemFree: 24260 kB MemFree: 24276 kB MemFree: 24288 kB MemFree: 24292 kB MemFree: 24312 kB MemFree: 24320 kB MemFree: 24336 kB MemFree: 24396 kB avg: 24294.4
Not sure why this result is so different from yours.
Hacked this up to three lists to experiment and we now have:
MemFree: 24348 kB MemFree: 24372 kB MemFree: 24372 kB MemFree: 24372 kB MemFree: 24372 kB MemFree: 24380 kB MemFree: 24384 kB MemFree: 24404 kB MemFree: 24404 kB MemFree: 24408 kB avg: 24344.4
Even the last version is still using about 250 pages of storage for 209 pages of data, so it's got about 20% overhead still.
Signature · 1 line
Mathematics is the supreme nostalgia of our time.
Re: [RFC PATCH] greatly reduce SLOB external fragmentation
In reply to Matt MackallQuoted 3 lines · Matt Mackall
------------
slob: split free list by size
[snip]
Quoted 5 lines · Ingo Molnar
right now we are far away from it - SLUB has an order of magnitude larger .o than SLOB, even on UP. I'm wondering why that is so - SLUB's data structures _are_ quite compact and could in theory be used in a SLOB-alike way. Perhaps one problem is that much of SLUB's debugging code is always built in?
In embedded mode you can switch the debugging code off.