Re: Badness with the kernel version 2.6.35-rc1-git1 running on P6 box

2010-07-20 Thread divya

On Friday 16 July 2010 03:26 PM, Eric Dumazet wrote:

Le vendredi 16 juillet 2010 à 14:20 +0530, divya a écrit :
   

Hi ,

With the latest kernel version 2.6.35-rc5-git1(2f7989efd4398) running on 
power(p6) box came across the following
call trace

Call Trace:
[c6a0e800] [c0011c30] .show_stack+0x6c/0x16c (unreliable)
[c6a0e8b0] [c012129c] .__alloc_pages_nodemask+0x6a0/0x75c
[c6a0ea30] [c01527cc] .alloc_pages_current+0xc4/0x104
[c6a0ead0] [c015b1a0] .new_slab+0xe0/0x314
[c6a0eb70] [c015b6fc] .__slab_alloc+0x328/0x644
[c6a0ec50] [c015cc34] .__kmalloc_node_track_caller+0x114/0x194
[c6a0ed00] [c0599f6c] .__alloc_skb+0x94/0x180
[c6a0edb0] [c059af5c] .__netdev_alloc_skb+0x3c/0x74
[c6a0ee30] [c04f9480] .ehea_refill_rq_def+0xf8/0x2d0
[c6a0ef30] [c04fab8c] .ehea_up+0x5b8/0x69c
[c6a0f040] [c04facd4] .ehea_open+0x64/0x118
[c6a0f0e0] [c05a6e9c] .__dev_open+0x100/0x168
[c6a0f170] [c05a3ac0] .__dev_change_flags+0x10c/0x1ac
[c6a0f210] [c05a6d44] .dev_change_flags+0x24/0x7c
[c6a0f2a0] [c05b50b4] .do_setlink+0x31c/0x750
[c6a0f3b0] [c05b6724] .rtnl_newlink+0x388/0x618
[c6a0f5f0] [c05b6350] .rtnetlink_rcv_msg+0x268/0x2b4
[c6a0f6a0] [c05cfdc0] .netlink_rcv_skb+0x74/0x108
[c6a0f730] [c05b60c4] .rtnetlink_rcv+0x38/0x5c
[c6a0f7c0] [c05cf8c8] .netlink_unicast+0x318/0x3f4
[c6a0f890] [c05d05b4] .netlink_sendmsg+0x2d0/0x310
[c6a0f970] [c058e1e8] .sock_sendmsg+0xd4/0x110
[c6a0fb50] [c058e514] .SyS_sendmsg+0x1f4/0x288
[c6a0fd70] [c058c2b8] .SyS_socketcall+0x214/0x280
[c6a0fe30] [c00085b4] syscall_exit+0x0/0x40
Mem-Info:
Node 0 DMA per-cpu:
CPU0: hi:0, btch:   1 usd:   0
CPU1: hi:0, btch:   1 usd:   0
CPU2: hi:0, btch:   1 usd:   0
CPU3: hi:0, btch:   1 usd:   0
active_anon:50 inactive_anon:260 isolated_anon:0
   active_file:159 inactive_file:139 isolated_file:0
   unevictable:0 dirty:2 writeback:1 unstable:0
   free:16 slab_reclaimable:66 slab_unreclaimable:502
   mapped:120 shmem:2 pagetables:37 bounce:0
