Re: [tor-bugs] #28902 [Core Tor/Nyx]: GETINFO commands with huge outputs slow down interpreter curses interface

2019-01-05 Thread Tor Bug Tracker & Wiki
#28902: GETINFO commands with huge outputs slow down interpreter curses 
interface
--+
 Reporter:  wagon |  Owner:  atagar
 Type:  defect| Status:  closed
 Priority:  Medium|  Milestone:
Component:  Core Tor/Nyx  |Version:
 Severity:  Normal| Resolution:  fixed
 Keywords:  curses|  Actual Points:
Parent ID:| Points:
 Reviewer:|Sponsor:
--+

Comment (by wagon):

 OK, good.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #28902 [Core Tor/Nyx]: GETINFO commands with huge outputs slow down interpreter curses interface

2019-01-04 Thread Tor Bug Tracker & Wiki
#28902: GETINFO commands with huge outputs slow down interpreter curses 
interface
--+
 Reporter:  wagon |  Owner:  atagar
 Type:  defect| Status:  closed
 Priority:  Medium|  Milestone:
Component:  Core Tor/Nyx  |Version:
 Severity:  Normal| Resolution:  fixed
 Keywords:  curses|  Actual Points:
Parent ID:| Points:
 Reviewer:|Sponsor:
--+

Comment (by atagar):

 Hi wagon. I don't intend to continue to sign individual commits. That
 said, there will likely be a Nyx 2.1.0 release in a month or two.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #28902 [Core Tor/Nyx]: GETINFO commands with huge outputs slow down interpreter curses interface

2019-01-04 Thread Tor Bug Tracker & Wiki
#28902: GETINFO commands with huge outputs slow down interpreter curses 
interface
--+
 Reporter:  wagon |  Owner:  atagar
 Type:  defect| Status:  closed
 Priority:  Medium|  Milestone:
Component:  Core Tor/Nyx  |Version:
 Severity:  Normal| Resolution:  fixed
 Keywords:  curses|  Actual Points:
Parent ID:| Points:
 Reviewer:|Sponsor:
--+

