High cpu usage by many select() syscalls

Bug #1876918 reported by Tobias Karnat
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
arpon (Ubuntu)
New
Undecided
Unassigned

Bug Description

Please consider the following patch to switch from select() with 1 ms timeout to epoll_wait() without timeout.

# syscount-bpfcc -i 1
Tracing syscalls, printing top 10... Ctrl+C to quit
[14:48:24]
SYSCALL COUNT
select 1497

With applied patch the used system time is greatly reduced.

Tags: patch
Revision history for this message
Tobias Karnat (tobiaskarnat-remondis) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "arpon-epoll.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Tobias Karnat (tobiaskarnat-remondis) wrote :

# syscount-bpfcc -i 1
Tracing syscalls, printing top 10... Ctrl+C to quit
[07:45:46]
SYSCALL COUNT
epoll_wait 34

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.