Re: strange netstat output inside 4.x jails...

2002-12-06 Thread Josh Brooks
I waited a few seconds, and I also tried a few times after that and looked, and it did not go up to account for the transfer. This is presuming that my math in my post is correct, but I think it is. My conclusion has become that somehow transfer numbers for packet counts don't show up correctly

Re: One Filesystem vnode operations declare problem.

2002-12-06 Thread ouyang kai
From: Peter Wemm <[EMAIL PROTECTED]> Undefined. The bubble sort that orders these could leave it in any state. Woo. thank you. In mi_startup(), the kernel will register those device/modules, and excute the 'func' declared by SYSINIT, right? I think the kernel will have not real "/" filesystem un

Re: One Filesystem vnode operations declare problem.

2002-12-06 Thread Peter Wemm
"ouyang kai" wrote: > >From: Peter Wemm <[EMAIL PROTECTED]> > >The name of the macro is a little strange, that is more of a historical > >relic where we used to declare these things in something called a 'linker > >set'. These days it is handled by a SYSINIT() function that registers the > >vnode

Re: accept()

2002-12-06 Thread dslb
On 2002.12.06 20:55 Mike Hunter wrote: > You have to use a variable because accept may write to it (?). > > From the man page: > > The addrlen is a value-result parameter; it should initially contain > the > amount of space pointed to by addr; on return it will contain the > actual > length (in by

Re: accept()

2002-12-06 Thread Mike Hunter
On Dec 06, "[EMAIL PROTECTED]" wrote: > Hi all > > When using accept() with: > int sd_client = accept(socket_descriptor, (sockaddr *)&client, > (socklen_t *) sizeof(client)); > > Accept return -1 and 14 in errno, but when I use: > > socklen_t alen; > int sd_client = accept(socket_descriptor, (s

accept()

2002-12-06 Thread dslb
Hi all When using accept() with: int sd_client = accept(socket_descriptor, (sockaddr *)&client, (socklen_t *) sizeof(client)); Accept return -1 and 14 in errno, but when I use: socklen_t alen; int sd_client = accept(socket_descriptor, (sockaddr *)&client, &alen); It works fine. Why can't you us

Re: nsswitch functionality

2002-12-06 Thread Paul Khavkine
There's been a few discussions in the past about that in the past. I actually looked at starting to write some code but ran into a couple things and also lack of time. I would be happy to donate some time (not much for now) if there woudl be a couple people with the knowledge of the subject to hel

Re: nsswitch functionality

2002-12-06 Thread Robert Watson
On Fri, 6 Dec 2002, Octavian Hornoiu wrote: > I have been doing a lot of research into integrating FreeBSD into my > company's network recently and we have been converting our servers to > FreeBSD gradually but one of the hurdles to overcome is the login issue. > In order to make logins seamless

bootp_subr.c hacked!

2002-12-06 Thread omestre
Hi... Some days ago, i have posted a message, for help in the configuration of a diskless machines. About how could i to configure ip, mask, net, root filesystem, and file handle, without dynamic protocols (bootp/pxe)... i did not receive any message... Now i did some adaptations in the bootp_

Re: nsswitch functionality

2002-12-06 Thread Octavian Hornoiu
Quoting Brooks Davis <[EMAIL PROTECTED]>: > On Fri, Dec 06, 2002 at 09:31:00AM -0800, Octavian Hornoiu wrote: > > Winbind requires nsswitch to work properly and I know that FreeBSD > > does not support it currently but why is this not a top priority at > > the moment? I would much rather have nss

Re: nsswitch functionality

2002-12-06 Thread Gordon Tetlow
On Fri, Dec 06, 2002 at 09:31:00AM -0800, Octavian Hornoiu wrote: > I have been doing a lot of research into integrating FreeBSD into my company's > network recently and we have been converting our servers to FreeBSD gradually > but one of the hurdles to overcome is the login issue. In order to

Re: nsswitch functionality

2002-12-06 Thread Brooks Davis
On Fri, Dec 06, 2002 at 09:31:00AM -0800, Octavian Hornoiu wrote: > Winbind requires nsswitch to work properly and I know that FreeBSD > does not support it currently but why is this not a top priority at > the moment? I would much rather have nsswitch working than some of > the minor features int

RE: One GNU ASM syntax problem

2002-12-06 Thread John Baldwin
On 06-Dec-2002 kai ouyang wrote: > Hi,everybody, > > I have one question about GNU ASM syntax. > As I know: > __asm __volatile( >"instructions" >:output >:input >:exception); > In Linux, the restriction of output are "=m","=a", etc. > But I found in FreeBSD, there are "=m" and

nsswitch functionality

2002-12-06 Thread Octavian Hornoiu
I have been doing a lot of research into integrating FreeBSD into my company's network recently and we have been converting our servers to FreeBSD gradually but one of the hurdles to overcome is the login issue. In order to make logins seamless across our network I **MUST** use NT logins which

Re: maxusers and random system freezes

2002-12-06 Thread David Schultz
Thus spake Gary Thorpe <[EMAIL PROTECTED]>: > I have a question: does the entire KVA *have* to be mapped into the > each process's address space? How much of the KVA does a process need > to communicate with the kernel effectively? No, it doesn't have to be that way. An alternative organization i

Re: umass driver speed

2002-12-06 Thread Josef Karthauser
On Wed, Nov 27, 2002 at 03:49:59PM +0100, Nick Hibma wrote: > > This is the debug output of > > #dd if=/dev/da0s1c of=/tmp/data bs=65536 count=3 > > > > umass0:0:0:0:XPT_SCSI_IO: cmd: 0x1e, flags: 0xc0, 6b cmd/0b data/32b sense > > umass0:0:0:0:XPT_SCSI_IO: cmd: 0x28, flags: 0x40, 10b cmd/512b data

Re: umass driver speed

2002-12-06 Thread Josef Karthauser
On Thu, Nov 28, 2002 at 01:11:16AM +0100, Tomas Pluskal wrote: > > On Wed, 27 Nov 2002, Nick Hibma wrote: > > > [pats Joe on the head] Well done! > > What do you mean by this ? > It's an indirect comment to me :) [I did a huge amount of merging from NetBSD to FreeBSD earlier in the year, but o

Re: maxusers and random system freezes

2002-12-06 Thread Gary Thorpe
--- David Schultz <[EMAIL PROTECTED]> wrote: > Thus spake Varshavchick Alexander <[EMAIL PROTECTED]>: > > Well, now I made KVA space 2G, we'll see later on if it helps to > get rid > > of the sudden system halts, but for some reason a side-effect has > > appeared: pthread_create function returns E

Re: maxusers and random system freezes

2002-12-06 Thread Varshavchick Alexander
On Fri, 6 Dec 2002, David Schultz wrote: ... > > Yes this makes sense, however this call to pthread_create didn't specify > > any special addresses for the new thread. The pthread_create was called > > with the NULL attribute which means that the system defaults were being > > used. Something in t

Kernel process(thread) in SMP system

2002-12-06 Thread Kyunghwan Kim
I've heard that kernel of RELENG_4 branch is single-threaded, but can hardly check out if kernel process(thread) like pagedaemon can run on other cpu concurrently when another cpu is processing an network interrupt. Using Kernel process(thread) for cpu-bound job in SMP environment will be benefici

Yepp Explorer for FreeBSD

2002-12-06 Thread Karo Salminen
Greetings, happened earlier: I asked if somebody could port Yepp Explorer (it's for MP3-players by Yepp) for FreeBSD (there is one for Linux) as my skills aren't enough. However, I decided to try it out. I managed to do it this far: http://www.cc.jyu.fi/~kaeesalm/yepp-0.0.4-FreeBSD.tar.gz I can

Re: maxusers and random system freezes

2002-12-06 Thread David Schultz
Thus spake Varshavchick Alexander <[EMAIL PROTECTED]>: > On Fri, 6 Dec 2002, David Schultz wrote: > > > Thus spake Varshavchick Alexander <[EMAIL PROTECTED]>: > > > Well, now I made KVA space 2G, we'll see later on if it helps to get rid > > > of the sudden system halts, but for some reason a side

Re: maxusers and random system freezes

2002-12-06 Thread Varshavchick Alexander
On Fri, 6 Dec 2002, David Schultz wrote: > Thus spake Varshavchick Alexander <[EMAIL PROTECTED]>: > > Well, now I made KVA space 2G, we'll see later on if it helps to get rid > > of the sudden system halts, but for some reason a side-effect has > > appeared: pthread_create function returns EAGAIN

Re: maxusers and random system freezes

2002-12-06 Thread David Schultz
Thus spake Varshavchick Alexander <[EMAIL PROTECTED]>: > Well, now I made KVA space 2G, we'll see later on if it helps to get rid > of the sudden system halts, but for some reason a side-effect has > appeared: pthread_create function returns EAGAIN error now, so I had to > recompile the software us

Re: maxusers and random system freezes

2002-12-06 Thread Varshavchick Alexander
On Fri, 6 Dec 2002, David Schultz wrote: > > vm.zone_kmem_pages: 5413 > > vm.zone_kmem_kvaspace: 218808320 > > vm.kvm_size: 1065353216 > > vm.kvm_free: 58720256 > > > > does it mean that total KVA reservation is 1065353216 bytes (1G) and > > almost all of it is really mapped to physical memory bec

Re: maxusers and random system freezes

2002-12-06 Thread David Schultz
Thus spake Varshavchick Alexander <[EMAIL PROTECTED]>: > Thank you David for such an excellent explanation. So if sysctl reports > > vm.zone_kmem_pages: 5413 > vm.zone_kmem_kvaspace: 218808320 > vm.kvm_size: 1065353216 > vm.kvm_free: 58720256 > > does it mean that total KVA reservation is 1065353

Re: maxusers and random system freezes

2002-12-06 Thread Varshavchick Alexander
On Thu, 5 Dec 2002, Terry Lambert wrote: ... > > Are you talking primarily about SHMMAXPGS=262144 option here? Then may be > > it'll be oevrall better to reduce it and make KVA space 2G, to leave more > > room for user address space? > > That's the one I was referring to, yes, but you didn't post

Re: maxusers and random system freezes

2002-12-06 Thread Varshavchick Alexander
On Thu, 5 Dec 2002, David Schultz wrote: > In FreeBSD, each process has a unique 4G virtual address space > associated with it. Not every virtual page in every address space > has to be associated with real memory. Most pages can be pushed > out to disk when there isn't enough free RAM, and una

Re: One Filesystem vnode operations declare problem.

2002-12-06 Thread ouyang kai
From: Peter Wemm <[EMAIL PROTECTED]> The name of the macro is a little strange, that is more of a historical relic where we used to declare these things in something called a 'linker set'. These days it is handled by a SYSINIT() function that registers the vnode ops. I know in mi_startup(),the ke