Node 0 DMA free:1024kB min:1408kB low:1728kB high:2112kB active_anon:3200kB 
inactive_anon:16640kB active_file:10176kB inactive_file:8896kB unevictable:0kB 
isolated(anon):0kB isolated(file):0kB present:130944kB mlocked:0kB dirty:128kB 
writeback:64kB mapped:7680kB shmem:128kB slab_reclaimable:4224kB 
slab_unreclaimable:32128kB kernel_stack:2528kB pagetables:2368kB unstable:0kB 
bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 0
Node 0 DMA: 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB 0*8192kB 
0*16384kB = 0kB
496 total pagecache pages
178 pages in swap cache
Swap cache stats: add 780, delete 602, find 467/551
Free swap  = 1027904kB
Total swap = 1044160kB
2048 pages RAM
683 pages reserved
582 pages shared
1075 pages non-shared
SLUB: Unable to allocate memory on node -1 (gfp=0x20)
cache: kmalloc-16384, object size: 16384, buffer size: 16384, default 
order: 2, min order: 0
node 0: slabs: 28, objs: 292, free: 0
ip: page allocation failure. order:0, mode:0x8020
Call Trace:
[c6a0eb40] [c0011c30] .show_stack+0x6c/0x16c (unreliable)
[c6a0ebf0] [c012129c] .__alloc_pages_nodemask+0x6a0/0x75c
[c6a0ed70] [c01527cc] .alloc_pages_current+0xc4/0x104
[c6a0ee10] [c011fca4] .__get_free_pages+0x18/0x90
[c6a0ee90] [c04f7058] .ehea_get_stats+0x4c/0x1bc
[c6a0ef30] [c05a0a04] .dev_get_stats+0x38/0x64
[c6a0efc0] [c05b456c] .rtnl_fill_ifinfo+0x35c/0x85c
[c6a0f150] [c05b5920] .rtmsg_ifinfo+0x164/0x204
[c6a0f210] [c05a6d6c] .dev_change_flags+0x4c/0x7c
[c6a0f2a0] [c05b50b4] .do_setlink+0x31c/0x750
[c6a0f3b0] [c05b6724] .rtnl_newlink+0x388/0x618
[c6a0f5f0] [c05b6350] .rtnetlink_rcv_msg+0x268/0x2b4
[c6a0f6a0] [c05cfdc0] .netlink_rcv_skb+0x74/0x108
[c6a0f730] [c05b60c4] .rtnetlink_rcv+0x38/0x5c
[c6a0f7c0] [c05cf8c8] .netlink_unicast+0x318/0x3f4
[c6a0f890] [c05d05b4] .netlink_sendmsg+0x2d0/0x310
[c6a0f970] [c058e1e8] .sock_sendmsg+0xd4/0x110
[c6a0fb50] [c058e514] .SyS_sendmsg+0x1f4/0x288
[c6a0fd70] [c058c2b8] .SyS_socketcall+0x214/0x280
[c6a0fe30] [c00085b4] syscall_exit+0x0/0x40
Mem-Info:
Node 0 DMA per-cpu:
CPU0: hi:0, btch:   1 usd:   0
CPU1: hi:0, btch:   1 usd:   0
CPU2: hi:0, btch:   1 usd:   0
CPU3: hi:0, btch:   1 usd:   0

The mainline 2.6.35-rc5 worked fine.
 

Maybe you were lucky with 2.6.35-rc5

Anyway ehea should n

Re: Badness with the kernel version 2.6.35-rc1-git1 running on P6 box

2010-07-18 Thread David Miller
From: Eric Dumazet 
Date: Fri, 16 Jul 2010 14:20:42 +0200

> Le vendredi 16 juillet 2010 à 11:56 +0200, Eric Dumazet a écrit :
> 
>> [PATCH] ehea: ehea_get_stats() should use GFP_KERNEL
>> 
>> ehea_get_stats() is called in process context and should use GFP_KERNEL
>> allocation instead of GFP_ATOMIC.
>> 
>> Clearing stats at beginning of ehea_get_stats() is racy in case of
>> concurrent stat readers.
>> 
>> get_stats() can also use netdev net_device_stats, instead of a private
>> copy.
>> 
>> Reported-by: divya 
>> Signed-off-by: Eric Dumazet 
>> ---
>>  drivers/net/ehea/ehea.h  |1 -
>>  drivers/net/ehea/ehea_main.c |6 ++
>>  2 files changed, 2 insertions(+), 5 deletions(-)
>> 
>> 
> 
> Hmm, net-next-2.6 contains following patch :

