tcpdump is there.
I debugged the code already.
It is working just fine !
The problem, as I said: it runs for a few hours and then dies. Generates the wol.txt and all ...
I will run it with -x in foreground until it dies and see what is happening. I will let you guys know.
Thanks for the tips
Found it on dmesg
Code:
Out of memory: Kill process 18270 (tcpdump) score 20 or sacrifice child
Killed process 18270 (tcpdump) total-vm:6940kB, anon-rss:140kB, file-rss:5096kB
Out of memory: Kill process 18270 (tcpdump) score 20 or sacrifice child
Killed process 18270 (tcpdump) total-vm:6940kB, anon-rss:140kB, file-rss:5096kB
But hold on, there is plenty of memory.
Code:
root@BatRouter:~# free -h
total used free shared buff/cache available
Mem: 248.6M 94.2M 147.8M 0 6.6M 106.2M
Swap: 0 0 0
I am using top to monitor.
There is just 1 instance and the memory usage is stable
Code:
PID PPID USER STAT VSZ %VSZ CPU %CPU COMMAND
19501 11673 root S 6940 2.7 0 0.0 tcpdump -q -n -i any -K -l -O dst host 192.168.1.2 and (dst port 32400 or dst port 1900 or dst port 3005 or dst port 5353 or dst port 8324 or dst port 32410 or dst port 32412 or dst port 3241
Another thing I noticed.
If I start another instance of tcpdump, one of them will be killed, even though there is plenty of memory available.
I installed another version of tcpdump and try it again. Same result:
Code:
root@BatRouter:/tmp/usr/sbin# ./tcpdump --version
tcpdump version 4.9.2
libpcap version 1.7.4
Out of memory: Kill process 21243 (tcpdump) score 18 or sacrifice child
Killed process 21243 (tcpdump) total-vm:5856kB, anon-rss:160kB, file-rss:4572kB
Out of memory: Kill process 21224 (tcpdump) score 20 or sacrifice child
Killed process 21224 (tcpdump) total-vm:6940kB, anon-rss:168kB, file-rss:5288kB
Last edited by joaoptc on Fri Sep 24, 2021 18:01; edited 1 time in total
Joined: 08 May 2018 Posts: 14125 Location: Texas, USA
Posted: Fri Sep 24, 2021 19:01 Post subject:
Someone who understands my pain; I don't mind attachments, but pasting the entire log to a forum post... not so much. Don't get too overzealous trying to fix anything around here, though... _________________ "Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT Pogo - A minimal level of ability is expected and needed... DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)
----------------------
Linux User #377467 counter.li.org / linuxcounter.net