Re: Critical Sections for userland.

2007-10-04 Thread Dag-Erling Smørgrav
Alfred Perlstein [EMAIL PROTECTED] writes: Hi guys, we need critical sections for userland here. This is basically to avoid a process being switched out while holding a user level spinlock. Yeah, great idea, cooperative multitasking is the new black! DES -- Dag-Erling Smørgrav - [EMAIL

Re: Critical Sections for userland.

2007-10-04 Thread Dag-Erling Smørgrav
Alfred Perlstein [EMAIL PROTECTED] writes: Do you have: a) Evidence or a paper to prove that this is a bad idea? I need evidence or a paper to prove that it is a bad idea to allow a userland process to hold the CPU indefinitely? b) A helpful suggestion? Why don't you tell us what you're

Re: Critical Sections for userland.

2007-10-04 Thread Alfred Perlstein
* Dag-Erling Sm??rgrav [EMAIL PROTECTED] [071004 02:05] wrote: Alfred Perlstein [EMAIL PROTECTED] writes: Hi guys, we need critical sections for userland here. This is basically to avoid a process being switched out while holding a user level spinlock. Yeah, great idea, cooperative

Re: Critical Sections for userland.

2007-10-04 Thread Alfred Perlstein
* Dag-Erling Sm??rgrav [EMAIL PROTECTED] [071004 03:01] wrote: Alfred Perlstein [EMAIL PROTECTED] writes: Do you have: a) Evidence or a paper to prove that this is a bad idea? I need evidence or a paper to prove that it is a bad idea to allow a userland process to hold the CPU

Re: Critical Sections for userland.

2007-10-04 Thread Dag-Erling Smørgrav
Alfred Perlstein [EMAIL PROTECTED] writes: It's not worth my time to engage someone with your mind set, you posses neither the technical nor interpersonal skill to be useful to me. This could be the beginning of a wonderful friendship... For context see my replies in this thread to Kip Macy

Re: Critical Sections for userland.

2007-10-04 Thread Wilko Bulte
Quoting Alfred Perlstein, who wrote on Thu, Oct 04, 2007 at 03:19:02AM -0700 .. * Dag-Erling Sm??rgrav [EMAIL PROTECTED] [071004 03:01] wrote: Alfred Perlstein [EMAIL PROTECTED] writes: Do you have: a) Evidence or a paper to prove that this is a bad idea? I need evidence or a

Re: Critical Sections for userland.

2007-10-04 Thread Daniel Eischen
On Thu, 4 Oct 2007, Alfred Perlstein wrote: * Dag-Erling Sm??rgrav [EMAIL PROTECTED] [071004 03:01] wrote: Alfred Perlstein [EMAIL PROTECTED] writes: Do you have: a) Evidence or a paper to prove that this is a bad idea? I need evidence or a paper to prove that it is a bad idea to allow a

Re: Critical Sections for userland.

2007-10-04 Thread Alfred Perlstein
* Wilko Bulte [EMAIL PROTECTED] [071004 04:15] wrote: Quoting Alfred Perlstein, who wrote on Thu, Oct 04, 2007 at 03:19:02AM -0700 .. * Dag-Erling Sm??rgrav [EMAIL PROTECTED] [071004 03:01] wrote: Alfred Perlstein [EMAIL PROTECTED] writes: Do you have: a) Evidence or a paper to

Re: Critical Sections for userland.

2007-10-04 Thread Alfred Perlstein
* Daniel Eischen [EMAIL PROTECTED] [071004 06:05] wrote: His point about telling us what you're really doing, so we might off other ways to do it is valid. We don't know why you are using homegrown user-level spinlocks instead of pthread mutexes. Priority ceiling mutexes and running in

Re: Critical Sections for userland.

2007-10-04 Thread Alfred Perlstein
* Dag-Erling Sm??rgrav [EMAIL PROTECTED] [071004 03:28] wrote: Alfred Perlstein [EMAIL PROTECTED] writes: It's not worth my time to engage someone with your mind set, you posses neither the technical nor interpersonal skill to be useful to me. This could be the beginning of a wonderful

Re: Critical Sections for userland.

2007-10-04 Thread Daniel Eischen
On Thu, 4 Oct 2007, Alfred Perlstein wrote: * Daniel Eischen [EMAIL PROTECTED] [071004 06:05] wrote: His point about telling us what you're really doing, so we might off other ways to do it is valid. We don't know why you are using homegrown user-level spinlocks instead of pthread mutexes.

Re: Critical Sections for userland.

2007-10-04 Thread Attilio Rao
2007/10/3, Alfred Perlstein [EMAIL PROTECTED]: * Daniel Eischen [EMAIL PROTECTED] [071002 19:46] wrote: On Tue, 2 Oct 2007, Alfred Perlstein wrote: Hi guys, we need critical sections for userland here. This is basically to avoid a process being switched out while holding a user level

Re: Critical Sections for userland.

