New Build - 09/20/2021 - r47474

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3, 4, 5
Author Message
joaoptc
DD-WRT User


Joined: 28 Oct 2014
Posts: 57

PostPosted: Fri Sep 24, 2021 13:51    Post subject: Reply with quote
joaoptc wrote:
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 Wink


Found it on dmesg Sad

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
Sponsor
joaoptc
DD-WRT User


Joined: 28 Oct 2014
Posts: 57

PostPosted: Fri Sep 24, 2021 13:59    Post subject: Reply with quote
joaoptc wrote:


Found it on dmesg Sad

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


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


Any ideas ?
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12837
Location: Netherlands

PostPosted: Fri Sep 24, 2021 14:16    Post subject: Reply with quote
Just some thoughts:

Maybe you run tcpdump continuously and thus everytime start a new instance?

Use -c to run only a limited count?

But look at the man page I am just guessing

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
joaoptc
DD-WRT User


Joined: 28 Oct 2014
Posts: 57

PostPosted: Fri Sep 24, 2021 14:28    Post subject: Reply with quote
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
joaoptc
DD-WRT User


Joined: 28 Oct 2014
Posts: 57

PostPosted: Fri Sep 24, 2021 14:30    Post subject: Reply with quote
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
joaoptc
DD-WRT User


Joined: 28 Oct 2014
Posts: 57

PostPosted: Fri Sep 24, 2021 15:25    Post subject: Reply with quote
I believe there is something else happening to this build.
There is a lot going on the router.
I ran this command:
Code:
dmesg | grep -E -i -B100 'killed process' > /tmp/dmesg.txt


Follows the result attached.[/code]



dmesg.txt
 Description:

Download
 Filename:  dmesg.txt
 Filesize:  52.39 KB
 Downloaded:  95 Time(s)

the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Fri Sep 24, 2021 17:58    Post subject: Reply with quote
@joaoptc it would be SO much better if you used a pastebin rather than attaching or posting inline such large amounts of text.

Much easier for the person on this side.

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
joaoptc
DD-WRT User


Joined: 28 Oct 2014
Posts: 57

PostPosted: Fri Sep 24, 2021 18:03    Post subject: Reply with quote
Sorry about that.
I have removed the logs from the post. You can find it on the dmesg logs.
Let me know if you need anything else.

I was about to install the new build.... Trying to get rid of this issue.

Let me know.
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14125
Location: Texas, USA

PostPosted: Fri Sep 24, 2021 19:01    Post subject: Reply with quote
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... Rolling Eyes Laughing
_________________
"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
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Sun Nov 13, 2022 10:42    Post subject: Reply with quote
The solution for me for the HTTPS mixed results connecting, and to leave a trace here (idk why I didnt do it before) was to add another DNS server, I had originally only 1.1.1.1, adding 1.0.0.1 fixed it.
_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
Goto page Previous  1, 2, 3, 4, 5 Display posts from previous:    Page 5 of 5
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum