Re: [ck] Re: Threading issues? [ck-request@vds.kolivas.org: ck Digest, Vol 3, Issue 16]

2005-01-16 Thread André Goddard Rosa
On Sat, 15 Jan 2005 03:30:28 +1100, Con Kolivas [EMAIL PROTECTED] wrote: Ove Kaaven wrote: The biggest problem is that there is no way to say to the kernel that one thread is more important than another without permanently renicing all other threads. A potential kernel solution to the

Re: [ck] Re: Threading issues? [ck-request@vds.kolivas.org: ck Digest, Vol 3, Issue 16]

2005-01-14 Thread Con Kolivas
Jeremy White wrote: Specifically, there are other areas of interest when you think about timing and scheduling. First is the Windows very clear cut 'foreground window' boost. I have no idea how this maps into the Linux interactivity strategy. They seem to be roughly equivalent, and I never

Re: [ck] Re: Threading issues? [ck-request@vds.kolivas.org: ck Digest, Vol 3, Issue 16]

2005-01-14 Thread Con Kolivas
Jeremy White wrote: Photoshop has a thread that runs that samples the mouse position every 5 ms; if it doesn't get it's samples in the right amount of time, you don't draw smooth curves. (It may be a timer event callback routine, or a thread that is woken up by a timer event, I can't recall

Re: [ck] Re: Threading issues? [ck-request@vds.kolivas.org: ck Digest, Vol 3, Issue 16]

