Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

omphalos on remote host can drive positive work feedback loop #49

Open
dankamongmen opened this issue Oct 3, 2020 · 1 comment
Open
Assignees
Labels
bug shit's fucked up notcurses notcurses bling
Milestone

Comments

@dankamongmen
Copy link
Owner

I left an omphalos-notcurses process live on qemfd.net for most of the day. At this point, it is still responsive and functional (yay!), but it is also eating a full CPU. strace reveals that it's simply polling for and receiving packets, and then redrawing the screen, but it loks like we're doing a redraw every packet(!). That's of course going to effectively force omphalos to constantly work, since every time it updates the screen, it generates an ssh packet which causes it to update the screen.

Update less frequently, holmes.

@dankamongmen dankamongmen added bug shit's fucked up notcurses notcurses bling labels Oct 3, 2020
@dankamongmen dankamongmen added this to the 0.99.13 milestone Oct 3, 2020
@dankamongmen dankamongmen self-assigned this Oct 3, 2020
@dankamongmen
Copy link
Owner Author

Here's what it looks like:

[pid 1261206] poll([{fd=51, events=POLLIN|POLLERR|POLLRDNORM}], 1, 250 <unfinished ...>
[pid 1261202] futex(0x55b80ec36bc0, FUTEX_WAIT_PRIVATE, 2, NULL <unfinished ...>
[pid 1261207] ioctl(5, TIOCGWINSZ <unfinished ...>
[pid 1261203] <... poll resumed>)       = 0 (Timeout)
[pid 1261207] <... ioctl resumed>, {ws_row=74, ws_col=80, ws_xpixel=0, ws_ypixel=0}) = 0
[pid 1261203] futex(0x55b80ec36bc0, FUTEX_WAIT_PRIVATE, 2, NULL <unfinished ...>
[pid 1261207] futex(0x55b80ec36bc0, FUTEX_WAKE_PRIVATE, 1 <unfinished ...>
[pid 1261203] <... futex resumed>)      = -1 EAGAIN (Resource temporarily unavailable)
[pid 1261207] <... futex resumed>)      = 1
[pid 1261202] <... futex resumed>)      = 0
[pid 1261207] poll([{fd=56, events=POLLIN|POLLERR|POLLRDNORM}], 1, 250 <unfinished ...>
[pid 1261202] futex(0x55b80ec36bc0, FUTEX_WAIT_PRIVATE, 2, NULL <unfinished ...>
[pid 1261203] ioctl(5, TIOCGWINSZ, {ws_row=74, ws_col=80, ws_xpixel=0, ws_ypixel=0}) = 0
[pid 1261203] futex(0x55b80ec36bc0, FUTEX_WAKE_PRIVATE, 1) = 1
[pid 1261202] <... futex resumed>)      = 0
[pid 1261203] poll([{fd=36, events=POLLIN|POLLERR|POLLRDNORM}], 1, 250 <unfinished ...>
[pid 1261202] ioctl(5, TIOCGWINSZ, {ws_row=74, ws_col=80, ws_xpixel=0, ws_ypixel=0}) = 0
[pid 1261202] futex(0x55b80ec36bc0, FUTEX_WAKE_PRIVATE, 1) = 0

@dankamongmen dankamongmen modified the milestones: 0.99.13, 0.99.14 Nov 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug shit's fucked up notcurses notcurses bling
Projects
None yet
Development

No branches or pull requests

1 participant