If people think ehea usage is ubiquitous enough to deserve a backport
of this to net-2.6, fine.  But personally I don't think it's worth it.

Can someone close the kernel bugzilla 16406 created for this bug?  This
patch we have already obviously would fix this issue.
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


Re: Badness with the kernel version 2.6.35-rc1-git1 running on P6 box

2010-07-16 Thread Maciej Rutecki
On piątek, 16 lipca 2010 o 10:50:30 divya wrote:
> Hi ,
> 
> With the latest kernel version 2.6.35-rc5-git1(2f7989efd4398) running on
> power(p6) box came across the following call trace
> 
I created a Bugzilla entry at 
https://bugzilla.kernel.org/show_bug.cgi?id=16406
for your bug report, please add your address to the CC list in there, thanks!

-- 
Maciej Rutecki
http://www.maciek.unixy.pl
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: Badness with the kernel version 2.6.35-rc1-git1 running on P6 box

2010-07-16 Thread David Rientjes
On Fri, 16 Jul 2010, Dave Hansen wrote:

> > > SLUB: Unable to allocate memory on node -1 (gfp=0x20)
> > >cache: kmalloc-16384, object size: 16384, buffer size: 16384,
> > default order: 2, min order: 0
> > >node 0: slabs: 28, objs: 292, free: 0
> > > ip: page allocation failure. order:0, mode:0x8020
> > > Call Trace:
> > > [c6a0eb40] [c0011c30] .show_stack+0x6c/0x16c (unreliable)
> > > [c6a0ebf0] [c012129c] .__alloc_pages_nodemask+0x6a0/0x75c
> > > [c6a0ed70] [c01527cc] .alloc_pages_current+0xc4/0x104
> > > [c6a0ee10] [c011fca4] .__get_free_pages+0x18/0x90
> > > [c6a0ee90] [c04f7058] .ehea_get_stats+0x4c/0x1bc
> > > [c6a0ef30] [c05a0a04] .dev_get_stats+0x38/0x64
> > > [c6a0efc0] [c05b456c] .rtnl_fill_ifinfo+0x35c/0x85c
> > > [c6a0f150] [c05b5920] .rtmsg_ifinfo+0x164/0x204
> > > [c6a0f210] [c05a6d6c] .dev_change_flags+0x4c/0x7c
> > > [c6a0f2a0] [c05b50b4] .do_setlink+0x31c/0x750
> > > [c6a0f3b0] [c05b6724] .rtnl_newlink+0x388/0x618
> > > [c6a0f5f0] [c05b6350] .rtnetlink_rcv_msg+0x268/0x2b4
> > > [c6a0f6a0] [c05cfdc0] .netlink_rcv_skb+0x74/0x108
> > > [c6a0f730] [c05b60c4] .rtnetlink_rcv+0x38/0x5c
> > > [c6a0f7c0] [c05cf8c8] .netlink_unicast+0x318/0x3f4
> > > [c6a0f890] [c05d05b4] .netlink_sendmsg+0x2d0/0x310
> > > [c6a0f970] [c058e1e8] .sock_sendmsg+0xd4/0x110
> > > [c6a0fb50] [c058e514] .SyS_sendmsg+0x1f4/0x288
> > > [c6a0fd70] [c058c2b8] .SyS_socketcall+0x214/0x280
> > > [c6a0fe30] [c00085b4] syscall_exit+0x0/0x40
> > > Mem-Info:
> > > Node 0 DMA per-cpu:
> > > CPU0: hi:0, btch:   1 usd:   0
> > > CPU1: hi:0, btch:   1 usd:   0
> > > CPU2: hi:0, btch:   1 usd:   0
> > > CPU3: hi:0, btch:   1 usd:   0
> > > 
> > > The mainline 2.6.35-rc5 worked fine.
> > 
> > Maybe you were lucky with 2.6.35-rc5
> > 
> > Anyway ehea should not use GFP_ATOMIC in its ehea_get_stats() method,
> > called in process context, but GFP_KERNEL.
> > 
> > Another patch is needed for ehea_refill_rq_def() as well.
> 
> You're right that this is abusing GFP_ATOMIC.
> 
> But is, this is just a normal "GFP_ATOMIC" allocation failure?  "SLUB:
> Unable to allocate memory on node -1" seems like a somewhat
> inappropriate error message for that.  
> 

The slub message is seperate and doesn't generate a call trace, even 
though it is a (minimum) order-0 GFP_ATOMIC allocation as well.  The page 
allocation failure is seperate instance that is calling the page 
allocator, not the slab allocator.

> It isn't immediately obvious where the -1 is coming from.  Does it truly
> mean "allocate from any node" here, or is that a buglet in and of
> itself?
> 

Yes, slub uses -1 to indicate that the allocation need not come from a 
specific node.
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


Re: Badness with the kernel version 2.6.35-rc1-git1 running on P6 box

2010-07-16 Thread Dave Hansen
On Fri, 2010-07-16 at 11:56 +0200, Eric Dumazet wrote:
> 
> > SLUB: Unable to allocate memory on node -1 (gfp=0x20)
> >cache: kmalloc-16384, object size: 16384, buffer size: 16384,
> default order: 2, min order: 0
> >node 0: slabs: 28, objs: 292, free: 0
> > ip: page allocation failure. order:0, mode:0x8020
> > Call Trace:
> > [c6a0eb40] [c0011c30] .show_stack+0x6c/0x16c (unreliable)
> > [c6a0ebf0] [c012129c] .__alloc_pages_nodemask+0x6a0/0x75c
> > [c6a0ed70] [c01527cc] .alloc_pages_current+0xc4/0x104
> > [c6a0ee10] [c011fca4] .__get_free_pages+0x18/0x90
> > [c6a0ee90] [c04f7058] .ehea_get_stats+0x4c/0x1bc
> > [c6a0ef30] [c05a0a04] .dev_get_stats+0x38/0x64
> > [c6a0efc0] [c05b456c] .rtnl_fill_ifinfo+0x35c/0x85c
> > [c6a0f150] [c05b5920] .rtmsg_ifinfo+0x164/0x204
> > [c6a0f210] [c05a6d6c] .dev_change_flags+0x4c/0x7c
> > [c6a0f2a0] [c05b50b4] .do_setlink+0x31c/0x750
> > [c6a0f3b0] [c05b6724] .rtnl_newlink+0x388/0x618
> > [c6a0f5f0] [c05b6350] .rtnetlink_rcv_msg+0x268/0x2b4
> > [c6a0f6a0] [c05cfdc0] .netlink_rcv_skb+0x74/0x108
> > [c6a0f730] [c05b60c4] .rtnetlink_rcv+0x38/0x5c
> > [c6a0f7c0] [c05cf8c8] .netlink_unicast+0x318/0x3f4
> > [c6a0f890] [c05d05b4] .netlink_sendmsg+0x2d0/0x310
> > [c6a0f970] [c058e1e8] .sock_sendmsg+0xd4/0x110
> > [c6a0fb50] [c058e514] .SyS_sendmsg+0x1f4/0x288
> > [c6a0fd70] [c058c2b8] .SyS_socketcall+0x214/0x280
> > [c6a0fe30] [c00085b4] syscall_exit+0x0/0x40
> > Mem-Info:
> > Node 0 DMA per-cpu:
> > CPU0: hi:0, btch:   1 usd:   0
> > CPU1: hi:0, btch:   1 usd:   0
> > CPU2: hi:0, btch:   1 usd:   0
> > CPU3: hi:0, btch:   1 usd:   0
> > 
> > The mainline 2.6.35-rc5 worked fine.
> 
> Maybe you were lucky with 2.6.35-rc5
> 
> Anyway ehea should not use GFP_ATOMIC in its ehea_get_stats() method,
> called in process context, but GFP_KERNEL.
> 
> Another patch is needed for ehea_refill_rq_def() as well.