2007-10-04 Thread Julian Elischer
Attilio Rao wrote: 2007/10/3, Alfred Perlstein [EMAIL PROTECTED]: * Daniel Eischen [EMAIL PROTECTED] [071002 19:46] wrote: On Tue, 2 Oct 2007, Alfred Perlstein wrote: Hi guys, we need critical sections for userland here. This is basically to avoid a process being switched out while holding

Re: Critical Sections for userland.

2007-10-04 Thread Marcel Moolenaar
On Oct 4, 2007, at 10:43 AM, Daniel Eischen wrote: On Thu, 4 Oct 2007, Alfred Perlstein wrote: * Daniel Eischen [EMAIL PROTECTED] [071004 06:05] wrote: His point about telling us what you're really doing, so we might off other ways to do it is valid. We don't know why you are using

Critical Sections for userland.

2007-10-02 Thread Alfred Perlstein
Hi guys, we need critical sections for userland here. This is basically to avoid a process being switched out while holding a user level spinlock. The way I envisioned doing this was as follows: 1) syscall that sets a pointer in the struct thread. 2) user mlocks that page. 3) when scheduler

Re: Critical Sections for userland.

2007-10-02 Thread Daniel Eischen
On Tue, 2 Oct 2007, Alfred Perlstein wrote: Hi guys, we need critical sections for userland here. This is basically to avoid a process being switched out while holding a user level spinlock. Setting the scheduling class to real-time and using SCHED_FIFO and adjusting the thread priority

Re: Critical Sections for userland.

2007-10-02 Thread Alfred Perlstein
* Daniel Eischen [EMAIL PROTECTED] [071002 19:46] wrote: On Tue, 2 Oct 2007, Alfred Perlstein wrote: Hi guys, we need critical sections for userland here. This is basically to avoid a process being switched out while holding a user level spinlock. Setting the scheduling class to real

Re: Critical Sections for userland.

2007-10-02 Thread Daniel Eischen
On Tue, 2 Oct 2007, Alfred Perlstein wrote: * Daniel Eischen [EMAIL PROTECTED] [071002 19:46] wrote: On Tue, 2 Oct 2007, Alfred Perlstein wrote: Hi guys, we need critical sections for userland here. This is basically to avoid a process being switched out while holding a user level spinlock

Re: Critical Sections for userland.

2007-10-02 Thread Alfred Perlstein
* Kip Macy [EMAIL PROTECTED] [071002 20:00] wrote: On 10/2/07, Alfred Perlstein [EMAIL PROTECTED] wrote: * Daniel Eischen [EMAIL PROTECTED] [071002 19:46] wrote: On Tue, 2 Oct 2007, Alfred Perlstein wrote: Hi guys, we need critical sections for userland here. This is basically

Re: Critical Sections for userland.

2007-10-02 Thread Alfred Perlstein
* Daniel Eischen [EMAIL PROTECTED] [071002 20:02] wrote: On Tue, 2 Oct 2007, Alfred Perlstein wrote: * Daniel Eischen [EMAIL PROTECTED] [071002 19:46] wrote: On Tue, 2 Oct 2007, Alfred Perlstein wrote: Hi guys, we need critical sections for userland here. This is basically to avoid

Re: Critical Sections for userland.

2007-10-02 Thread Daniel Eischen
On Tue, 2 Oct 2007, Alfred Perlstein wrote: * Daniel Eischen [EMAIL PROTECTED] [071002 20:02] wrote: On Tue, 2 Oct 2007, Alfred Perlstein wrote: * Daniel Eischen [EMAIL PROTECTED] [071002 19:46] wrote: On Tue, 2 Oct 2007, Alfred Perlstein wrote: Hi guys, we need critical sections

Re: Critical Sections for userland.

2007-10-02 Thread Alfred Perlstein
Perlstein wrote: Hi guys, we need critical sections for userland here. This is basically to avoid a process being switched out while holding a user level spinlock. Setting the scheduling class to real-time and using SCHED_FIFO and adjusting the thread priority around the lock doesn't work

Re: Critical Sections for userland.

2007-10-02 Thread Kip Macy
Perlstein wrote: Hi guys, we need critical sections for userland here. This is basically to avoid a process being switched out while holding a user level spinlock. Setting the scheduling class to real-time and using SCHED_FIFO and adjusting the thread priority around the lock doesn't work

Re: Critical Sections for userland.

2007-10-02 Thread Kip Macy
On 10/2/07, Alfred Perlstein [EMAIL PROTECTED] wrote: * Daniel Eischen [EMAIL PROTECTED] [071002 19:46] wrote: On Tue, 2 Oct 2007, Alfred Perlstein wrote: Hi guys, we need critical sections for userland here. This is basically to avoid a process being switched out while holding

Re: Critical Sections for userland.

2007-10-02 Thread Alfred Perlstein
* Kip Macy [EMAIL PROTECTED] [071002 20:24] wrote: See /sys/priority.h realtime is right below ithreads in terms of priority. One of the big motivations for gang scheduling and part of the reason why SMP guests often perform poorly is that apps / VMs don't scale well if they're descheduled