memory problem with fec on 8250
hi there
i have some problems with using fec device on my custom 8250 board while sending a lot of data (at least 300MB) through this device causes lack of memory
sending same amount of data through loopback works fine
i'm using 2.4.19 kernel
any idea?
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 10 lines · Użytkownik Kromer
hi there
i have some problems with using fec device on my custom 8250 board while sending a lot of data (at least 300MB) through this device causes lack of memory
sending same amount of data through loopback works finei'm using 2.4.19 kernel
any idea?
cached memory keeps growing slowly, and free is going down same way, after putting ~300MB ftp data (from 8250 board to another host), VM starts killing some applications
same situation is with latest linuxppc_2_4_devel kernel from denx.de, but there is additional information from kernel
<5>__alloc_pages: 0-order allocation failed (gfp=0x1d2/0) <5>__alloc_pages: 0-order allocation failed (gfp=0x1d2/0) <5>__alloc_pages: 0-order allocation failed (gfp=0x1d2/0) <5>__alloc_pages: 0-order allocation failed (gfp=0x1d2/0) <5>__alloc_pages: 0-order allocation failed (gfp=0x1d2/0) <4>VM: killing process sshd
what's wrong ???
--
* * * * * * * * * * * *
* per pedes ad astra! *
* * * * * * * * * * * * mailto:[email protected]
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 15 lines · Wojciech Kromer
Quoted 7 lines
i have some problems with using fec device on my custom 8250 board while sending a lot of data (at least 300MB) through this device causes lack of memory
sending same amount of data through loopback works finei'm using 2.4.19 kernel
any idea?cached memory keeps growing slowly, and free is going down same way, after putting ~300MB ftp data (from 8250 board to another host), VM starts killing some applications
same situation is with latest
linuxppc_2_4_develkernel from denx.de, but there is additional information from kernel
Quoted 8 lines
<5>__alloc_pages: 0-order allocation failed (gfp=0x1d2/0) <5>__alloc_pages: 0-order allocation failed (gfp=0x1d2/0) <5>__alloc_pages: 0-order allocation failed (gfp=0x1d2/0) <5>__alloc_pages: 0-order allocation failed (gfp=0x1d2/0) <5>__alloc_pages: 0-order allocation failed (gfp=0x1d2/0) <4>VM: killing process sshd
what's wrong ???
It means that this box is really out of memory.
Could you provide output from utility called 'free' and from file /proc/slabinfo at two points of time: 1) when you just booted your boax and 2) just before it starts failing.
Thanks,
Eugene.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 26 lines · Użytkownik Eugene Surovegin
Quoted 23 lines · Wojciech Kromer
Quoted 9 lines
i have some problems with using fec device on my custom 8250 board while sending a lot of data (at least 300MB) through this device causes lack of memory
sending same amount of data through loopback works finei'm using 2.4.19 kernel
any idea?cached memory keeps growing slowly, and free is going down same way, after putting ~300MB ftp data (from 8250 board to another host), VM starts killing some applications
same situation is with latest
linuxppc_2_4_develkernel from denx.de, but there is additional information from kernel<5>__alloc_pages: 0-order allocation failed (gfp=0x1d2/0) <5>__alloc_pages: 0-order allocation failed (gfp=0x1d2/0) <5>__alloc_pages: 0-order allocation failed (gfp=0x1d2/0) <5>__alloc_pages: 0-order allocation failed (gfp=0x1d2/0) <5>__alloc_pages: 0-order allocation failed (gfp=0x1d2/0) <4>VM: killing process sshd
Quoted 7 lines
Quoted 3 lines
what's wrong ???
It means that this box is really out of memory.
sure, but _why_? thre are no memory consuption processes, i've just run ftp-put from this box to another machine
Quoted 6 lines
Could you provide output from utility called 'free' and from file
/proc/slabinfoat two points of time: 1) when you just booted your boax and 2) just before it starts failing.
thx for quick answer
huh, a lot of info:
==== at begining ========================================= bash-2.05# free
total used free shared buffers cached
Mem: 127888 22488 105400 0 0 15272
-/+ buffers/cache: 7216 120672
Swap: 0 0 0
bash-2.05# cat /proc/slabinfo
slabinfo - version: 1.1
kmem_cache 62 68 112 2 2 1 tcp_tw_bucket 0 0 96 0 0 1 tcp_bind_bucket 3 113 32 1 1 1 tcp_open_request 0 59 64 0 1 1 inet_peer_cache 2 59 64 1 1 1 ip_fib_hash 10 113 32 1 1 1 ip_dst_cache 27 48 160 2 2 1 arp_cache 4 30 128 1 1 1 blkdev_requests 0 0 96 0 0 1 nfs_write_data 0 10 384 0 1 1 nfs_read_data 0 40 384 0 4 1 nfs_page 0 40 96 0 1 1 devfsd_event 0 0 20 0 0 1 journal_head 0 0 48 0 0 1 revoke_table 0 0 12 0 0 1 revoke_record 0 0 32 0 0 1 dnotify_cache 0 0 20 0 0 1 file_lock_cache 2 40 96 1 1 1 fasync_cache 0 0 16 0 0 1 uid_cache 0 0 32 0 0 1 skbuff_head_cache 131 192 160 8 8 1 sock 21 25 800 5 5 1 sigqueue 0 29 132 0 1 1 kiobuf 0 0 64 0 0 1 cdev_cache 10 59 64 1 1 1 bdev_cache 0 0 64 0 0 1 mnt_cache 11 59 64 1 1 1 inode_cache 419 424 480 53 53 1 dentry_cache 601 630 128 21 21 1 filp 175 180 128 6 6 1 names_cache 0 3 4096 0 3 1 buffer_head 0 0 96 0 0 1 mm_struct 14 24 160 1 1 1 vm_area_struct 462 560 96 12 14 1 fs_cache 13 113 32 1 1 1 files_cache 14 18 416 2 2 1 signal_act 16 21 1312 6 7 1 size-131072(DMA) 0 0 131072 0 0 32 size-131072 0 0 131072 0 0 32 size-65536(DMA) 0 0 65536 0 0 16 size-65536 0 0 65536 0 0 16 size-32768(DMA) 0 0 32768 0 0 8 size-32768 0 0 32768 0 0 8 size-16384(DMA) 0 0 16384 0 0 4 size-16384 0 0 16384 0 0 4 size-8192(DMA) 0 0 8192 0 0 2 size-8192 0 0 8192 0 0 2 size-4096(DMA) 0 0 4096 0 0 1 size-4096 10 10 4096 10 10 1 size-2048(DMA) 0 0 2048 0 0 1 size-2048 5 178 2048 3 89 1 size-1024(DMA) 0 0 1024 0 0 1 size-1024 17 24 1024 5 6 1 size-512(DMA) 0 0 512 0 0 1 size-512 6 8 512 1 1 1 size-256(DMA) 0 0 256 0 0 1 size-256 14 30 256 1 2 1 size-128(DMA) 0 0 128 0 0 1 size-128 829 930 128 31 31 1 size-64(DMA) 0 0 64 0 0 1 size-64 41 59 64 1 1 1 size-32(DMA) 0 0 32 0 0 1 size-32 201 226 32 2 2 1
===after some time (ftp put ~75MB) ================================
bash-2.05# free;cat /proc/slabinfo
total used free shared buffers cached
Mem: 127888 125688 2200 0 0 81772
-/+ buffers/cache: 43916 83972
Swap: 0 0 0
slabinfo - version: 1.1
kmem_cache 62 68 112 2 2 1 tcp_tw_bucket 0 0 96 0 0 1 tcp_bind_bucket 5 113 32 1 1 1 tcp_open_request 0 0 64 0 0 1 inet_peer_cache 1 59 64 1 1 1 ip_fib_hash 10 113 32 1 1 1 ip_dst_cache 51 72 160 3 3 1 arp_cache 3 30 128 1 1 1 blkdev_requests 0 0 96 0 0 1 nfs_write_data 0 0 384 0 0 1 nfs_read_data 7 70 384 4 7 1 nfs_page 7 80 96 2 2 1 devfsd_event 0 0 20 0 0 1 journal_head 0 0 48 0 0 1 revoke_table 0 0 12 0 0 1 revoke_record 0 0 32 0 0 1 dnotify_cache 0 0 20 0 0 1 file_lock_cache 2 40 96 1 1 1 fasync_cache 0 0 16 0 0 1 uid_cache 0 0 32 0 0 1 skbuff_head_cache 16857 16872 160 703 703 1 sock 23 25 800 5 5 1 sigqueue 0 29 132 0 1 1 kiobuf 0 0 64 0 0 1 cdev_cache 10 59 64 1 1 1 bdev_cache 0 0 64 0 0 1 mnt_cache 11 59 64 1 1 1 inode_cache 435 440 480 55 55 1 dentry_cache 625 630 128 21 21 1 filp 179 180 128 6 6 1 names_cache 0 2 4096 0 2 1 buffer_head 0 0 96 0 0 1 mm_struct 15 24 160 1 1 1 vm_area_struct 485 520 96 13 13 1 fs_cache 14 113 32 1 1 1 files_cache 15 18 416 2 2 1 signal_act 17 18 1312 6 6 1 size-131072(DMA) 0 0 131072 0 0 32 size-131072 0 0 131072 0 0 32 size-65536(DMA) 0 0 65536 0 0 16 size-65536 0 0 65536 0 0 16 size-32768(DMA) 0 0 32768 0 0 8 size-32768 0 0 32768 0 0 8 size-16384(DMA) 0 0 16384 0 0 4 size-16384 0 0 16384 0 0 4 size-8192(DMA) 0 0 8192 0 0 2 size-8192 0 0 8192 0 0 2 size-4096(DMA) 0 0 4096 0 0 1 size-4096 10 10 4096 10 10 1 size-2048(DMA) 0 0 2048 0 0 1 size-2048 16749 16798 2048 8382 8399 1 size-1024(DMA) 0 0 1024 0 0 1 size-1024 18 20 1024 5 5 1 size-512(DMA) 0 0 512 0 0 1 size-512 24 32 512 4 4 1 size-256(DMA) 0 0 256 0 0 1 size-256 51 75 256 4 5 1 size-128(DMA) 0 0 128 0 0 1 size-128 910 930 128 31 31 1 size-64(DMA) 0 0 64 0 0 1 size-64 42 59 64 1 1 1 size-32(DMA) 0 0 32 0 0 1 size-32 8513 8588 32 76 76 1
--
* * * * * * * * * * * *
* per pedes ad astra! *
* * * * * * * * * * * * mailto:[email protected]
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 6 lines · Wojciech Kromer
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
i have some problems with using fec device on my custom 8250 board while sending a lot of data (at least 300MB) through this device causes lack of memory
sending same amount of data through loopback works fine
[snip]
Quoted 8 lines
==== at begining =========================================
skbuff_head_cache 131 192 160 8 8 1 size-2048 5 178 2048 3 89 1===after some time (ftp put ~75MB) ================================
skbuff_head_cache 16857 16872 160 703 703 1 size-2048 16749 16798 2048 8382 8399 1
It looks like skb leaks in the driver. Probably in TX path.
Could you send me by private e-mail source code for ethernet driver in question or provide a URL.
I'm not a 8250 guy, but I'll try to look at it :)
Eugene.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 14 lines · Użytkownik Eugene Surovegin
Quoted 4 lines · Wojciech Kromer
i have to check end-of-trasmit interrupt code, but it seems to be good, and it's common used driver (i hope so)
Yep, quick look didn't reveal anything suspicious.
To quickly check TX skb leak theory I'd add one counter and
1) increment it infcc_start_xmit, and increment it for each transmitted packet (e.g. at line 450)
Quoted 8 lines
2) decrement it in
fcc_enet_interruptright afterdev_kfree_skb_irq(at line 593).Make this counter accessible from user mode, e.g. through /proc and run your test :)
so i made such test, theese are results:
bash-2.05# cat /proc/interrupts
CPU0
19: 157 8260 SIU Edge dsp_msg 33: 81139 8260 SIU Edge fenet 34: 0 8260 SIU Edge fenet 40: 3909 8260 SIU Edge uart 42: 134 8260 SIU Edge uart 43: 0 8260 SIU Edge uart
BAD: 14481
bash-2.05# cat /proc/kdebug
tx_skb_alloc=53384 tx_skb_free=29058
_anyone_ knows why there is such difference between allocs and frees in fcc_enet.c
--
* * * * * * * * * * * *
* per pedes ad astra! *
* * * * * * * * * * * * mailto:[email protected]
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 2 lines · Wojciech Kromer
_anyone_ knows why there is such difference between allocs and frees in
fcc_enet.c
What kernel and driver is this?
The latest one I checked into linuxppc_2_4_devel a long time ago had the benefit of being tested at the UNH Interoperability Laboratory. This included performance testing and error recovery. For this driver to be failing, it must have been modified from that version and we need to determine what was done to get it corrected.
Thanks.
-- Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/