You're right that this is abusing GFP_ATOMIC.

But is, this is just a normal "GFP_ATOMIC" allocation failure?  "SLUB:
Unable to allocate memory on node -1" seems like a somewhat
inappropriate error message for that.  

It isn't immediately obvious where the -1 is coming from.  Does it truly
mean "allocate from any node" here, or is that a buglet in and of
itself?

-- Dave

___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


Badness with the kernel version 2.6.35-rc1-git1 running on P6 box

2010-07-16 Thread divya

Hi ,

With the latest kernel version 2.6.35-rc5-git1(2f7989efd4398) running on 
power(p6) box came across the following
call trace

Call Trace:
[c6a0e800] [c0011c30] .show_stack+0x6c/0x16c (unreliable)
[c6a0e8b0] [c012129c] .__alloc_pages_nodemask+0x6a0/0x75c
[c6a0ea30] [c01527cc] .alloc_pages_current+0xc4/0x104
[c6a0ead0] [c015b1a0] .new_slab+0xe0/0x314
[c6a0eb70] [c015b6fc] .__slab_alloc+0x328/0x644
[c6a0ec50] [c015cc34] .__kmalloc_node_track_caller+0x114/0x194
[c6a0ed00] [c0599f6c] .__alloc_skb+0x94/0x180
[c6a0edb0] [c059af5c] .__netdev_alloc_skb+0x3c/0x74
[c6a0ee30] [c04f9480] .ehea_refill_rq_def+0xf8/0x2d0
[c6a0ef30] [c04fab8c] .ehea_up+0x5b8/0x69c
[c6a0f040] [c04facd4] .ehea_open+0x64/0x118
[c6a0f0e0] [c05a6e9c] .__dev_open+0x100/0x168
[c6a0f170] [c05a3ac0] .__dev_change_flags+0x10c/0x1ac
[c6a0f210] [c05a6d44] .dev_change_flags+0x24/0x7c
[c6a0f2a0] [c05b50b4] .do_setlink+0x31c/0x750
[c6a0f3b0] [c05b6724] .rtnl_newlink+0x388/0x618
[c6a0f5f0] [c05b6350] .rtnetlink_rcv_msg+0x268/0x2b4
[c6a0f6a0] [c05cfdc0] .netlink_rcv_skb+0x74/0x108
[c6a0f730] [c05b60c4] .rtnetlink_rcv+0x38/0x5c
[c6a0f7c0] [c05cf8c8] .netlink_unicast+0x318/0x3f4
[c6a0f890] [c05d05b4] .netlink_sendmsg+0x2d0/0x310
[c6a0f970] [c058e1e8] .sock_sendmsg+0xd4/0x110
[c6a0fb50] [c058e514] .SyS_sendmsg+0x1f4/0x288
[c6a0fd70] [c058c2b8] .SyS_socketcall+0x214/0x280
[c6a0fe30] [c00085b4] syscall_exit+0x0/0x40
Mem-Info:
Node 0 DMA per-cpu:
CPU0: hi:0, btch:   1 usd:   0
CPU1: hi:0, btch:   1 usd:   0
CPU2: hi:0, btch:   1 usd:   0
CPU3: hi:0, btch:   1 usd:   0
active_anon:50 inactive_anon:260 isolated_anon:0
 active_file:159 inactive_file:139 isolated_file:0
 unevictable:0 dirty:2 writeback:1 unstable:0
 free:16 slab_reclaimable:66 slab_unreclaimable:502
 mapped:120 shmem:2 pagetables:37 bounce:0
