[winswitch] winswitch uses 100% CPU

Antoine Martin antoine at nagafix.co.uk
Wed Sep 23 10:42:02 BST 2015


On 22/09/15 03:35, McDermott, Chris Kevin (MSDU - HP Storage) wrote:
> I'm running winswitch on RHEL 6.4.  The winswitch-server and winswitch-stdio processes are both using approximately 100% CPU (core).
>
> I have read the FAQ on this http://winswitch.org/trac/ticket/90.
>
> I have patched pygtk2-2.16.0-3 Fedora source RPM with the patches https://bugzilla.redhat.com/attachment.cgi?id=477006 and https://bugzilla.redhat.com/attachment.cgi?id=477007 (more or less) and did an rpmbuild to produce a new binary RPM for pygtk2-2.16.0-3.el6.
>
> I've installed the new binary RPM and restarted winswitch.  The high CPU usage did not change.
>
> strace of winswitch_server shows
>
> poll([{fd=7, events=POLLIN}, {fd=3, events=POLLIN}, {fd=15, events=POLLIN}, {fd=11, events=POLLIN}, {fd=5, events=POLLIN}, {fd=13, events=POLLIN}, {fd=10, events=POLLIN}], 7, 38) = 1 ([{fd=3, revents=POLLIN}])
> poll([{fd=7, events=POLLIN}, {fd=3, events=POLLIN}, {fd=15, events=POLLIN}, {fd=11, events=POLLIN}, {fd=5, events=POLLIN}, {fd=13, events=POLLIN}, {fd=10, events=POLLIN}], 7, 38) = 1 ([{fd=3, revents=POLLIN}])
> poll([{fd=7, events=POLLIN}, {fd=3, events=POLLIN}, {fd=15, events=POLLIN}, {fd=11, events=POLLIN}, {fd=5, events=POLLIN}, {fd=13, events=POLLIN}, {fd=10, events=POLLIN}], 7, 36) = 1 ([{fd=3, revents=POLLIN}])
> poll([{fd=7, events=POLLIN}, {fd=3, events=POLLIN}, {fd=15, events=POLLIN}, {fd=11, events=POLLIN}, {fd=5, events=POLLIN}, {fd=13, events=POLLIN}, {fd=10, events=POLLIN}], 7, 35) = 1 ([{fd=3, revents=POLLIN}])
>
> ad infinitum
>
> lsof shows this for fd 3
>
>     winswitch 16617  mcdermoc    3r     FIFO                0,8      0t0   93100 pipe
>
> strace of stdio is basically the same pattern - nothing but calls to poll(3).
>
> I am out of ideas.  Any help on a new direction which I could pursue would be greatly appreciated.
Have you verified that your patched libraries are being used and that
they do fix the problem they are meant to fix?
There is a test case here (requires sending it a SIGCHLD):
https://bugzilla.gnome.org/show_bug.cgi?id=640738#c4
And another one here (requires Twisted):
http://twistedmatrix.com/trac/ticket/4658

The only alternative that I can think of is to upgrade to a newer CentOS
release.
(those have the pygtk patches included - I believe)

Cheers
Antoine
>
> Thanks,
> Chris
> _______________________________________________
> shifter-users mailing list
> shifter-users at lists.devloop.org.uk
> http://lists.devloop.org.uk/mailman/listinfo/shifter-users




More information about the shifter-users mailing list