Hello, I'm using a custom board with a RZ/A1H, 3.14 XIP kernel.
I would like to get my IP address over dhcp when I require it using the command
dhclient -v eth0
Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit www.isc.org/.../
fork: Cannot allocate memory
Listening on LPF/eth0/72:a7:f3:a9:1a:64
Sending on LPF/eth0/72:a7:f3:a9:1a:64
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPOFFER from 192.168.2.1
DHCPACK from 192.168.2.1
fork: Cannot allocate memory
bound to 192.168.2.73 -- renewal in 41012 seconds.
top command shows me : Mem: 4852K used, 4832K free, 132K shrd, 0K buff, 400K cached
If I tried to used /etc/init.d/networking restart, I get :
Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces
Reconfiguring network interfaces...
ifdown: interface eth0 not configured
dhclient invoked oom-killer: gfp_mask=0x200da, order=0, oom_score_adj=0
CPU: 0 PID: 761 Comm: dhclient Not tainted 3.14.79-ltsi #1
[<bf00ad70>] (unwind_backtrace) from [<bf008dc4>] (show_stack+0x10/0x14)
[<bf008dc4>] (show_stack) from [<bf29c7cc>] (dump_header+0x4c/0x138)
[<bf29c7cc>] (dump_header) from [<bf05ee1c>] (oom_kill_process+0xa0/0x360)
[<bf05ee1c>] (oom_kill_process) from [<bf05f4c0>] (out_of_memory+0x274/0x300)
[<bf05f4c0>] (out_of_memory) from [<bf062dec>] (__alloc_pages_nodemask+0x660/0x7bc)
[<bf062dec>] (__alloc_pages_nodemask) from [<bf077604>] (handle_mm_fault+0x1e4/0x6e8)
[<bf077604>] (handle_mm_fault) from [<bf00ea80>] (do_page_fault+0x118/0x374)
[<bf00ea80>] (do_page_fault) from [<bf00037c>] (do_DataAbort+0x34/0x98)
[<bf00037c>] (do_DataAbort) from [<bf0098f4>] (__dabt_usr+0x34/0x40)
Exception stack(0xc02affb0 to 0xc02afff8)
ffa0: b6730510 bebebebe 0000f5ac b6751000
ffc0: 0019e290 000300a4 0018ff08 0016a61c 000009e4 b6730510 000300a4 0019e290
ffe0: bebebebe beb959f0 00134dc4 b6cec900 200d0010 ffffffff
Mem-info:
Normal per-cpu:
CPU 0: hi: 0, btch: 1 usd: 0
active_anon:1556 inactive_anon:12 isolated_anon:0
active_file:0 inactive_file:0 isolated_file:0
unevictable:0 dirty:0 writeback:0 unstable:0
free:98 slab_reclaimable:0 slab_unreclaimable:0
mapped:0 shmem:33 pagetables:50 bounce:0
free_cma:0
Normal free:392kB min:392kB low:488kB high:588kB active_anon:6224kB inactive_anon:48kB active_file:0kB inactive_file:0kB unevictable:0s
lowmem_reserve[]: 0 0
Normal: 2*4kB (UM) 4*8kB (UM) 2*16kB (M) 2*32kB (M) 2*64kB (UM) 1*128kB (M) 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB 0*8192kB 0*1638B
33 total pagecache pages
0 pages in swap cache
Swap cache stats: add 0, delete 0, find 0/0
Free swap = 0kB
Total swap = 0kB
2560 pages of RAM
167 free pages
139 reserved pages
481 slab pages
262582 pages shared
0 pages swap cached
[ pid ] uid tgid total_vm rss nr_ptes swapents oom_score_adj name
[ 334] 0 334 696 75 4 0 -1000 udevd
[ 356] 0 356 695 75 4 0 -1000 udevd
[ 357] 0 357 695 76 4 0 -1000 udevd
[ 645] 0 645 1105 68 4 0 -1000 sshd
[ 659] 0 659 664 15 4 0 0 syslogd
[ 662] 0 662 664 18 4 0 0 klogd
[ 668] 0 668 739 59 4 0 0 sh
[ 669] 0 669 665 17 4 0 0 getty
[ 748] 0 748 668 35 4 0 0 networking
[ 753] 0 753 664 16 4 0 0 ifup
[ 761] 0 761 2434 1120 7 0 0 dhclient
Out of memory: Kill process 761 (dhclient) score 451 or sacrifice child
Killed process 761 (dhclient) total-vm:9736kB, anon-rss:4480kB, file-rss:0kB
Any ideas ?