Author
Message
jebise101 DD-WRT Guru Joined: 25 Sep 2009 Posts: 594
Posted: Wed May 27, 2015 23:46 Post subject: Privoxy Causing Router Crash
Using R7000 build Kong 26500 and before the router would crash after 7 days but now it's crashing every 15 days.
I used this http://www.dd-wrt.com/phpBB2/viewtopic.php?t=276591&highlight=adblocking for setup and everything seems fine expect the crashing.
Any solution other than disabling Privoxy?
Code:
May 25 23:11:46 dd-wrt kernel: privoxy invoked oom-killer: gfp_mask=0x3000d0, order=1, oom_score_adj=0
May 25 23:11:46 dd-wrt kernel: CPU: 0 PID: 1165 Comm: privoxy Tainted: P 3.10.72 #360
May 25 23:11:46 dd-wrt kernel: Backtrace:
May 25 23:11:46 dd-wrt kernel: [<c0015cb8>] (dump_backtrace+0x0/0x118) from [<c0015ec0>] (show_stack+0x18/0x1c)
May 25 23:11:46 dd-wrt kernel: r6:c7a51b80 r5:00000000 r4:c6fbc000 r3:00000000
May 25 23:11:46 dd-wrt kernel: [<c0015ea8>] (show_stack+0x0/0x1c) from [<c012e2c4>] (dump_stack+0x24/0x28)
May 25 23:11:46 dd-wrt kernel: [<c012e2a0>] (dump_stack+0x0/0x28) from [<c007c454>] (dump_header.isra.13+0x84/0x194)
May 25 23:11:46 dd-wrt kernel: [<c007c3d0>] (dump_header.isra.13+0x0/0x194) from [<c007c7e0>] (oom_kill_process+0x90/0x3e8)
May 25 23:11:46 dd-wrt kernel: [<c007c750>] (oom_kill_process+0x0/0x3e8) from [<c007d004>] (out_of_memory+0x2c0/0x304)
May 25 23:11:46 dd-wrt kernel: [<c007cd44>] (out_of_memory+0x0/0x304) from [<c007fb44>] (__alloc_pages_nodemask+0x5b0/0x694)
May 25 23:11:46 dd-wrt kernel: [<c007f594>] (__alloc_pages_nodemask+0x0/0x694) from [<c002bde4>] (copy_process.part.68+0xdc/0xe30)
May 25 23:11:46 dd-wrt kernel: [<c002bd08>] (copy_process.part.68+0x0/0xe30) from [<c002cc4c>] (do_fork+0xe0/0x2bc)
May 25 23:11:46 dd-wrt kernel: [<c002cb6c>] (do_fork+0x0/0x2bc) from [<c002cee4>] (SyS_clone+0x24/0x2c)
May 25 23:11:46 dd-wrt kernel: r9:c6fbc000 r8:c0008d24 r7:00000078 r6:b6850d14 r5:b6f86164
May 25 23:11:46 dd-wrt kernel: r4:b6850d2c
May 25 23:11:46 dd-wrt kernel: [<c002cec0>] (SyS_clone+0x0/0x2c) from [<c0008ba0>] (ret_fast_syscall+0x0/0x30)
May 25 23:11:46 dd-wrt kernel: Mem-info:
May 25 23:11:46 dd-wrt kernel: Normal per-cpu:
May 25 23:11:46 dd-wrt kernel: CPU 0: hi: 42, btch: 7 usd: 11
May 25 23:11:46 dd-wrt kernel: CPU 1: hi: 42, btch: 7 usd: 4
May 25 23:11:46 dd-wrt kernel: HighMem per-cpu:
May 25 23:11:46 dd-wrt kernel: CPU 0: hi: 42, btch: 7 usd: 8
May 25 23:11:46 dd-wrt kernel: CPU 1: hi: 42, btch: 7 usd: 17
May 25 23:11:46 dd-wrt kernel: active_anon:7469 inactive_anon:0 isolated_anon:0
May 25 23:11:46 dd-wrt kernel: active_file:2134 inactive_file:2742 isolated_file:0
May 25 23:11:46 dd-wrt kernel: unevictable:0 dirty:0 writeback:0 unstable:0
May 25 23:11:46 dd-wrt kernel: free:24412 slab_reclaimable:481 slab_unreclaimable:22843
May 25 23:11:46 dd-wrt kernel: mapped:478 shmem:0 pagetables:96 bounce:0
May 25 23:11:46 dd-wrt kernel: free_cma:0
May 25 23:11:46 dd-wrt kernel: Normal free:16164kB min:16384kB low:20480kB high:24576kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:131072kB managed:124204kB mlocked:0kB dir
May 25 23:11:46 dd-wrt kernel: lowmem_reserve[]: 0 1024 1024
May 25 23:11:46 dd-wrt kernel: HighMem free:81484kB min:128kB low:4448kB high:8772kB active_anon:29876kB inactive_anon:0kB active_file:8536kB inactive_file:10968kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:131072kB managed:131072kB mlocked
May 25 23:11:46 dd-wrt kernel: lowmem_reserve[]: 0 0 0
May 25 23:11:46 dd-wrt kernel: Normal: 80*4kB (UEM) 45*8kB (UEM) 20*16kB (UEM) 6*32kB (UEM) 5*64kB (UM) 0*128kB 3*256kB (EM) 1*512kB (M) 3*1024kB (EM) 1*2048kB (M) 2*4096kB (R) = 16104kB
May 25 23:11:46 dd-wrt kernel: HighMem: 9*4kB (UM) 12*8kB (U) 27*16kB (UM) 23*32kB (UM) 6*64kB (UM) 7*128kB (UM) 8*256kB (UM) 2*512kB (UM) 2*1024kB (U) 2*2048kB (U) 17*4096kB (MR) = 81428kB
May 25 23:11:46 dd-wrt kernel: 4884 total pagecache pages
May 25 23:11:46 dd-wrt kernel: 0 pages in swap cache
May 25 23:11:46 dd-wrt kernel: Swap cache stats: add 0, delete 0, find 0/0
May 25 23:11:46 dd-wrt kernel: Free swap = 0kB
May 25 23:11:46 dd-wrt kernel: Total swap = 0kB
May 25 23:11:47 dd-wrt kernel: 65536 pages of RAM
May 25 23:11:47 dd-wrt kernel: 24605 free pages
May 25 23:11:47 dd-wrt kernel: 1659 reserved pages
May 25 23:11:47 dd-wrt kernel: 23340 slab pages
May 25 23:11:47 dd-wrt kernel: 535889 pages shared
May 25 23:11:47 dd-wrt kernel: 0 pages swap cached
May 25 23:11:47 dd-wrt kernel: [ pid ] uid tgid total_vm rss nr_ptes swapents oom_score_adj name
May 25 23:11:47 dd-wrt kernel: [ 617] 0 617 190 82 3 0 0 hotplug2
May 25 23:11:47 dd-wrt kernel: [ 621] 0 621 209 75 3 0 0 mstpd
May 25 23:11:47 dd-wrt kernel: [ 655] 0 655 343 72 3 0 0 watchdog
May 25 23:11:47 dd-wrt kernel: [ 1165] 0 1165 16308 7130 36 0 0 privoxy
May 25 23:11:47 dd-wrt kernel: [ 1562] 0 1562 905 359 4 0 0 httpd
May 25 23:11:47 dd-wrt kernel: [ 1678] 0 1678 313 115 3 0 0 process_monitor
May 25 23:11:47 dd-wrt kernel: [ 1889] 0 1889 182 53 3 0 0 cron
May 25 23:11:47 dd-wrt kernel: [ 2116] 0 2116 332 62 3 0 0 wland
May 25 23:11:47 dd-wrt kernel: [ 2117] 0 2117 291 55 3 0 0 udhcpc
May 25 23:11:47 dd-wrt kernel: [ 2131] 0 2131 368 107 3 0 0 nas
May 25 23:11:47 dd-wrt kernel: [ 2132] 0 2132 368 107 3 0 0 nas
May 25 23:11:47 dd-wrt kernel: [ 2136] 0 2136 368 107 3 0 0 nas
May 25 23:11:47 dd-wrt kernel: [ 2137] 0 2137 368 107 3 0 0 nas
May 25 23:11:47 dd-wrt kernel: [ 2198] 0 2198 332 45 4 0 0 resetbutton
May 25 23:11:47 dd-wrt kernel: [ 5123] 0 5123 313 133 4 0 0 ttraff
May 25 23:11:47 dd-wrt kernel: [ 5390] 0 5390 217 55 3 0 0 dropbear
May 25 23:11:47 dd-wrt kernel: [ 5396] 0 5396 241 99 3 0 0 dnsmasq
May 25 23:11:47 dd-wrt kernel: [ 5590] 0 5590 291 52 3 0 0 syslogd
May 25 23:11:47 dd-wrt kernel: [ 5592] 0 5592 291 49 3 0 0 klogd
May 25 23:11:47 dd-wrt kernel: Out of memory: Kill process 1165 (privoxy) score 108 or sacrifice child
May 25 23:11:47 dd-wrt kernel: Killed process 1165 (privoxy) total-vm:65232kB, anon-rss:27988kB, file-rss:532kB
May 25 23:12:02 dd-wrt : Privoxy : privoxy started
May 25 23:12:17 dd-wrt kernel: privoxy invoked oom-killer: gfp_mask=0x2084d0, order=0, oom_score_adj=0
May 25 23:12:17 dd-wrt kernel: CPU: 1 PID: 28347 Comm: privoxy Tainted: P 3.10.72 #360
May 25 23:12:17 dd-wrt kernel: Backtrace:
May 25 23:12:17 dd-wrt kernel: [<c0015cb8>] (dump_backtrace+0x0/0x118) from [<c0015ec0>] (show_stack+0x18/0x1c)
May 25 23:12:17 dd-wrt kernel: r6:c792d4c0 r5:00000000 r4:c3408000 r3:00000000
May 25 23:12:17 dd-wrt kernel: [<c0015ea8>] (show_stack+0x0/0x1c) from [<c012e2c4>] (dump_stack+0x24/0x28)
May 25 23:12:17 dd-wrt kernel: [<c012e2a0>] (dump_stack+0x0/0x28) from [<c007c454>] (dump_header.isra.13+0x84/0x194)
May 25 23:12:17 dd-wrt kernel: [<c007c3d0>] (dump_header.isra.13+0x0/0x194) from [<c007c7e0>] (oom_kill_process+0x90/0x3e8)
May 25 23:12:17 dd-wrt kernel: [<c007c750>] (oom_kill_process+0x0/0x3e8) from [<c007d004>] (out_of_memory+0x2c0/0x304)
May 25 23:12:17 dd-wrt kernel: [<c007cd44>] (out_of_memory+0x0/0x304) from [<c007fb44>] (__alloc_pages_nodemask+0x5b0/0x694)
May 25 23:12:17 dd-wrt kernel: [<c007f594>] (__alloc_pages_nodemask+0x0/0x694) from [<c008eb84>] (__pte_alloc+0x2c/0x144)
May 25 23:12:17 dd-wrt kernel: [<c008eb58>] (__pte_alloc+0x0/0x144) from [<c00917a8>] (__handle_mm_fault+0x50/0x90)
May 25 23:12:17 dd-wrt kernel: r6:00c01000 r5:00000006 r4:c7c48000 r3:00c01000
May 25 23:12:17 dd-wrt kernel: [<c0091758>] (__handle_mm_fault+0x0/0x90) from [<c0091f58>] (handle_mm_fault+0x28/0x2c)
May 25 23:12:17 dd-wrt kernel: [<c0091f30>] (handle_mm_fault+0x0/0x2c) from [<c001948c>] (do_page_fault+0x118/0x288)
May 25 23:12:17 dd-wrt kernel: [<c0019374>] (do_page_fault+0x0/0x288) from [<c00196c0>] (do_translation_fault+0x24/0xb8)
May 25 23:12:17 dd-wrt kernel: [<c001969c>] (do_translation_fault+0x0/0xb8) from [<c0008580>] (do_DataAbort+0x40/0x9c)
May 25 23:12:17 dd-wrt kernel: r6:c0405108 r5:c001969c r4:00000805 r3:00000005
May 25 23:12:17 dd-wrt kernel: [<c0008540>] (do_DataAbort+0x0/0x9c) from [<c0008998>] (__dabt_usr+0x38/0x40)
May 25 23:12:17 dd-wrt kernel: Exception stack(0xc3409fb0 to 0xc3409ff8)
May 25 23:12:17 dd-wrt kernel: 9fa0: 00c02000 b6fc3d78 00000000 ff3fdfff
May 25 23:12:17 dd-wrt kernel: 9fc0: b6fc3d78 00c02000 00002001 00000001 b6fc3d78 0000002d 0007f000 b6f23b1c
May 25 23:12:17 dd-wrt kernel: 9fe0: fffffff3 beefee40 b6f690a0 b6f6913c 60000010 ffffffff
May 25 23:12:17 dd-wrt kernel: r8:b6fc3d78 r7:00000001 r6:ffffffff r5:60000010 r4:b6f6913c
May 25 23:12:17 dd-wrt kernel: Mem-info:
May 25 23:12:17 dd-wrt kernel: Normal per-cpu:
May 25 23:12:17 dd-wrt kernel: CPU 0: hi: 42, btch: 7 usd: 21
May 25 23:12:17 dd-wrt kernel: CPU 1: hi: 42, btch: 7 usd: 25
May 25 23:12:17 dd-wrt kernel: HighMem per-cpu:
May 25 23:12:18 dd-wrt kernel: CPU 0: hi: 42, btch: 7 usd: 34
May 25 23:12:18 dd-wrt kernel: CPU 1: hi: 42, btch: 7 usd: 3
May 25 23:12:18 dd-wrt kernel: active_anon:3479 inactive_anon:0 isolated_anon:0
May 25 23:12:18 dd-wrt kernel: active_file:2191 inactive_file:2725 isolated_file:0
May 25 23:12:18 dd-wrt kernel: unevictable:0 dirty:0 writeback:0 unstable:0
May 25 23:12:18 dd-wrt kernel: free:28186 slab_reclaimable:475 slab_unreclaimable:23603
May 25 23:12:18 dd-wrt kernel: mapped:434 shmem:0 pagetables:68 bounce:0
May 25 23:12:18 dd-wrt kernel: free_cma:0
May 25 23:12:18 dd-wrt kernel: Normal free:15440kB min:16384kB low:20480kB high:24576kB active_anon:0kB inactive_anon:0kB active_file:20kB inactive_file:20kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:131072kB managed:124204kB mlocked:0kB d
May 25 23:12:18 dd-wrt kernel: lowmem_reserve[]: 0 1024 1024
May 25 23:12:18 dd-wrt kernel: HighMem free:97248kB min:128kB low:4448kB high:8772kB active_anon:13916kB inactive_anon:0kB active_file:8744kB inactive_file:10880kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:131072kB managed:131072kB mlocked
May 25 23:12:18 dd-wrt kernel: lowmem_reserve[]: 0 0 0
May 25 23:12:18 dd-wrt kernel: Normal: 83*4kB (EM) 43*8kB (UEM) 17*16kB (EM) 6*32kB (UEM) 4*64kB (M) 1*128kB (U) 4*256kB (UEM) 1*512kB (U) 4*1024kB (UEM) 0*2048kB 2*4096kB (R) = 15348kB
May 25 23:12:18 dd-wrt kernel: HighMem: 14*4kB (U) 13*8kB (UM) 2*16kB (U) 1*32kB (U) 4*64kB (UM) 32*128kB (UM) 24*256kB (UM) 7*512kB (UM) 3*1024kB (UM) 5*2048kB (UM) 17*4096kB (MR) = 97248kB
May 25 23:12:18 dd-wrt kernel: 4913 total pagecache pages
May 25 23:12:18 dd-wrt kernel: 0 pages in swap cache
May 25 23:12:18 dd-wrt kernel: Swap cache stats: add 0, delete 0, find 0/0
May 25 23:12:18 dd-wrt kernel: Free swap = 0kB
May 25 23:12:18 dd-wrt kernel: Total swap = 0kB
May 25 23:12:18 dd-wrt kernel: 65536 pages of RAM
May 25 23:12:18 dd-wrt kernel: 28348 free pages
May 25 23:12:18 dd-wrt kernel: 1659 reserved pages
May 25 23:12:18 dd-wrt kernel: 24109 slab pages
May 25 23:12:18 dd-wrt kernel: 535339 pages shared
May 25 23:12:18 dd-wrt kernel: 0 pages swap cached
May 25 23:12:18 dd-wrt kernel: [ pid ] uid tgid total_vm rss nr_ptes swapents oom_score_adj name
May 25 23:12:18 dd-wrt kernel: [ 617] 0 617 190 82 3 0 0 hotplug2
May 25 23:12:18 dd-wrt kernel: [ 621] 0 621 209 75 3 0 0 mstpd
May 25 23:12:18 dd-wrt kernel: [ 655] 0 655 343 72 3 0 0 watchdog
May 25 23:12:18 dd-wrt kernel: [ 1562] 0 1562 905 359 4 0 0 httpd
May 25 23:12:18 dd-wrt kernel: [ 1678] 0 1678 313 115 3 0 0 process_monitor
May 25 23:12:18 dd-wrt kernel: [[ 2131] 0 2131 368 107 3 0 0 nas
May 25 23:12:18 dd-wrt kernel: [ 2132] 0 2132 368 107 3 0 0 nas
May 25 23:12:18 dd-wrt kernel: [ 2136] 0 2136 368 107 3 0 0 nas
May 25 23:12:18 dd-wrt kernel: [ 2137] 0 2137 368 107 3 0 0 nas
May 25 23:12:18 dd-wrt kernel: [ 2198] 0 2198 332 45 4 0 0 resetbutton
May 25 23:12:18 dd-wrt kernel: [ 5123] 0 5123 313 133 4 0 0 ttraff
May 25 23:12:18 dd-wrt kernel: [ 5390] 0 5390 217 55 3 0 0 dropbear
May 25 23:12:18 dd-wrt kernel: [ 5396] 0 5396 241 99 3 0 0 dnsmasq
May 25 23:12:18 dd-wrt kernel: [ 5590] 0 5590 291 53 3 0 0 syslogd
May 25 23:12:18 dd-wrt kernel: [ 5592] 0 5592 291 49 3 0 0 klogd
May 25 23:12:18 dd-wrt kernel: [28347] 0 28347 3342 3065 8 0 0 privoxy
May 25 23:12:18 dd-wrt kernel: Out of memory: Kill process 28347 (privoxy) score 46 or sacrifice child
May 25 23:12:18 dd-wrt kernel: Killed process 28347 (privoxy) total-vm:13368kB, anon-rss:12000kB, file-rss:260kB
May 25 23:12:20 192.168.1.1 kernel: nas invoked oom-killer: gfp_mask=0x2000d0, order=1, oom_score_adj=0 1889] 0 1889 182 53 3 0 0 cron
May 25 23:12:18 dd-wrt kernel: [ 2116] 0 2116 332 62 3 0 0 wland
May 25 23:12:18 dd-wrt kernel: [ 2117] 0 2117 291 55 3 0 0 udhcpc
May 25 23:12:18 dd-wrt kernel:
Back to top
Sponsor
<Kong> DD-WRT Guru Joined: 15 Dec 2010 Posts: 4339 Location: Germany
Posted: Thu May 28, 2015 5:47 Post subject:
It says it ran out of memory, thus privoxy issue.
The question is why. I have never seen this and I have been using it daily since I added it:-)
Do you use a custom config?
Did you enable logging?
If you enabled logging, did you make sure it logs to usb disk and not ram?
It is either a config problem or memory leak.
Also adding a usb stick with swap partition would help to avoid the out of memory.
Back to top
kratosvn DD-WRT Novice Joined: 24 May 2015 Posts: 42
Posted: Thu May 28, 2015 7:01 Post subject:
First time i see this issue ... Looks like OOM_killer kill privoxy due to OOM.
May 25 23:12:18 dd-wrt kernel: Out of memory: Kill process 28347 (privoxy) score 46 or sacrifice child
Back to top
jebise101 DD-WRT Guru Joined: 25 Sep 2009 Posts: 594
Posted: Thu May 28, 2015 23:01 Post subject:
Not sure about logging, how can I check? I'm using syslog and saving the logs on a remote device. I have a cron job that runs each morning to refresh the filters, everything is saved to a usb key.
below is my config based on the link I posted above.
Code:
confdir /mnt/sda1/etc/privoxy
templdir /mnt/sda1/etc/privoxy/templates
logdir /mnt/sda1/tmp
actionsfile match-all.action
actionsfile default.action
actionsfile user.action
filterfile default.filter
actionsfile easyprivacy.script.action
actionsfile malwaredomains_full.script.action
actionsfile easylist.script.action
filterfile easyprivacy.script.filter
filterfile malwaredomains_full.script.filter
filterfile easylist.script.filter
logfile logfile
tolerate-pipelining 1
enable-compression 1
enable-edit-actions 0
accept-intercepted-requests 1
listen-address 192.168.1.1:8118
max-client-connections 256
default-server-timeout 60
keep-alive-timeout 300
socket-timeout 120
toggle 1
sh cron job
Code:
#!/bin/sh
# Created for adblock, to update and log activity when script has started and ended.
# Don't forget to chmod +rw
# wait for a bit (5 seconds)... depending on your router you can make this longer or shorter
sleep 5
# change path to suit your installation
path="/mnt/sda1/etc/privoxy"
# launch the script
# add a empty line in log
echo >> /mnt/sda1/etc/adblock/run.log
echo "Adblock Started - "$(date) >> /mnt/sda1/etc/adblock/run.log 2>&1
sh /mnt/sda1/etc/privoxy/privoxy-blocklist.sh
echo "Adblock Finished - "$(date) >> /mnt/sda1/etc/adblock/run.log 2>&1
echo "----------------------------" >> /mnt/sda1/etc/adblock/run.log 2>&1
exit
[/quote]
Back to top
<Kong> DD-WRT Guru Joined: 15 Dec 2010 Posts: 4339 Location: Germany
Posted: Fri May 29, 2015 5:45 Post subject:
jebise101 wrote: Not sure about logging, how can I check? I'm using syslog and saving the logs on a remote device. I have a cron job that runs each morning to refresh the filters, everything is saved to a usb key.
below is my config based on the link I posted above.
Code:
confdir /mnt/sda1/etc/privoxy
templdir /mnt/sda1/etc/privoxy/templates
logdir /mnt/sda1/tmp
actionsfile match-all.action
actionsfile default.action
actionsfile user.action
filterfile default.filter
actionsfile easyprivacy.script.action
actionsfile malwaredomains_full.script.action
actionsfile easylist.script.action
filterfile easyprivacy.script.filter
filterfile malwaredomains_full.script.filter
filterfile easylist.script.filter
logfile logfile
tolerate-pipelining 1
enable-compression 1
enable-edit-actions 0
accept-intercepted-requests 1
listen-address 192.168.1.1:8118
max-client-connections 256
default-server-timeout 60
keep-alive-timeout 300
socket-timeout 120
toggle 1
sh cron job
Code:
#!/bin/sh
# Created for adblock, to update and log activity when script has started and ended.
# Don't forget to chmod +rw
# wait for a bit (5 seconds)... depending on your router you can make this longer or shorter
sleep 5
# change path to suit your installation
path="/mnt/sda1/etc/privoxy"
# launch the script
# add a empty line in log
echo >> /mnt/sda1/etc/adblock/run.log
echo "Adblock Started - "$(date) >> /mnt/sda1/etc/adblock/run.log 2>&1
sh /mnt/sda1/etc/privoxy/privoxy-blocklist.sh
echo "Adblock Finished - "$(date) >> /mnt/sda1/etc/adblock/run.log 2>&1
echo "----------------------------" >> /mnt/sda1/etc/adblock/run.log 2>&1
exit
[/quote]
I'd say it is the custom config that requires much ore ram.
Since you already attached a usb disk for the custom config I'd say add a swap partition to the disk, 1 or 2GB should be enough.
Back to top
jebise101 DD-WRT Guru Joined: 25 Sep 2009 Posts: 594
Posted: Sat May 30, 2015 0:45 Post subject:
okay will try, now I just have to figure out how to do this.
Actually I just noticed the logfile is empty, could this be the reason why? I changed the location back to the default /var/logs/privoxy and it created the file but its still empty.
Back to top
kratosvn DD-WRT Novice Joined: 24 May 2015 Posts: 42
Posted: Sat May 30, 2015 1:41 Post subject:
jebise101 wrote: okay will try, now I just have to figure out how to do this.
Actually I just noticed the logfile is empty, could this be the reason why? I changed the location back to the default /var/logs/privoxy and it created the file but its still empty.
Actually I just check my privoxy log it is empty too... But it is not crash also It is still running for sure... looks weird.
http://www.dd-wrt.com/wiki/index.php/How_to_-_Format_and_Partition_External_Storage_Device - Link for make swap partition by the way
Back to top
jebise101 DD-WRT Guru Joined: 25 Sep 2009 Posts: 594
Posted: Sat May 30, 2015 2:21 Post subject:
Can you post your config and are you setup with a cron job to update the filters?
Lastly are you using the latest version 141512-1?
This has been an issue for me ever since I got the R7000, at first I had some other scripts on the router and it used to reboot every 7 days but with those scripts disabled its ow every 15 days.
EDIT:
Will it auto load the swap partition? I'm using a 4GB Kingston USB Stick formatted as FAt32, just used for scripts and such. I will create two partition one for data and one for swap (Data and Swapfile are the correct names?)
Back to top
<Kong> DD-WRT Guru Joined: 15 Dec 2010 Posts: 4339 Location: Germany
Posted: Sat May 30, 2015 6:04 Post subject:
jebise101 wrote: Can you post your config and are you setup with a cron job to update the filters?
Lastly are you using the latest version 141512-1?
This has been an issue for me ever since I got the R7000, at first I had some other scripts on the router and it used to reboot every 7 days but with those scripts disabled its ow every 15 days.
EDIT:
Will it auto load the swap partition? I'm using a 4GB Kingston USB Stick formatted as FAt32, just used for scripts and such. I will create two partition one for data and one for swap (Data and Swapfile are the correct names?)
Yes it should auto mount, you can check by running command "free":
Code: free
total used free shared buffers
Mem: 255500 49816 205684 0 7348
-/+ buffers: 42468 213032
Swap: 521212 0 521212
In my case I have a 512MB large swap. If it did not mount or if you have no swap it will be all zero.
Back to top
jebise101 DD-WRT Guru Joined: 25 Sep 2009 Posts: 594
Posted: Sun May 31, 2015 2:08 Post subject:
I created the swap partition, still don't get why it runs out of memory when no one else has this issue. Any way to figure out the cause of the memory leak? My setup for Privoxy is pretty standard so I don't really get why I need a 2GB swap partition.
Code:
root@DD-WRT:~# free
total used free shared buffers
Mem: 255508 69040 186468 0 6620
-/+ buffers: 62420 193088
Swap: 2341884 0 2341884
Back to top
kratosvn DD-WRT Novice Joined: 24 May 2015 Posts: 42
Posted: Sun May 31, 2015 2:26 Post subject:
jebise101 wrote: I created the swap partition, still don't get why it runs out of memory when no one else has this issue. Any way to figure out the cause of the memory leak? My setup for Privoxy is pretty standard so I don't really get why I need a 2GB swap partition.
Code:
root@DD-WRT:~# free
total used free shared buffers
Mem: 255508 69040 186468 0 6620
-/+ buffers: 62420 193088
Swap: 2341884 0 2341884
add this line to your privoxy custom:
debug 1024
I can get the privoxy/log/messages after adding the live above.
Back to top
jebise101 DD-WRT Guru Joined: 25 Sep 2009 Posts: 594
Posted: Sun May 31, 2015 3:41 Post subject:
Yeah, I got it to work with debug 1 as well, but 1024 does not really help with why it causes the router to run out of memory.
Back to top
kratosvn DD-WRT Novice Joined: 24 May 2015 Posts: 42
Posted: Sun May 31, 2015 4:34 Post subject:
jebise101 wrote: Yeah, I got it to work with debug 1 as well, but 1024 does not really help with why it causes the router to run out of memory.
You have to watch the log for a while also the memory too. If it is crashed due to memory leak... it takes time to figure out by watching it's behaviors through the log.
But as Kong mentioned it could be configuration too... so don't know yet.
Also make sure you got the syslog to the usb too...
Back to top
jebise101 DD-WRT Guru Joined: 25 Sep 2009 Posts: 594
Posted: Sun May 31, 2015 5:03 Post subject:
syslog are saved to a raspberry pi. It is the third time I reconfigured privoxy and same issue. This issue has plagued my network since early January, and since don't know the root cause. My configuration is very simple and there are no scripts or anything special on the router but it still causes it to crash. The router has privoxy, wifi and guest network nothing complex. Was much more complex before but disabled everything but don't really want to disable privoxy.
Is your config similar to mine?
I've been watch the memory and logs daily and no errors are reported in syslog until it decides to crash which is the result above.
Back to top
kratosvn DD-WRT Novice Joined: 24 May 2015 Posts: 42
Posted: Sun May 31, 2015 5:33 Post subject:
jebise101 wrote: syslog are saved to a raspberry pi. It is the third time I reconfigured privoxy and same issue. This issue has plagued my network since early January, and since don't know the root cause. My configuration is very simple and there are no scripts or anything special on the router but it still causes it to crash. The router has privoxy, wifi and guest network nothing complex. Was much more complex before but disabled everything but don't really want to disable privoxy.
Is your config similar to mine?
I've been watch the memory and logs daily and no errors are reported in syslog until it decides to crash which is the result above.
Looks like the same configure as me. But I never see OOM killer like this. Even I run 6500M with AC1450 or R7000 daily with privoxy, wifi, guest network...
I am wondering should u try the new Kong's release 27 May firmware ?
Back to top