Opened 3 weeks ago

Last modified 12 days ago

#28153 needs_information defect

Nyx memory leaks

Reported by: wagon Owned by: atagar
Priority: Medium Milestone:
Component: Core Tor/Nyx Version: Tor: 0.3.4.8
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

I had this problem twice. If nyx is running more than 1-2 days, it starts to consume more resources (I think, it is RAM). Finally, system becomes very slow and unresponsive until nyx (2.0.4 installed using python3-pip) is killed by system OOM-killer. This is what I see in /var/log/messages after that:

Purging GPU memory, 0 bytes freed, XXXXXXX bytes still pinned.
nyx invoked oom-killer: gfp_mask=0x201da, order=0, oom_score_adj=0
nyx cpuset=/ mems_allowed=0
CPU: 0 PID: XXXXX Comm: nyx Not tainted 3.16.0-7-amd64 #1 Debian [redacted]
Hardware name: [redacted]
 0000000000000000 ffffffff81534df4 00000000000201da 0000000000000000
 ffffffff81533956 0000000000000000 ffff880099938000 ffffffffa054d5ab
 ffff880099950000 01ffffff8115e3d3 ffff880028f59550 ffffffff81730612
Call Trace:
 [<ffffffff81534df4>] ? dump_stack+0x5d/0x78
 [<ffffffff81533956>] ? dump_header+0x95/0x1fd
 [<ffffffffa054d5ab>] ? i915_gem_shrinker_oom+0x15b/0x1c0 [i915]
 [<ffffffff8114c20d>] ? oom_kill_process+0x21d/0x370
 [<ffffffff8114bdad>] ? find_lock_task_mm+0x3d/0xa0
 [<ffffffff8114c9ce>] ? out_of_memory+0x4be/0x4f0
 [<ffffffff81153386>] ? __alloc_pages_nodemask+0xca6/0xcf0
 [<ffffffff81193bd6>] ? alloc_pages_current+0xa6/0x160
 [<ffffffff8114ae9c>] ? filemap_fault+0x1bc/0x440
 [<ffffffff81172430>] ? __do_fault+0x40/0xc0
 [<ffffffff811769eb>] ? handle_mm_fault+0xf2b/0x15b0
 [<ffffffff8105b6cb>] ? __do_page_fault+0x1ab/0x470
 [<ffffffff810dd5c3>] ? SyS_futex+0x73/0x170
 [<ffffffff8153d058>] ? page_fault+0x28/0x30

Tor is configured as client only. It is neither a relay nor an onion service.

Child Tickets

Change History (5)

comment:1 Changed 3 weeks ago by atagar

Status: assignedneeds_information

Damn, that's no bueno. Please run 'nyx --debug' and add the log (redacted of any data you feel is private) to this ticket. If this takes days to manifest then the log will probably be too large, so simply include the start and end of it.

comment:2 Changed 13 days ago by wagon

run nyx --debug and add the log (redacted of any data you feel is private) to this ticket

OK. I'll try it.

comment:3 Changed 13 days ago by arma

Cc: atagar removed
Component: ApplicationsCore Tor/Nyx
Keywords: nyx removed
Reviewer: atagar

comment:4 Changed 13 days ago by wagon

I am sorry for off-topic. When I create tickets, for the component "Core Tor/Nyx" I can select only Tor version, but I expect it should be Nyx version instead. If I am right, that menu should be fixed in trac interface itself.

comment:5 Changed 12 days ago by atagar

Hi wagon. The version field is unused for nyx tickets. The only fields I care about are listed on...

https://trac.torproject.org/projects/tor/wiki/doc/nyx/bugs

Note: See TracTickets for help on using tickets.