2005-01-14 Thread Ove Kaaven
fre, 14,.01.2005 kl. 13.06 +1100, skrev Con Kolivas: Well the scheduler is not going to be rewritten any time soon (trust me, I've tried :P). Tell me what remaining requirements your threads have that you are unable to achieve at the moment and I'll see if I can help with my understanding

Re: [ck] Re: Threading issues? [ck-request@vds.kolivas.org: ck Digest, Vol 3, Issue 16]

2005-01-14 Thread Con Kolivas
Ove Kaaven wrote: fre, 14,.01.2005 kl. 13.06 +1100, skrev Con Kolivas: Well the scheduler is not going to be rewritten any time soon (trust me, I've tried :P). Tell me what remaining requirements your threads have that you are unable to achieve at the moment and I'll see if I can help with my

Re: [ck] Re: Threading issues? [ck-request@vds.kolivas.org: ck Digest, Vol 3, Issue 16]

2005-01-13 Thread Con Kolivas
Jeremy White wrote: Fyi, I spent a great deal of time this past fall exploring Wine scheduling issues, and I thought I would post what I learned. The most critical point is Wine was pretty badly broken; it simply had a number of flaws in how scheduling was done. First, the winmm timer, used by a

Re: [ck] Re: Threading issues? [ck-request@vds.kolivas.org: ck Digest, Vol 3, Issue 16]

2005-01-13 Thread Jeremy White
Well the scheduler is not going to be rewritten any time soon (trust me, I've tried :P). Tell me what remaining requirements your threads have that you are unable to achieve at the moment and I'll see if I can help with my understanding of the priority system as it is, in a generic way that

Re: [ck] Re: Threading issues? [ck-request@vds.kolivas.org: ck Digest, Vol 3, Issue 16]

2005-01-13 Thread Jeremy White
[snipping further proof that I don't understand a wide range of issues g] Fourth, based on your reply to my earlier email, I suspect I do not understand how time quanta are assigned. In fact, I had come to some conclusions at one point last fall, that I can no longer convince myself of (I was

Re: [ck] Re: Threading issues? [ck-request@vds.kolivas.org: ck Digest, Vol 3, Issue 16]

2005-01-12 Thread Shachar Shemesh
Jeremy White wrote: Fourth, the Wine server had an issue with the way it managed it request queues. To be honest, I don't understand this bug or the fix; all I know is that Mike McCormack figured this one out and posted a magic fix. This was, I believe, the primary reason that the wineserver

Re: [ck] Re: Threading issues? [ck-request@vds.kolivas.org: ck Digest, Vol 3, Issue 16]

2005-01-12 Thread Ove Kaaven
ons, 12,.01.2005 kl. 12.01 -0600, skrev Jeremy White: Second, we did not synchronize Wine message times with X11 message times properly. Fixing that resolved some issues with Photoshop (and given that Ove reworked that patch into WineX the same day I submitted it, I'd guess it fixed some

Re: [ck] Re: Threading issues? [ck-request@vds.kolivas.org: ck Digest, Vol 3, Issue 16]

2005-01-12 Thread André Goddard Rosa
On Wed, 12 Jan 2005 12:01:39 -0600, Jeremy White [EMAIL PROTECTED] wrote: Fyi, I spent a great deal of time this past fall exploring Wine scheduling issues, and I thought I would post what I learned. WoW, thanks for this deeper explanation of your findings. This modifications will be on

Re: [ck] Re: Threading issues? [ck-request@vds.kolivas.org: ck Digest, Vol 3, Issue 16]

2005-01-12 Thread Mike McCormack
Shachar Shemesh wrote: From what I understood from him, this had a lot to do with the epoll change I investigated some time back. I'll let Mike say whether that is so. There's a bug in the overlapped I/O code in file.c that means a normal file fd is added to the select() array and never

Re: [ck] Re: Threading issues? [ck-request@vds.kolivas.org: ck Digest, Vol 3, Issue 16]

2004-09-02 Thread Mike Hearn
I wouldn't trust it. An app just misbehaving can trash important parts of your filesystem. Suid root is just a bad idea, windows being linux aware or not. Just for mild amusement I think someone being funky got a windows virus to work under wine if I recall correctly. Sure. Don't have to be

Re: [ck] Re: Threading issues? [ck-request@vds.kolivas.org: ck Digest, Vol 3, Issue 16]

2004-09-02 Thread Robert Shearman
Mike Hearn wrote: I wouldn't trust it. An app just misbehaving can trash important parts of your filesystem. Suid root is just a bad idea, windows being linux aware or not. Just for mild amusement I think someone being funky got a windows virus to work under wine if I recall correctly. Anyway,

Re: [ck] Re: Threading issues? [ck-request@vds.kolivas.org: ck Digest, Vol 3, Issue 16]

2004-09-02 Thread Con Kolivas
Mike Hearn wrote: I wouldn't trust it. An app just misbehaving can trash important parts of your filesystem. Suid root is just a bad idea, windows being linux aware or not. Just for mild amusement I think someone being funky got a windows virus to work under wine if I recall correctly. Sure.

Re: [ck] Re: Threading issues? [ck-request@vds.kolivas.org: ck Digest, Vol 3, Issue 16]

2004-09-02 Thread Con Kolivas
Robert Shearman wrote: Mike Hearn wrote: I wouldn't trust it. An app just misbehaving can trash important parts of your filesystem. Suid root is just a bad idea, windows being linux aware or not. Just for mild amusement I think someone being funky got a windows virus to work under wine if I

Re: [ck] Re: Threading issues? [ck-request@vds.kolivas.org: ck Digest, Vol 3, Issue 16]

2004-09-02 Thread Con Kolivas
Mike Hearn wrote: Other solution is just to detect this and ask the user to rerun Wine as root. I don't think that'd be a big deal. But then that brings up the issue of users not being able to run wine merely because they don't have root access, i.e. users on a Linux system in a business

Re: [ck] Re: Threading issues? [ck-request@vds.kolivas.org: ck Digest, Vol 3, Issue 16]

2004-08-31 Thread Ove Kaaven
tir, 31.08.2004 kl. 05.23 skrev [EMAIL PROTECTED]: On Mon, Aug 30, 2004 at 08:52:04AM +0200, Ove Kaaven wrote: It's not. Linux only allows non-root processes to reduce its priority, not increase it, even for non-real-time priorities. Windows, however, allows it for non-real-time priorities.

Re: [ck] Re: Threading issues? [ck-request@vds.kolivas.org: ck Digest, Vol 3, Issue 16]

2004-08-31 Thread Mike Hearn
2) After you've reduced a thread or process's priority, it's not possible to elevate it to the original level again (without being root), so if a thread is set to low priority temporarily, it won't be possible to restore it to normal priority under Linux. Under Windows it's of course possible.

Re: [ck] Re: Threading issues? [ck-request@vds.kolivas.org: ck Digest, Vol 3, Issue 16]

2004-08-31 Thread michael
On Tue, Aug 31, 2004 at 10:54:46AM +0100, Mike Hearn wrote: Hmm, so I suppose the idea of getting all wine processes nice 19 and then doing something internally to manage win's prios when it gets the CPU is out of the question, right? It's an issue of performance vs. performance -- performance

Re: [ck] Re: Threading issues? [ck-request@vds.kolivas.org: ck Digest, Vol 3, Issue 16]

2004-08-31 Thread Mike Hearn
Other solution is just to detect this and ask the user to rerun Wine as root. I don't think that'd be a big deal. But then that brings up the issue of users not being able to run wine merely because they don't have root access, i.e. users on a Linux system in a business environment, or remote

Re: [ck] Re: Threading issues? [ck-request@vds.kolivas.org: ck Digest, Vol 3, Issue 16]

2004-08-30 Thread Roger Olson
Hopefully, the below information will prove useful regarding this discussion: I have an app (United Devices), a distributed computing type program that is reliant upon threading priorities and remote operation processes. Under Windows98 - me, the process tree looks as such: kernel32 Pri class

Re: [ck] Re: Threading issues? [ck-request@vds.kolivas.org: ck Digest, Vol 3, Issue 16]

2004-08-30 Thread michael
On Mon, Aug 30, 2004 at 08:52:04AM +0200, Ove Kaaven wrote: man, 30.08.2004 kl. 02.50 skrev [EMAIL PROTECTED]: Only root can do this under Linux. Maybe I sound naive, but would it be possible to get the highest priority supported by the user (root or otherwise) without going to root;

Re: [ck] Re: Threading issues? [ck-request@vds.kolivas.org: ck Digest, Vol 3, Issue 16]

2004-08-29 Thread Ove Kaaven
søn, 29.08.2004 kl. 04.13 skrev Michael Chang: I argued with myself about the logic in this for ages. The best I could come up with is - I don't know :| I'd need to know about windows scheduling (which I don't) Obviously, if Win apps have been written to expect this, there's

Re: [ck] Re: Threading issues? [ck-request@vds.kolivas.org: ck Digest, Vol 3, Issue 16]

2004-08-29 Thread Robert Shearman
Ove Kaaven wrote: søn, 29.08.2004 kl. 04.13 skrev Michael Chang: Also note that Windows allows a Win32 process to boost its own priority all the way to what they call real time. Only root can do this under Linux. I'm not sure if you need administrator privileges to do this under Windows

Re: [ck] Re: Threading issues? [ck-request@vds.kolivas.org: ck Digest, Vol 3, Issue 16]

2004-08-29 Thread Ove Kaaven
søn, 29.08.2004 kl. 11.43 skrev Robert Shearman: Ove Kaaven wrote: søn, 29.08.2004 kl. 04.13 skrev Michael Chang: Also note that Windows allows a Win32 process to boost its own priority all the way to what they call real time. Only root can do this under Linux. I'm not sure if you

Re: [ck] Re: Threading issues? [ck-request@vds.kolivas.org: ck Digest, Vol 3, Issue 16]

2004-08-29 Thread Con Kolivas
Ove Kaaven wrote: søn, 29.08.2004 kl. 04.13 skrev Michael Chang: I argued with myself about the logic in this for ages. The best I could come up with is - I don't know :| I'd need to know about windows scheduling (which I don't) Obviously, if Win apps have been written to expect this, there's

Re: [ck] Re: Threading issues? [ck-request@vds.kolivas.org: ck Digest, Vol 3, Issue 16]

2004-08-29 Thread Andreas Mohr
Hi, On Sun, Aug 29, 2004 at 10:07:18PM +1000, Con Kolivas wrote: Audio runs as a separate thread outside of wine potentially through who knows how many layers as a combination of both process and kernel context so that's already complicating the issue by having a separate thread. X does

Re: [ck] Re: Threading issues? [ck-request@vds.kolivas.org: ck Digest, Vol 3, Issue 16]

2004-08-29 Thread michael
On Sun, Aug 29, 2004 at 09:51:30AM +0200, Ove Kaaven wrote: s?n, 29.08.2004 kl. 04.13 skrev Michael Chang: I argued with myself about the logic in this for ages. The best I could come up with is - I don't know :| I'd need to know about windows scheduling (which I don't) Obviously,

Re: [ck] Re: Threading issues? [ck-request@vds.kolivas.org: ck Digest, Vol 3, Issue 16]

2004-08-28 Thread Con Kolivas
Mike Hearn wrote: Well, apparently we don't use sched_yield, so the problem must lie somewhere else. Maybe Con can help us out here? Alexandre says he doesn't know what the issue is either and somebody needs to investigate. I guess we do need to concern ourselves over the details :)

Re: [ck] Re: Threading issues? [ck-request@vds.kolivas.org: ck Digest, Vol 3, Issue 16]

2004-08-28 Thread Michael Chang
On Sat, Aug 28, 2004 at 01:54:19AM +1000, Con Kolivas wrote: Mike Hearn wrote: Well, apparently we don't use sched_yield, so the problem must lie somewhere else. Maybe Con can help us out here? Alexandre says he Interesting. Probably the most valuable information is that it seems to work

Re: [ck] Re: Threading issues? [ck-request@vds.kolivas.org: ck Digest, Vol 3, Issue 16]

2004-08-24 Thread Mike Hearn
Well, apparently we don't use sched_yield, so the problem must lie somewhere else. Maybe Con can help us out here? Alexandre says he doesn't know what the issue is either and somebody needs to investigate. I guess we do need to concern ourselves over the details :) Interesting. Probably the

[Fwd: Re: [ck] Re: Threading issues? [ck-request@vds.kolivas.org: ck Digest, Vol 3, Issue 16]]

2004-08-21 Thread Mike Hearn
Forwarded Message From: Con Kolivas [EMAIL PROTECTED] To: Mike Hearn [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [ck] Re: Threading issues? [EMAIL PROTECTED]: ck Digest, Vol 3, Issue 16] Date: Sat, 21 Aug 2004 10:39:21 +1000 Mailer: Mozilla Thunderbird 0.7.1