Re: Context switching

2006-04-10 Thread Scott Long
nt process = 472 (bash) trap number = 12 panic: page fault -- Please, tell how correct context switching should be implemented? OS version: FreeBSD 5.4 tsleep and msleep are the appropriate ways to context switch. mi_switch is an implementation det

Context switching

2006-04-10 Thread Nickolas
472 (bash) trap number = 12 panic: page fault -- Please, tell how correct context switching should be implemented? OS version: FreeBSD 5.4 -- Best regards, Nickolas mailto:[EMAIL

Re: Weird context-switching performance [RESOLVED]

2004-01-31 Thread Milo Hyson
"Mad" Scientist CyberLife Labs, LLC On Sat, 2004-01-31 at 18:00, Milo Hyson wrote: > We don't have any other systems that are as similar as the two in the > test, however we did plot context-switching performance against CPU and > memory performance on several systems to s

Re: Weird context-switching performance

2004-01-31 Thread Milo Hyson
We don't have any other systems that are as similar as the two in the test, however we did plot context-switching performance against CPU and memory performance on several systems to see if anything jumped out. We found that beastie (the 2200+) is doing only about 26% of the task-swi

Re: Weird context-switching performance

2004-01-31 Thread Julian Elischer
On Sat, 31 Jan 2004, Milo Hyson wrote: > We've got these two very similar machines that are exhibiting > drastically different context-switching performance. The slower of the > two is actually task-switching at four times the rate of the other. > We've gone through seve

Weird context-switching performance

2004-01-31 Thread Milo Hyson
We've got these two very similar machines that are exhibiting drastically different context-switching performance. The slower of the two is actually task-switching at four times the rate of the other. We've gone through several benchmarks and are at a complete loss to explain it. We&#

Re: Help with understanding process state, context switching and

2003-02-07 Thread Hiten Pandya
On Fri, Feb 07, 2003 at 03:35:15PM +0200, Andrey Simonenko wrote the words in effect of: > On Thu, Feb 06, 2003 at 10:50:28AM -0800, Julian Elischer wrote: > In this case, as I understand, I need to modify some parts of the kernel. > What is IP ? I think Julian meant IPI (Inter-Processor Interrup

Re: Help with understanding process state, context switching and

2003-02-07 Thread Andrey Simonenko
On Thu, Feb 06, 2003 at 10:50:28AM -0800, Julian Elischer wrote: > > The only way it makes sense to talk about suspending > a process in user space from the kernel, would be in a MP system. in a > UP system, if you are in the kernel, then there is no process in user > space. (it trapped into the k

Re: Help with understanding process state, context switching and

2003-02-06 Thread Julian Elischer
signals In-Reply-To: <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII The only way it makes sense to talk about suspending a process in user space from the kernel, would be in a MP system. in a UP system, if you are in the kernel, th

Re: Help with understanding process state, context switching andsignals

2003-02-06 Thread Dag-Erling Smorgrav
Andrey Simonenko <[EMAIL PROTECTED]> writes: > In short: I need to stop (suspend) some process from the kernel, when > that process is in user mode and get information about its general-purpose > registers, its VM structures, etc. Have you looked at ptrace(2)? That's what gdb(1) uses. You can ge

Help with understanding process state, context switching and signals

2003-02-06 Thread Andrey Simonenko
it is possible to simply remove a process from the run queue if there is only one CPU, because 4.4BSD kernel is never preempted to run another process, while executing in a system call (until current executing process force voluntary context switching). But such approach does not work on the sys

RE: CPU context switching/load numbers

2002-07-31 Thread K . J . Koster
Dear Jason, > > I have an inconsistency that I am trying to explain. When I > do a "w" command > on the box, I see this: > > 7:31PM up 74 days, 39 mins, 1 user, load averages: 1.12, 0.94, 0.93 > > This says I have a load of 1.12 over the past minute, or, for every > available CPU interval,

RE: CPU context switching/load numbers

2002-05-03 Thread Jason Borkowsky
> >> > Greetings! I have a FreeBSD-4.5 box that is a specialized server box. It > >> > doesn't run any user processes and only runs a bunch of small, server > >> > efficient processes. > >> > > >> > I have an inconsistency that I am trying to explain. When I do a "w" > >> > command > >> > on the

RE: CPU context switching/load numbers

2002-05-03 Thread John Baldwin
On 03-May-2002 Jason Borkowsky wrote: > >> > Greetings! I have a FreeBSD-4.5 box that is a specialized server box. It >> > doesn't run any user processes and only runs a bunch of small, server >> > efficient processes. >> > >> > I have an inconsistency that I am trying to explain. When I do a "w

RE: CPU context switching/load numbers

2002-05-02 Thread Jason Borkowsky
> > Greetings! I have a FreeBSD-4.5 box that is a specialized server box. It > > doesn't run any user processes and only runs a bunch of small, server > > efficient processes. > > > > I have an inconsistency that I am trying to explain. When I do a "w" command > > on the box, I see this: > > > >

Re: CPU context switching/load numbers

2002-05-02 Thread Ian Dowse
In message <[EMAIL PROTECTED]>, Jason Borkowsky writes: >1. How is it my load average is over 1, but my single CPU is 85% idle? This is quite possible due to process synchronisation, since there is no direct relationship between the load average and the percentage of time that the CPU is idle. T

RE: CPU context switching/load numbers

2002-05-02 Thread John Baldwin
On 02-May-2002 Jason Borkowsky wrote: > > Greetings! I have a FreeBSD-4.5 box that is a specialized server box. It > doesn't run any user processes and only runs a bunch of small, server > efficient processes. > > I have an inconsistency that I am trying to explain. When I do a "w" command > on

CPU context switching/load numbers

2002-05-02 Thread Jason Borkowsky
Greetings! I have a FreeBSD-4.5 box that is a specialized server box. It doesn't run any user processes and only runs a bunch of small, server efficient processes. I have an inconsistency that I am trying to explain. When I do a "w" command on the box, I see this: 7:31PM up 74 days, 39 mins,

Re: determining context switching?

2002-03-29 Thread Dan Nelson
In the last episode (Mar 29), Russell Francis said: > I was wondering if there is a way to determine the context switching > rate? > > In /usr/include/sys/vmmeter.h the structure > > struct vmmeter { > u_int v_swtch; /* context switches */ > ... &g

Re: determining context switching?

2002-03-29 Thread Hiten Pandya
--- Russell Francis <[EMAIL PROTECTED]> wrote: > I was wondering if there is a way to determine the context switching rate? > > In /usr/include/sys/vmmeter.h the structure > > struct vmmeter { > u_int v_swtch; /* context switches */ > . >

determining context switching?

2002-03-29 Thread Russell Francis
I was wondering if there is a way to determine the context switching rate? In /usr/include/sys/vmmeter.h the structure struct vmmeter { u_int v_swtch; /* context switches */ . . . } looks like what I want but I can't find a function which returns

Re: Processes, context switching in kernel...

2000-06-08 Thread Luoqi Chen
> All, > > I'm working on the emulator for OSF1/Mach for FreeBSD/Alpha, and I need > some help understanding how to do some things in the FreeBSD kernel--if anyone > can answer any of the following questions, it would be greatly appreciated: > > 1) How do you create a process in the kernel

Processes, context switching in kernel...

2000-06-08 Thread Andrew M . Miklic
All, I'm working on the emulator for OSF1/Mach for FreeBSD/Alpha, and I need some help understanding how to do some things in the FreeBSD kernel--if anyone can answer any of the following questions, it would be greatly appreciated: 1) How do you create a process in the kernel (i.e., you