sched_4BSD

2005-02-28 Thread Ashwin Chandra
I wanted to get some clarification about the 4BSD scheduler. I am sort of confused why there are two forms of scheduling, one done between processes and another done between threads in a process. The priority calculations seem to be done only with processes and I assume that the global run queue

Re: sched_4BSD

2005-02-28 Thread Julian Elischer
Ashwin Chandra wrote: I wanted to get some clarification about the 4BSD scheduler. I am sort of confused why there are two forms of scheduling, one done between processes and another done between threads in a process. The priority calculations seem to be done only with processes and I assume that t

Re: Priority Increasing

2005-02-28 Thread Mike Silbersack
On Sun, 27 Feb 2005, Ashwin Chandra wrote: Hi all, Ive been trying to counter the malicious effects of a forkbomb by setting the forkbomb parent and children to a PRI_MAX priority, although this is not having any effect on the system load. Basically in my code when I know which process is acting

Re: RFC: backporting GEOM to the 4.x branch

2005-02-28 Thread Roland Dowdeswell
On 1109549715 seconds since the Beginning of the UNIX epoch Maxim Sobolev wrote: > >Well, I think that this is quite minor item, since GBDE doesn't govern >transformation of the passphrase into the actual key, so that another >scheme more bullet-prof against dictionary attacks (PKCS#5 or any oth

about the source of loader

2005-02-28 Thread 刘 扬
Dear All: I have some questions of source of loader 1.Where is the source of the "ls" command? 2.How it mount the ufs boot partition as "/" when it start,Is it a function or something else?. Any answers are appreciated:) _ 与联机的朋友进行交流

Re: Fw: Priority Increasing

2005-02-28 Thread Coleman Kane
On Sun, 27 Feb 2005 20:56:03 -0800, Ashwin Chandra <[EMAIL PROTECTED]> wrote: > The forkbomb program I wrote is just one parent that forks 750 or so > children that each malloc around 40 MB's of memory and do a mem traversal > through it. The children do not fork. I see the overhead of forking co

Re: function prototype of fdrop() and fdrop_locked() in kern_descrip.c

