Re: [PATCH] poll: prevent busy-waiting

2012-05-21 Thread Paolo Bonzini
Here is what I applied. Thanks! 2012-05-21 Paolo Bonzini poll/select: prevent busy-waiting. SwitchToThread() only gives away the rest of the current time slice to another thread in the current process. So if the thread that feeds the file decscriptor we're pol

Re: [PATCH] poll: prevent busy-waiting

2012-05-20 Thread Erik Faye-Lund
On Fri, May 18, 2012 at 9:40 AM, Paolo Bonzini wrote: > Il 16/05/2012 21:16, Erik Faye-Lund ha scritto: >> From: theoleblond >> >> SwitchToThread() only gives away the rest of the current time >> slice to another thread in the current process. So if the >> thread that feeds the file decscriptor w

Re: [PATCH] poll: prevent busy-waiting

2012-05-18 Thread Paolo Bonzini
Il 16/05/2012 21:16, Erik Faye-Lund ha scritto: > From: theoleblond > > SwitchToThread() only gives away the rest of the current time > slice to another thread in the current process. So if the > thread that feeds the file decscriptor we're polling is not > in the current process, we get busy-wai

[PATCH] poll: prevent busy-waiting

2012-05-16 Thread Erik Faye-Lund
From: theoleblond SwitchToThread() only gives away the rest of the current time slice to another thread in the current process. So if the thread that feeds the file decscriptor we're polling is not in the current process, we get busy-waiting. This can lead to very poor performance in some cases,