LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 10-31-2006, 11:27 AM   #1
erik_wout_ew2
LQ Newbie
 
Registered: Jun 2003
Posts: 26

Rep: Reputation: 15
kernel memory page allocation problem


Hi folks,

Probably not the good forum, but couldn't find anything on kernel.org (I mean some kind of forum), so tought I give it a try here. If anyone knows a better please, plz post.

Ok, first system specifications (it's a server, and .. ehm... a bit old):

Texas Instruments 486DLC 40Mhz CPU (no math-co proc)
16 MB Ram
ca. 190 MB Swap (yes I'm overdoing it a bit)
2 ne2000 isa ethernet cards (at io 0x0220 and 0x0300 if it has anything to do with it)
own build kernel 2.6.17

Ok, now my problem:

Sometimes the system suddenly locks-up, but not for the full 100 %. I can give a username and a passwd at login, but after entering the passwd I get an login timeout (60 secs I believe).

Then doing a ping from the internal network to internet works (where the server acts like NAT), pinging to the server itself also works, but anything bigger than a ping doesn't work (telnet, http, ssh, dns, etc). When I try to use an internet dns server where my server again only works for the NAT also times-out. The only thing I can do is a full-reset. This is a bit problematic, since it is also my mail-server.

I started searching in my logs and found the following:

Code:
Oct 29 14:12:39 server kernel: kswapd0: page allocation failure. order:0, mode:0x20
Oct 29 14:12:39 server kernel:  <c0125a03> __alloc_pages+0x255/0x269  <c0135910> cache_alloc_refill+0x223/0x3c4
Oct 29 14:12:39 server kernel:  <c0135b10> __kmalloc+0x5f/0x69  <c0211834> __alloc_skb+0x51/0xfa
Oct 29 14:12:39 server kernel:  <c181d447> ei_receive+0x174/0x29d [8390]  <c181dbba> ei_interrupt+0x145/0x24f [8390]
Oct 29 14:12:39 server kernel:  <c0120b82> handle_IRQ_event+0x23/0x4c  <c0120c00> __do_IRQ+0x55/0x91
Oct 29 14:12:39 server kernel:  <c0103a64> do_IRQ+0x19/0x24  <c010271a> common_interrupt+0x1a/0x20
Oct 29 14:12:39 server kernel:  <c013540e> kmem_cache_free+0x9/0x2b  <c181da64> ei_start_xmit+0x1bc/0x1cd [8390]
Oct 29 14:12:39 server kernel:  <c021e28a> qdisc_restart+0x8f/0xf2  <c0214df0> net_tx_action+0x87/0x94
Oct 29 14:12:39 server kernel:  <c0110a59> __do_softirq+0x35/0x7f  <c0110ac5> do_softirq+0x22/0x26
Oct 29 14:12:39 server kernel:  <c0103a69> do_IRQ+0x1e/0x24  <c010271a> common_interrupt+0x1a/0x20
Oct 29 14:12:39 server kernel:  <c028f3f7> schedule+0x481/0x4d2  <c0280060> atalk_sum_partial+0x16/0x27
Oct 29 14:12:39 server kernel:  <c0128ae1> kswapd+0xaa/0xc6  <c011a42c> autoremove_wake_function+0x0/0x2d
Oct 29 14:12:39 server kernel:  <c0128a37> kswapd+0x0/0xc6  <c0100ad5> kernel_thread_helper+0x5/0xb
Oct 29 14:12:39 server kernel: Mem-info:
Oct 29 14:12:39 server kernel: DMA per-cpu:
Oct 29 14:12:39 server kernel: cpu 0 hot: high 0, batch 1 used:0
Oct 29 14:12:39 server kernel: cpu 0 cold: high 0, batch 1 used:0
Oct 29 14:12:39 server kernel: DMA32 per-cpu: empty
Oct 29 14:12:39 server kernel: Normal per-cpu: empty
Oct 29 14:12:39 server kernel: HighMem per-cpu: empty
Oct 29 14:12:39 server kernel: Free pages:         192kB (0kB HighMem)
Oct 29 14:12:39 server kernel: Active:1398 inactive:435 dirty:0 writeback:0 unstable:0 free:48 slab:1021 mapped:1203 pagetables:134
Oct 29 14:12:39 server kernel: DMA free:192kB min:512kB low:640kB high:768kB active:5592kB inactive:1740kB present:16384kB pages_scanned:0 all_unreclaimable? no
Oct 29 14:12:39 server kernel: lowmem_reserve[]: 0 0 0 0
Oct 29 14:12:39 server kernel: DMA32 free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
Oct 29 14:12:39 server kernel: lowmem_reserve[]: 0 0 0 0
Oct 29 14:12:39 server kernel: Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
Oct 29 14:12:39 server kernel: lowmem_reserve[]: 0 0 0 0
Oct 29 14:12:39 server kernel: HighMem free:0kB min:128kB low:128kB high:128kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
Oct 29 14:12:39 server kernel: lowmem_reserve[]: 0 0 0 0
Oct 29 14:12:39 server kernel: DMA: 0*4kB 0*8kB 0*16kB 0*32kB 1*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 192kB
Oct 29 14:12:39 server kernel: DMA32: empty
Oct 29 14:12:39 server kernel: Normal: empty
Oct 29 14:12:39 server kernel: HighMem: empty
Oct 29 14:12:39 server kernel: Swap cache: add 71327, delete 70809, find 22817/38496, race 0+2
Oct 29 14:12:39 server kernel: Free swap  = 183476kB
Oct 29 14:12:39 server kernel: Total swap = 195544kB
Oct 29 14:12:39 server kernel: Free swap:       183476kB
Oct 29 14:12:39 server kernel: 4096 pages of RAM
Oct 29 14:12:39 server kernel: 0 pages of HIGHMEM
Oct 29 14:12:39 server kernel: 886 reserved pages
Oct 29 14:12:39 server kernel: 2437 pages shared
Oct 29 14:12:39 server kernel: 518 pages swap cached
Oct 29 14:12:39 server kernel: 0 pages dirty
Oct 29 14:12:39 server kernel: 0 pages writeback
Oct 29 14:12:39 server kernel: 1203 pages mapped
Oct 29 14:12:39 server kernel: 1021 pages slab
Oct 29 14:12:39 server kernel: 134 pages pagetables
This repeats itself from time to time, and well, I can compile a kernel, but this all says nothing to me (yeah, that it can't allocate memory after an interrupt, but the swap is 90% free, what's wrong with writing some pages to it?)

anyway, if someone wants to help (even to say where a better place to post this is), please.

If you need more info, you can download the full kernel log and the full kernel .config from:

http://help.hofhom.nl/kernel/

well, if the server is up anyway.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
C programming: memory allocation / pointer problem I think sterrenkijker Programming 2 04-17-2005 04:07 AM
kernel memory + slabinfo.. + possible reasons for kernel space allocation failures!! premenjit Linux - Software 1 09-28-2004 05:13 AM
dynamic memory allocation in kernel module appas Programming 4 09-21-2004 07:36 AM
dynamic allocation of memory in kernel space appas Programming 1 08-04-2004 07:32 AM
Memory Allocation Problem? lanky666 Linux - Software 3 02-14-2004 07:27 PM


All times are GMT -5. The time now is 01:51 AM.

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