2005-02-28 Thread David Schultz
On Sat, Feb 26, 2005, Yan Yu wrote: > HI, all, > I have a Q on the input parameter of fdrop() and fdrop_locked() in > kern/kern_descrip.c. > > i am curious about the design choice of their input parameter. > currently, it is defined as > > A) fdrop( struc

Re: Priority Increasing

2005-02-28 Thread Roland Dowdeswell
On 1109583001 seconds since the Beginning of the UNIX epoch Mike Silbersack wrote: > >If you're sure that the program is a forkbomb, why not modify the forkbomb >protection that is already present in kern_fork.c: > >tsleep(&forksleep, PUSER, "fork", hz / 2); > >What it does at present is whenever

clock.h

2005-02-28 Thread Kathy Quinlan
I have this: #include In program I use this: DELAY(1000); I get this: undefined referance to 'DELAY' when I compile the program with GCC with flags -Wall -g -o com main.c ANY ideas ?? I have looked in the relevent header and it seems to be there Regards, Kat. -- No virus found in this outgoing mes

Re: about the source of loader

2005-02-28 Thread Dan Nelson
In the last episode (Feb 28), ?? ?? said: > I have some questions of source of loader > > 1. Where is the source of the "ls" command? /sys/boot/common/ls.c > 2. How it mount the ufs boot partition as "/" when it start,Is it a >function or something else?. The loader can't mount anything, si

Re: clock.h

2005-02-28 Thread Peter Pentchev
On Mon, Feb 28, 2005 at 11:39:52PM +0800, Kathy Quinlan wrote: > I have this: > > #include > > In program I use this: > > DELAY(1000); > > I get this: > > undefined referance to 'DELAY' > > when I compile the program with GCC with flags -Wall -g -o com main.c > > ANY ideas ?? > > I have lo

Re: clock.h

2005-02-28 Thread Dan Nelson
In the last episode (Feb 28), Kathy Quinlan said: > I have this: > > #include > > In program I use this: > > DELAY(1000); > > I get this: > > undefined referance to 'DELAY' > > when I compile the program with GCC with flags -Wall -g -o com main.c DELAY is a kernel function. In user process

Re: clock.h

2005-02-28 Thread Kathy Quinlan
Dan Nelson wrote: In the last episode (Feb 28), Kathy Quinlan said: I have this: #include In program I use this: DELAY(1000); I get this: undefined referance to 'DELAY' when I compile the program with GCC with flags -Wall -g -o com main.c DELAY is a kernel function. In user processes, just use s

Re: clock.h

2005-02-28 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Kathy Quinlan <[EMAIL PROTECTED]> writes: : I have this: : : #include : : In program I use this: : : DELAY(1000); : : I get this: : : undefined referance to 'DELAY' : : when I compile the program with GCC with flags -Wall -g -o com main.c : : ANY

Dynamically Linked Library Problem (maybe)

2005-02-28 Thread Cole
Hey. I have a Freebsd server running freebsd-4.9-stable. I cvsupped the ntop src last week for 3.1.1. I then had no problems what so ever building ntop, except for the xml plugin saying it was not built, cause it cannot find xmlversion.h, even though I have libxml installed, and specified the ri

TDF_NEEDRESCHED when extending pcb on x86

2005-02-28 Thread Denis Ustimenko
Hi, there! I've tried s3switch utility from ports on 5.2.1 and found that i386_set_ioperm syscall doesn't work properly. The next code illustrates the problem. It will get SIGBUS with very high probability. #include #include #include int main() { if ( i386_set_ioperm( 0x80, 1, 1)) {

Re: Driver Update Disk discussion

2005-02-28 Thread John Baldwin
On Friday 25 February 2005 04:39 am, Peter Jeremy wrote: > On Thu, 2005-Feb-24 17:59:19 -0700, Scott Long wrote: > >- kernel option support. How do we support vendor modules in a kernel > >that might be compiled with PAE (rather common these days), SMP, MAC, > >etc. The loader and /boot infrastru

Re: TDF_NEEDRESCHED when extending pcb on x86

2005-02-28 Thread Peter Wemm
On Monday 28 February 2005 02:57 pm, Denis Ustimenko wrote: > Hi, there! > > I've tried s3switch utility from ports on 5.2.1 and found that > i386_set_ioperm syscall doesn't work properly. The next code illustrates > the problem. It will get SIGBUS with very high probability. > > #include > #inclu

Re: RFC: backporting GEOM to the 4.x branch

2005-02-28 Thread Thomas Sparrevohn
On Monday 28 February 2005 00:15, Maxim Sobolev wrote: > Roland Dowdeswell wrote: > > [ cc'ing [EMAIL PROTECTED], because there has been talk > > of GBDE there in the past.] > > So what? If the write fails in the middle, reading sector will just > produce garbage. I don't think that it's differen

Help about debugging FreeBSD kernel core dump file

2005-02-28 Thread River
Hi, Everyone: How can I debug the core dump file created by kernel panic? I try to use "gdb -core vmcore.0" (vmcore.0 is 4G file because I have 4G memory) and the gdb said: this is not a vaild core file. Why? Thanks ___ freebsd-hackers@freebsd.org

Re: Help about debugging FreeBSD kernel core dump file

2005-02-28 Thread Greg 'groggy' Lehey
[Format recovered--see http://www.lemis.com/email/email-format.html] Single line message. On Tuesday, 1 March 2005 at 11:41:08 +0800, River wrote: > Hi, Everyone: > > How can I debug the core dump file created by kernel panic? I try to > use "gdb -core vmcore.0" (vmcore.0 is 4G file because I ha

Re: Help about debugging FreeBSD kernel core dump file

2005-02-28 Thread Kris Kennaway
On Tue, Mar 01, 2005 at 11:41:08AM +0800, River wrote: > Hi, Everyone: > > > How can I debug the core dump file created by kernel panic? I try to > use "gdb -core vmcore.0" (vmcore.0 is 4G file because I have 4G > memory) and the gdb said: this is not a vaild core file. Why? Read the chapter on k

Re: Help about debugging FreeBSD kernel core dump file

2005-02-28 Thread Joseph Koshy
> How can I debug the core dump file created by kernel panic? I try to use "gdb > -core vmcore.0" (vmcore.0 is 4G file because I have 4G memory) and the gdb > said: this is not a vaild core file. Why? AFAIK you have to use 'gdb -k' (or 'kgdb') to use GDB's kernel debugging mode. -- FreeBSD Vo

Re: RFC: backporting GEOM to the 4.x branch

2005-02-28 Thread Roland Dowdeswell
On 1109635700 seconds since the Beginning of the UNIX epoch Thomas Sparrevohn wrote: > >I could be wrong but I would assume that if it is correctly handled within >softupdates there should be no need for journalling - e.g. If both >transactions are not completed the writes are ignored This does