Node 0 DMA free:1024kB min:1408kB low:1728kB high:2112kB active_anon:3200kB 
inactive_anon:16640kB active_file:10176kB inactive_file:8896kB unevictable:0kB 
isolated(anon):0kB isolated(file):0kB present:130944kB mlocked:0kB dirty:128kB 
writeback:64kB mapped:7680kB shmem:128kB slab_reclaimable:4224kB 
slab_unreclaimable:32128kB kernel_stack:2528kB pagetables:2368kB unstable:0kB 
bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 0
Node 0 DMA: 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB 0*8192kB 
0*16384kB = 0kB
496 total pagecache pages
178 pages in swap cache
Swap cache stats: add 780, delete 602, find 467/551
Free swap  = 1027904kB
Total swap = 1044160kB
2048 pages RAM
683 pages reserved
582 pages shared
1075 pages non-shared
SLUB: Unable to allocate memory on node -1 (gfp=0x20)
  cache: kmalloc-16384, object size: 16384, buffer size: 16384, default order: 
2, min order: 0
  node 0: slabs: 28, objs: 292, free: 0
ip: page allocation failure. order:0, mode:0x8020
Call Trace:
[c6a0eb40] [c0011c30] .show_stack+0x6c/0x16c (unreliable)
[c6a0ebf0] [c012129c] .__alloc_pages_nodemask+0x6a0/0x75c
[c6a0ed70] [c01527cc] .alloc_pages_current+0xc4/0x104
[c6a0ee10] [c011fca4] .__get_free_pages+0x18/0x90
[c6a0ee90] [c04f7058] .ehea_get_stats+0x4c/0x1bc
[c6a0ef30] [c05a0a04] .dev_get_stats+0x38/0x64
[c6a0efc0] [c05b456c] .rtnl_fill_ifinfo+0x35c/0x85c
[c6a0f150] [c05b5920] .rtmsg_ifinfo+0x164/0x204
[c6a0f210] [c05a6d6c] .dev_change_flags+0x4c/0x7c
[c6a0f2a0] [c05b50b4] .do_setlink+0x31c/0x750
[c6a0f3b0] [c05b6724] .rtnl_newlink+0x388/0x618
[c6a0f5f0] [c05b6350] .rtnetlink_rcv_msg+0x268/0x2b4
[c6a0f6a0] [c05cfdc0] .netlink_rcv_skb+0x74/0x108
[c6a0f730] [c05b60c4] .rtnetlink_rcv+0x38/0x5c
[c6a0f7c0] [c05cf8c8] .netlink_unicast+0x318/0x3f4
[c6a0f890] [c05d05b4] .netlink_sendmsg+0x2d0/0x310
[c6a0f970] [c058e1e8] .sock_sendmsg+0xd4/0x110
[c6a0fb50] [c058e514] .SyS_sendmsg+0x1f4/0x288
[c6a0fd70] [c058c2b8] .SyS_socketcall+0x214/0x280
[c6a0fe30] [c00085b4] syscall_exit+0x0/0x40
Mem-Info:
Node 0 DMA per-cpu:
CPU0: hi:0, btch:   1 usd:   0
CPU1: hi:0, btch:   1 usd:   0
CPU2: hi:0, btch:   1 usd:   0
CPU3: hi:0, btch:   1 usd:   0

The mainline 2.6.35-rc5 worked fine.

Thanks
Divya



___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


Re: Badness with the kernel version 2.6.35-rc1-git1 running on P6 box

2010-07-16 Thread Eric Dumazet
Le vendredi 16 juillet 2010 à 11:56 +0200, Eric Dumazet a écrit :

> [PATCH] ehea: ehea_get_stats() should use GFP_KERNEL
> 
> ehea_get_stats() is called in process context and should use GFP_KERNEL
> allocation instead of GFP_ATOMIC.
> 
> Clearing stats at beginning of ehea_get_stats() is racy in case of
> concurrent stat readers.
> 
> get_stats() can also use netdev net_device_stats, instead of a private
> copy.
> 
> Reported-by: divya 
> Signed-off-by: Eric Dumazet 
> ---
>  drivers/net/ehea/ehea.h  |1 -
>  drivers/net/ehea/ehea_main.c |6 ++
>  2 files changed, 2 insertions(+), 5 deletions(-)
> 
> 

Hmm, net-next-2.6 contains following patch :

