LINUX.ORG.RU

Не запускается служба Tor на роутере. Не хватает памяти

 ,


0

1

Всем привет

OpenWrt 18.06.6 r7957-d81a8a3e29 Mikrotik RB941-2ND

Запускаю тор командой /etc/init.d/tor start Процесс умирает, пишет что не хватает памяти, как исправить?

в логах

Wed Jan 15 10:03:41 2020 daemon.notice Tor[1835]: Tor 0.4.1.6 running on Linux with Libevent 2.0.22-stable, OpenSSL 1.0.2u, Zlib 1.2.11, Liblzma N/A, and Libzstd N/A.
Wed Jan 15 10:03:41 2020 daemon.notice Tor[1835]: Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
Wed Jan 15 10:03:41 2020 daemon.notice Tor[1835]: Read configuration file "/etc/tor/torrc".
Wed Jan 15 10:03:41 2020 daemon.notice Tor[1835]: You configured a non-loopback address '192.168.1.1:9100' for SocksPort. This allows everybody on your local network to use your machine as a proxy. Make sure this is what you wanted.
Wed Jan 15 10:03:41 2020 daemon.notice Tor[1835]: Opening Socks listener on 192.168.1.1:9100
Wed Jan 15 10:03:41 2020 daemon.notice Tor[1835]: Opened Socks listener on 192.168.1.1:9100
Wed Jan 15 10:03:42 2020 daemon.notice Tor[1835]: Bootstrapped 0% (starting): Starting
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.743106] netifd invoked oom-killer: gfp_mask=0x2420848(GFP_NOFS|__GFP_NOFAIL|__GFP_HARDWALL|__GFP_MOVABLE), nodemask=0, order=0, oom_score_adj=0
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.756799] CPU: 0 PID: 797 Comm: netifd Not tainted 4.9.208 #0
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.762941] Stack : 804c76a2 00000033 00000000 00000001 00000000 00000000 00000000 00000000
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.771652]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.780360]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.789051]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.797752]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.806452]         ...
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.808988] Call Trace:
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.811384] [<8006b10c>] 0x8006b10c
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.814988] [<8006b10c>] 0x8006b10c
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.818593] [<80116d2c>] 0x80116d2c
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.822226] [<800db960>] 0x800db960
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.825827] [<800eb71c>] 0x800eb71c
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.829439] [<800dc224>] 0x800dc224
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.833056] [<800df924>] 0x800df924
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.836674] [<800d7d98>] 0x800d7d98
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.840293] [<8014a110>] 0x8014a110
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.843917] [<80179e28>] 0x80179e28
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.847528] [<800de730>] 0x800de730
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.851167] [<8017a4d0>] 0x8017a4d0
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.854803] [<8017bd1c>] 0x8017bd1c
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.858411] [<8037fc00>] 0x8037fc00
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.862043] [<800d7af8>] 0x800d7af8
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.865668] [<800e3ff0>] 0x800e3ff0
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.869273] [<800d6aa8>] 0x800d6aa8
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.872945] [<800da3cc>] 0x800da3cc
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.876559] [<800b4b98>] 0x800b4b98
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.880197] [<800fae08>] 0x800fae08
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.883815] [<800fe5b8>] 0x800fe5b8
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.887419] [<801591a0>] 0x801591a0
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.891073] [<8007143c>] 0x8007143c
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.894693] [<800a1654>] 0x800a1654
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.898301] [<8009ce9c>] 0x8009ce9c
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.901919] [<803e6bb0>] 0x803e6bb0
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.905518] [<800b63c4>] 0x800b63c4
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.909119] [<8015a61c>] 0x8015a61c
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.912737] [<80066260>] 0x80066260
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.916345]
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.917879] Mem-Info:
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.920255] active_anon:3170 inactive_anon:547 isolated_anon:0
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.920255]  active_file:73 inactive_file:84 isolated_file:0
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.920255]  unevictable:0 dirty:0 writeback:0 unstable:0
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.920255]  slab_reclaimable:150 slab_unreclaimable:1289
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.920255]  mapped:520 shmem:1308 pagetables:80 bounce:0
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.920255]  free:256 free_pcp:0 free_cma:0
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.953116] Node 0 active_anon:12680kB inactive_anon:2188kB active_file:292kB inactive_file:336kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:2080kB dirty:0kB writeback:0kB shmem:5232kB writeback_tmp:0kB unstable:0kB pages_scanned:9015 all_unreclaimable? yes
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  822.978264] Normal free:1024kB min:1024kB low:1280kB high:1536kB active_anon:12680kB inactive_anon:2188kB active_file:292kB inactive_file:336kB unevictable:0kB writepending:0kB present:32768kB managed:27576kB mlocked:0kB slab_reclaimable:600kB slab_unreclaimable:5156kB kernel_stack:416kB pagetables:320kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  823.010637] lowmem_reserve[]: 0 0
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  823.014083] Normal: 66*4kB (UME) 27*8kB (UE) 20*16kB (ME) 7*32kB (U) 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 1024kB
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  823.026789] 1465 total pagecache pages
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  823.030677] 0 pages in swap cache
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  823.034103] Swap cache stats: add 0, delete 0, find 0/0
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  823.039494] Free swap  = 0kB
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  823.042481] Total swap = 0kB
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  823.045453] 8192 pages RAM
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  823.048248] 0 pages HighMem/MovableOnly
Wed Jan 15 10:03:52 2020 kern.warn kernel: [  823.052229] 1298 pages reserved
Wed Jan 15 10:03:52 2020 kern.info kernel: [  823.055470] [ pid ]   uid  tgid total_vm      rss nr_ptes nr_pmds swapents oom_score_adj name
Wed Jan 15 10:03:52 2020 kern.info kernel: [  823.064307] [  447]     0   447      298       18       5       0        0             0 ubusd
Wed Jan 15 10:03:52 2020 kern.info kernel: [  823.073214] [  448]     0   448      225       10       4       0        0             0 askfirst
Wed Jan 15 10:03:52 2020 kern.info kernel: [  823.082389] [  642]     0   642      306       26       4       0        0             0 logd
Wed Jan 15 10:03:52 2020 kern.info kernel: [  823.091206] [  661]     0   661      382       25       5       0        0             0 rpcd
Wed Jan 15 10:03:52 2020 kern.info kernel: [  823.100010] [  740]     0   740      266       10       4       0        0             0 dropbear
Wed Jan 15 10:03:52 2020 kern.info kernel: [  823.109186] [  797]     0   797      430       42       5       0        0             0 netifd
Wed Jan 15 10:03:52 2020 kern.info kernel: [  823.118184] [  833]     0   833      355       30       4       0        0             0 odhcpd
Wed Jan 15 10:03:52 2020 kern.info kernel: [  823.127179] [  913]     0   913      330       27       3       0        0             0 uhttpd
Wed Jan 15 10:03:52 2020 kern.info kernel: [  823.136170] [ 1222]     0  1222      301       12       3       0        0             0 ntpd
Wed Jan 15 10:03:52 2020 kern.info kernel: [  823.144982] [ 1244]     0  1244      300       10       3       0        0             0 udhcpc
Wed Jan 15 10:03:52 2020 kern.info kernel: [  823.153979] [ 1247]     0  1247      257       13       4       0        0             0 odhcp6c
Wed Jan 15 10:03:52 2020 kern.info kernel: [  823.163065] [ 1507]   453  1507      331       25       4       0        0             0 dnsmasq
Wed Jan 15 10:03:52 2020 kern.info kernel: [  823.172150] [ 1508]     0  1508      283       25       4       0        0             0 dropbear
Wed Jan 15 10:03:52 2020 kern.info kernel: [  823.181325] [ 1509]     0  1509      243       15       3       0        0             0 sftp-server
Wed Jan 15 10:03:52 2020 kern.info kernel: [  823.190769] [ 1585]     0  1585      283       26       4       0        0             0 dropbear
Wed Jan 15 10:03:52 2020 kern.info kernel: [  823.199932] [ 1586]     0  1586      254       29       4       0        0             0 sftp-server
Wed Jan 15 10:03:52 2020 kern.info kernel: [  823.209379] [ 1810]     0  1810      283       25       4       0        0             0 dropbear
Wed Jan 15 10:03:52 2020 kern.info kernel: [  823.218553] [ 1811]     0  1811      300       10       3       0        0             0 ash
Wed Jan 15 10:03:52 2020 kern.info kernel: [  823.227281] [ 1835]    52  1835     3957     2541       7       0        0             0 tor
Wed Jan 15 10:03:52 2020 kern.err kernel: [  823.235997] Out of memory: Kill process 1835 (tor) score 369 or sacrifice child
Wed Jan 15 10:03:52 2020 kern.err kernel: [  823.243568] Killed process 1835 (tor) total-vm:15828kB, anon-rss:8108kB, file-rss:4kB, shmem-rss:2052kB

Ответ на: комментарий от zolotooy

Если ты не человек многих талантов, то проще всего купить новый роутер. На 32 Мб ты уже ничего не запустишь. В лучшем случае со скрипом tor запустится, но будет падать.

anonymous ()