Re: [zfs-discuss] Surprise Thread Preemptions

2011-01-18 Thread Jim Mauro
Hi Kishore - If memory serves, the kernel uses the preemption mechanism when a thread uses its time quantum and thus must be forced to give up the CPU. If your "myprogram" threads are compute-bound, I would suspect they are being preempted by other myprogram threads of the same priority due to tim

Re: [zfs-discuss] Surprise Thread Preemptions

2011-01-18 Thread Phil Harman
Big subject! You haven't said what your 32 threads are doing, or how you gave them the same priority, or what scheduler class they are running in. However, you only have 24 VCPUs, and (I assume) 32 active threads, so Solaris will try to share resources evenly, and yes, it will preempt one of

[zfs-discuss] Surprise Thread Preemptions

2011-01-18 Thread Kishore Kumar Pusukuri
Hi, I would like to know about which threads will be preempted by which on my OpenSolaris machine. Therefore, I ran a multithreaded program "myprogram" with 32 threads on my 24-core Solaris machine. I make sure that each thread of my program has same priority (priority zero), so that we can red