commit 3d8009c780ee90fccb5c171caf30aff839f13547
Author: Brian King 
Date:   Wed Jun 30 11:59:12 2010 +

ehea: Allocate stats buffer with GFP_KERNEL

Since ehea_get_stats calls ehea_h_query_ehea_port, which
can sleep, we can also sleep when allocating a page in
this function. This fixes some memory allocation failure
warnings seen under low memory conditions.

Signed-off-by: Brian King 
Signed-off-by: David S. Miller 

diff --git a/drivers/net/ehea/ehea_main.c b/drivers/net/ehea/ehea_main.c
index 8b92acb..3beba70 100644
--- a/drivers/net/ehea/ehea_main.c
+++ b/drivers/net/ehea/ehea_main.c
@@ -335,7 +335,7 @@ static struct net_device_stats
*ehea_get_stats(struct net_device *dev)
 
memset(stats, 0, sizeof(*stats));
 
-   cb2 = (void *)get_zeroed_page(GFP_ATOMIC);
+   cb2 = (void *)get_zeroed_page(GFP_KERNEL);
if (!cb2) {
ehea_error("no mem for cb2");
goto out;


___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: Badness with the kernel version 2.6.35-rc1-git1 running on P6 box

2010-07-16 Thread Eric Dumazet
Le vendredi 16 juillet 2010 à 14:20 +0530, divya a écrit :
> Hi ,
> 
> With the latest kernel version 2.6.35-rc5-git1(2f7989efd4398) running on 
> power(p6) box came across the following
> call trace
> 
> Call Trace:
> [c6a0e800] [c0011c30] .show_stack+0x6c/0x16c (unreliable)
> [c6a0e8b0] [c012129c] .__alloc_pages_nodemask+0x6a0/0x75c
> [c6a0ea30] [c01527cc] .alloc_pages_current+0xc4/0x104
> [c6a0ead0] [c015b1a0] .new_slab+0xe0/0x314
> [c6a0eb70] [c015b6fc] .__slab_alloc+0x328/0x644
> [c6a0ec50] [c015cc34] .__kmalloc_node_track_caller+0x114/0x194
> [c6a0ed00] [c0599f6c] .__alloc_skb+0x94/0x180
> [c6a0edb0] [c059af5c] .__netdev_alloc_skb+0x3c/0x74
> [c6a0ee30] [c04f9480] .ehea_refill_rq_def+0xf8/0x2d0
> [c6a0ef30] [c04fab8c] .ehea_up+0x5b8/0x69c
> [c6a0f040] [c04facd4] .ehea_open+0x64/0x118
> [c6a0f0e0] [c05a6e9c] .__dev_open+0x100/0x168
> [c6a0f170] [c05a3ac0] .__dev_change_flags+0x10c/0x1ac
> [c6a0f210] [c05a6d44] .dev_change_flags+0x24/0x7c
> [c6a0f2a0] [c05b50b4] .do_setlink+0x31c/0x750
> [c6a0f3b0] [c05b6724] .rtnl_newlink+0x388/0x618
> [c6a0f5f0] [c05b6350] .rtnetlink_rcv_msg+0x268/0x2b4
> [c6a0f6a0] [c05cfdc0] .netlink_rcv_skb+0x74/0x108
> [c6a0f730] [c05b60c4] .rtnetlink_rcv+0x38/0x5c
> [c6a0f7c0] [c05cf8c8] .netlink_unicast+0x318/0x3f4
> [c6a0f890] [c05d05b4] .netlink_sendmsg+0x2d0/0x310
> [c6a0f970] [c058e1e8] .sock_sendmsg+0xd4/0x110
> [c6a0fb50] [c058e514] .SyS_sendmsg+0x1f4/0x288
> [c6a0fd70] [c058c2b8] .SyS_socketcall+0x214/0x280
> [c6a0fe30] [c00085b4] syscall_exit+0x0/0x40
> Mem-Info:
> Node 0 DMA per-cpu:
> CPU0: hi:0, btch:   1 usd:   0
> CPU1: hi:0, btch:   1 usd:   0
> CPU2: hi:0, btch:   1 usd:   0
> CPU3: hi:0, btch:   1 usd:   0
> active_anon:50 inactive_anon:260 isolated_anon:0
>   active_file:159 inactive_file:139 isolated_file:0
>   unevictable:0 dirty:2 writeback:1 unstable:0
>   free:16 slab_reclaimable:66 slab_unreclaimable:502
>   mapped:120 shmem:2 pagetables:37 bounce:0
> Node 0 DMA free:1024kB min:1408kB low:1728kB high:2112kB active_anon:3200kB 
> inactive_anon:16640kB active_file:10176kB inactive_file:8896kB 
> unevictable:0kB isolated(anon):0kB isolated(file):0kB present:130944kB 
> mlocked:0kB dirty:128kB writeback:64kB mapped:7680kB shmem:128kB 
> slab_reclaimable:4224kB slab_unreclaimable:32128kB kernel_stack:2528kB 
> pagetables:2368kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 
> all_unreclaimable? no
> lowmem_reserve[]: 0 0 0
> Node 0 DMA: 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB 
> 0*8192kB 0*16384kB = 0kB
> 496 total pagecache pages
> 178 pages in swap cache
> Swap cache stats: add 780, delete 602, find 467/551
> Free swap  = 1027904kB
> Total swap = 1044160kB
> 2048 pages RAM
> 683 pages reserved
> 582 pages shared
> 1075 pages non-shared
> SLUB: Unable to allocate memory on node -1 (gfp=0x20)
>cache: kmalloc-16384, object size: 16384, buffer size: 16384, default 
> order: 2, min order: 0
>node 0: slabs: 28, objs: 292, free: 0
> ip: page allocation failure. order:0, mode:0x8020
> Call Trace:
> [c6a0eb40] [c0011c30] .show_stack+0x6c/0x16c (unreliable)
> [c6a0ebf0] [c012129c] .__alloc_pages_nodemask+0x6a0/0x75c
> [c6a0ed70] [c01527cc] .alloc_pages_current+0xc4/0x104
> [c6a0ee10] [c011fca4] .__get_free_pages+0x18/0x90
> [c6a0ee90] [c04f7058] .ehea_get_stats+0x4c/0x1bc
> [c6a0ef30] [c05a0a04] .dev_get_stats+0x38/0x64
> [c6a0efc0] [c05b456c] .rtnl_fill_ifinfo+0x35c/0x85c
> [c6a0f150] [c05b5920] .rtmsg_ifinfo+0x164/0x204
> [c6a0f210] [c05a6d6c] .dev_change_flags+0x4c/0x7c
> [c6a0f2a0] [c05b50b4] .do_setlink+0x31c/0x750
> [c6a0f3b0] [c05b6724] .rtnl_newlink+0x388/0x618
> [c6a0f5f0] [c05b6350] .rtnetlink_rcv_msg+0x268/0x2b4
> [c6a0f6a0] [c05cfdc0] .netlink_rcv_skb+0x74/0x108
> [c6a0f730] [c05b60c4] .rtnetlink_rcv+0x38/0x5c
> [c6a0f7c0] [c05cf8c8] .netlink_unicast+0x318/0x3f4
> [c6a0f890] [c05d05b4] .netlink_sendmsg+0x2d0/0x310
> [c6a0f970] [c058e1e8] .sock_sendmsg+0xd4/0x110
> [c6a0fb50] [c058e514] .SyS_sendmsg+0x1f4/0x288
> [c6a0fd70] [c058c2b8] .SyS_socketcall+0x214/0x280
> [c6a0fe30] [c00085b4] syscall_exit+0x0/0x40
> Mem-Info:
> Node 0 DMA per-cpu:
> CPU0: hi:0, btch:   1 usd:   0
> CPU1: hi:0, btch:   1 usd:   0
> CPU2: hi:0, btch:   1 usd:   0
> CPU3: hi:0,