Comment (by wagon):

 Thanks, atagar! I would like to wait for your
 [[http://ea5faa5po25cf7fb.onion/projects/tor/ticket/28332#comment:7|signature]]
 for the last `git` commit or the next signed release (what will come
 first).

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #28902 [Core Tor/Nyx]: GETINFO commands with huge outputs slow down interpreter curses interface

2019-01-03 Thread Tor Bug Tracker & Wiki
#28902: GETINFO commands with huge outputs slow down interpreter curses 
interface
--+
 Reporter:  wagon |  Owner:  atagar
 Type:  defect| Status:  closed
 Priority:  Medium|  Milestone:
Component:  Core Tor/Nyx  |Version:
 Severity:  Normal| Resolution:  fixed
 Keywords:  curses|  Actual Points:
Parent ID:| Points:
 Reviewer:|Sponsor:
--+
Changes (by atagar):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 Hi wagon, sorry about the long delay. Fix pushed. Feel free to reopen if
 this doesn't do the trick for ya.

 https://gitweb.torproject.org/nyx.git/commit/?id=6492a3a

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #28902 [Core Tor/Nyx]: GETINFO commands with huge outputs slow down interpreter curses interface

2018-12-21 Thread Tor Bug Tracker & Wiki
#28902: GETINFO commands with huge outputs slow down interpreter curses 
interface
--+--
 Reporter:  wagon |  Owner:  atagar
 Type:  defect| Status:  assigned
 Priority:  Medium|  Milestone:
Component:  Core Tor/Nyx  |Version:
 Severity:  Normal| Resolution:
 Keywords:  curses|  Actual Points:
Parent ID:| Points:
 Reviewer:|Sponsor:
--+--

Comment (by atagar):

 > why there is no keyword "interperter"

 Simply because it rarely gets tickets. I made those keywords to group
 similar tickets but the interpreter gets so little use (and by extension
 tickets) it didn't merit one. Personally I don't care much what our trac
 keywords are so feel free to add it to the list if you'd like.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #28902 [Core Tor/Nyx]: GETINFO commands with huge outputs slow down interpreter curses interface

2018-12-20 Thread Tor Bug Tracker & Wiki
#28902: GETINFO commands with huge outputs slow down interpreter curses 
interface
--+--
 Reporter:  wagon |  Owner:  atagar
 Type:  defect| Status:  assigned
 Priority:  Medium|  Milestone:
Component:  Core Tor/Nyx  |Version:
 Severity:  Normal| Resolution:
 Keywords:  curses|  Actual Points:
Parent ID:| Points:
 Reviewer:|Sponsor:
--+--

Comment (by wagon):

 > I thought you meant the python interpreter rather than the control
 interpreter.
 It is a good opportunity to ask you why there is no keyword "interperter"
 in a [[https://trac.torproject.org/projects/tor/wiki/doc/nyx/bugs|list of
 keywords]] suggested for Nyx bugs. It would be logical to have it. Now we
 have only these ones:
 >  header - top part of the interface showing the nickname, cpu usage, etc
 >  graph - related to the bandwidth graph
 >  log - related to the log panel
 >  connections - related to the connection panel
 >  config - related to the configuration editor
 >  torrc - related to the torrc panel
 >  menu - drop-down menus
 >  curses - low level terminal rendering

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #28902 [Core Tor/Nyx]: GETINFO commands with huge outputs slow down interpreter curses interface

2018-12-20 Thread Tor Bug Tracker & Wiki
#28902: GETINFO commands with huge outputs slow down interpreter curses 
interface
--+--
 Reporter:  wagon |  Owner:  atagar
 Type:  defect| Status:  assigned
 Priority:  Medium|  Milestone:
Component:  Core Tor/Nyx  |Version:
 Severity:  Normal| Resolution:
 Keywords:  curses|  Actual Points:
Parent ID:| Points:
 Reviewer:|Sponsor:
--+--

Comment (by atagar):

 > which interpreter cannot manage

 I thought you meant the python interpreter rather than the control
 interpreter. Both readings are accurate, but different problems.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #28902 [Core Tor/Nyx]: GETINFO commands with huge outputs slow down interpreter curses interface

2018-12-19 Thread Tor Bug Tracker & Wiki
#28902: GETINFO commands with huge outputs slow down interpreter curses 
interface
--+--
 Reporter:  wagon |  Owner:  atagar
 Type:  defect| Status:  assigned
 Priority:  Medium|  Milestone:
Component:  Core Tor/Nyx  |Version:
 Severity:  Normal| Resolution:
 Keywords:  curses|  Actual Points:
Parent ID:| Points:
 Reviewer:|Sponsor:
--+--

Comment (by wagon):

 > Ah! So that ticket was about the control interpreter.
 Surely. I thought it [[#28877|was always clear]]:
 > If UseMicrodescriptors is set to 0 in Tor client, the command GETINFO
 desc/all-recent returns very huge listing which **interpreter cannot
 manage** properly. If amount of memory is big, after finishing this
 command Nyx starts to response slowly on any keyboard input everywhere and
 in all its windows, **not only in interpreter window**

 > I'd be happy to merge the fix if you'd care to whip it up. Otherwise
 I'll get to it when I have time.
 Probably you will find time faster than I will find time to learn python
 and its libraries...

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #28902 [Core Tor/Nyx]: GETINFO commands with huge outputs slow down interpreter curses interface

2018-12-19 Thread Tor Bug Tracker & Wiki
#28902: GETINFO commands with huge outputs slow down interpreter curses 
interface
--+--
 Reporter:  wagon |  Owner:  atagar
 Type:  defect| Status:  assigned
 Priority:  Medium|  Milestone:
Component:  Core Tor/Nyx  |Version:
 Severity:  Normal| Resolution:
 Keywords:  curses|  Actual Points:
Parent ID:| Points:
 Reviewer:|Sponsor:
--+--

Comment (by atagar):

 Ah! So that ticket was about the control interpreter. That makes a lot
 more sense (I thought you were talking about an internal 'GETINFO desc
 /all-recent' invocation).

 If you're running that command three times the control interpreter has
 accumulated roughly 1080078 lines of content. The draw method then
 iterates over that which is probably the source of the problem...

 https://gitweb.torproject.org/nyx.git/tree/nyx/panel/interpreter.py#n133

 This should be easy to fix. Rather than looping over the whole list we
 should splice to the visible range.

 Honestly I won't be getting to this any time soon, but I'd be happy to
 merge the fix if you'd care to whip it up. Otherwise I'll get to it when I
 have time.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #28902 [Core Tor/Nyx]: GETINFO commands with huge outputs slow down interpreter curses interface

2018-12-19 Thread Tor Bug Tracker & Wiki
#28902: GETINFO commands with huge outputs slow down interpreter curses 
interface
--+--
 Reporter:  wagon |  Owner:  atagar
 Type:  defect| Status:  assigned
 Priority:  Medium|  Milestone:
Component:  Core Tor/Nyx  |Version:
 Severity:  Normal| Resolution:
 Keywords:  curses|  Actual Points:
Parent ID:| Points:
 Reviewer:|Sponsor:
--+--

Comment (by wagon):

 Now I cannot reproduce the slowing down of all Nyx windows (this is what I
 wrote in #28877), as I see problems only in interpreter Nyx window. If I
 do `desc/all-recent` test on a system which has about 1GB of RAM (I don't
 think it is too small, because I don't run browsers or any heavy
 applications in this system), it is still not sufficient for Nyx `desc
 /all-recent` command. System hangs for few minutes until OS find a way to
 stop Nyx.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

[tor-bugs] #28902 [Core Tor/Nyx]: GETINFO commands with huge outputs slow down interpreter curses interface

2018-12-18 Thread Tor Bug Tracker & Wiki
#28902: GETINFO commands with huge outputs slow down interpreter curses 
interface
+--
 Reporter:  wagon   |  Owner:  atagar
 Type:  defect  | Status:  assigned
 Priority:  Medium  |  Component:  Core Tor/Nyx
  Version:  |   Severity:  Normal
 Keywords:  curses  |  Actual Points:
Parent ID:  | Points:
 Reviewer:  |Sponsor:
+--
 If you go to Nyx interpreter, run some commands, then press ESC and arrow
 up, you see that scrolling back in history is very fast and smooth.

 Now do the following:
 1. Run `GETINFO desc/all-recent` command 3 times to get very huge output.
 2. Press ESC and then press HOME to get at the top of scroll buffer.
 3. Press arrow up and arrow down keys many times to scroll up/down.
 4. Press ENTER to return to command interface.
 5. Run some command with small output, e.g. `GETINFO info/names`.
 6. Press ESC and try to scroll few lines up by pressing arrow up many
 times.

 You will see that scrolling is very slow. You need few seconds to scroll
 just few lines up in the buffer.

 Nyx version is
 [[http://ea5faa5po25cf7fb.onion/projects/tor/ticket/28332#comment:7|this
 one]]. The ticket is filed by atagar's
 [[http://ea5faa5po25cf7fb.onion/projects/tor/ticket/28877#comment:3|request]]:
 > I suspect your initial hypothesis about the reason Nyx is freezing is
 inaccurate. Feel free to file a separate ticket with the `nyx --debug`
 output when Nyx freezes so I can see what's up.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs