Re: [nephtes@openface.ca: [Xmame] Use of usleep() with -sleepidle]

2002-12-05 Thread Stijn Hoop
On Wed, Dec 04, 2002 at 11:34:30AM -0800, Terry Lambert wrote: Stijn Hoop wrote: On Wed, Dec 04, 2002 at 10:06:16AM -0800, Terry Lambert wrote: Actually, for the case you are talking about, your emulator should be using aggregate instead of discrete timeouts, and you would not be

Automount from a Solaris NIS/NFS server?

2002-12-05 Thread Tiarnan O'Corrain
Hello-- I'm running FreeBSD 4.7-STABLE and have managed (after some difficulty), to get it to bind to a Solaris NIS server we have here. All NIS users can log on now, but I can't figure out how to get home directories automounted when users do log in. I tried a couple of things on the web, an

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

2002-12-05 Thread Ian Dowse
In message [EMAIL PROTECTED], Josh Brooks writes: I run netstat -i fxp0 while _innside_ a jail: and then, I transfer a large file from the jail to some external host. The file I transferred out was 4.3 megabytes. Opkts only increased by 1733 ... which means 2481 bytes per packet ... but

Re: [nephtes@openface.ca: [Xmame] Use of usleep() with -sleepidle]

2002-12-05 Thread Terry Lambert
Stijn Hoop wrote: It's a flawed benchmark. I'd argue it isn't flawed for the measuring it is supposed to do - namely the overhead for the various _sleep functions. Care to tell me why it is flawed according to you? Because it measures the API one way, but the code uses it another. The

Re: [nephtes@openface.ca: [Xmame] Use of usleep() with -sleepidle]

2002-12-05 Thread Stijn Hoop
On Thu, Dec 05, 2002 at 01:58:24AM -0800, Terry Lambert wrote: Stijn Hoop wrote: I'd argue it isn't flawed for the measuring it is supposed to do - namely the overhead for the various _sleep functions. Care to tell me why it is flawed according to you? Because it measures the API one

Re: maxusers and random system freezes

2002-12-05 Thread Varshavchick Alexander
On Wed, 4 Dec 2002, Terry Lambert wrote: grep -B 7 KVA_ /sys/i386/conf/LINT -- Terry Thanks a lot Terry, and will you please correct me if I'm wrong, so I don't mess anything up on a production server? The kernel option in question is KVA_PAGES, correct? Because it's not defined in the

Re: maxusers and random system freezes

2002-12-05 Thread Terry Lambert
Varshavchick Alexander wrote: On Wed, 4 Dec 2002, Terry Lambert wrote: grep -B 7 KVA_ /sys/i386/conf/LINT Thanks a lot Terry, and will you please correct me if I'm wrong, so I don't mess anything up on a production server? The kernel option in question is KVA_PAGES, correct? Yes.

Re: [nephtes@openface.ca: [Xmame] Use of usleep() with -sleepidle]

2002-12-05 Thread Terry Lambert
Stijn Hoop wrote: Because it measures the API one way, but the code uses it another. The results you get are not predictive of the code that you are going to be running. But the code is going to use the _sleep functions as used in the benchmark -- to sleep for less than 10 ms (which

Re: maxusers and random system freezes

2002-12-05 Thread Varshavchick Alexander
On Thu, 5 Dec 2002, Terry Lambert wrote: ... Because it's not defined in the custom server's kernel then it's value default to 256 (FreeBSD 4.5-STABLE), which makes the KVA space to occupy 1G. Then if I make KVA_PAGES=512 (KVA space 2G), will it solve the problem for this particular

Re: maxusers and random system freezes

2002-12-05 Thread Terry Lambert
Varshavchick Alexander wrote: So: 2G might be OK, 3G would be more certain, given you are cranking some things up, in the config you posted, that make me think you will be eating more physical memory. Are you talking primarily about SHMMAXPGS=262144 option here? Then may be it'll be

Re: maxusers and random system freezes

2002-12-05 Thread David Schultz
Thus spake Terry Lambert [EMAIL PROTECTED]: As a rule, swap should be at least physical memory size + 64K on any system that you need to be able to get a system dump from, since it needs to dump physical RAM. If you are not worried about the machine falling over, then you can ignore that.

Re: maxusers and random system freezes

2002-12-05 Thread Varshavchick Alexander
On Thu, 5 Dec 2002, Terry Lambert wrote: IMO, KVA need to be more than half of physical memory. But I tend to use a lot of mbufs and mbuf clusters in products I work on lately (mostly networking stuff). If you don't tune kernel memory usage up, then you may be able to get away with 2G. A

Re: maxusers and random system freezes

2002-12-05 Thread David Schultz
Thus spake Varshavchick Alexander [EMAIL PROTECTED]: A question arises. The value 256 (1G KVA space) acts as a default for any system installation, not depending of real phisical memory size. So for any server with RAM less than 2G (which is a majority I presume) the KVA space occupies more

Re: maxusers and random system freezes

2002-12-05 Thread Jan Grant
On Thu, 5 Dec 2002, Varshavchick Alexander wrote: On Thu, 5 Dec 2002, Terry Lambert wrote: IMO, KVA need to be more than half of physical memory. But I tend to use a lot of mbufs and mbuf clusters in products I work on lately (mostly networking stuff). If you don't tune kernel memory

Re: maxusers and random system freezes

2002-12-05 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

nvclock0.6 port

2002-12-05 Thread Kenneth Culver
Hi, I'm working on porting nvclock (the nvidia video card overclocking util), and I've got it working now. However, I don't have it clean enough to submit a port yet, but I wanted people to test the binaries I have (for -STABLE, the gtk binary requires gtk2 and both binaries require

Re: Automount from a Solaris NIS/NFS server?

2002-12-05 Thread Lars Eggert
Tiarnan O'Corrain wrote: I'm running FreeBSD 4.7-STABLE and have managed (after some difficulty), to get it to bind to a Solaris NIS server we have here. All NIS users can log on now, but I can't figure out how to get home directories automounted when users do log in. I tried a couple of things

Re: maxusers and random system freezes

2002-12-05 Thread Gary Thorpe
--- Terry Lambert [EMAIL PROTECTED] wrote: Marc Recht wrote: Every now and this I hear people saying (mostly you :)) that some problems are KVA related or that the KVA must be increased. This makes me a bit curious, since I've never seen problems like that on Linux. It sounds for me,

Re: tcp_usrreq bug ??

2002-12-05 Thread Mike Silbersack
On Tue, 3 Dec 2002, Aniruddha Bohra wrote: Hello The following code snippet is from netinet/tcp_usrreq.c As in the comment (and presumably correct behaviour) a RST should be sent on close if the connection is embryonic. However, if (tp-t_state TCPS_ESTABLISHED) tp =

Re: Automount from a Solaris NIS/NFS server?

2002-12-05 Thread Thyer, Matthew
Tiarnan O'Corrain wrote: I'm running FreeBSD 4.7-STABLE and have managed (after some difficulty), to get it to bind to a Solaris NIS server we have here. All NIS users can log on now, but I can't figure out how to get home directories automounted when users do log in. I tried a

Re: maxusers and random system freezes

2002-12-05 Thread David Schultz
Thus spake Gary Thorpe [EMAIL PROTECTED]: As far as I know, Linux maps all the memory in the machine into the kernel address space, so there is never a problem of it running out while there is free memory (if you run out of it, there isn't any at all left in the machine). It also permits the

One GNU ASM syntax problem

2002-12-05 Thread kai ouyang
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 +m. I do not know the difference between + and =. why? Thank you!

Re: One GNU ASM syntax problem

2002-12-05 Thread kai ouyang
I do not know the difference between + and =. why? Thank you, I got it from 'info gcc'. It is the reason that Extended asm supports input-output or read-write operands. Use the constraint character `+' to indicate such an operand and list it with the output operands.. Best Regards Ouyang Kai

Re: One GNU ASM syntax problem

2002-12-05 Thread Peter Wemm
kai ouyang wrote: I do not know the difference between + and =. why? Thank you, I got it from 'info gcc'. It is the reason that Extended asm supports input-output or read-write operands. Use the constraint character `+' to indicate such an operand and list it with the output operands.. Also

Re: maxusers and random system freezes

2002-12-05 Thread Ronald G. Minnich
On Thu, 5 Dec 2002, David Schultz wrote: Linux used to do that, but AFAIK it doesn't anymore. Linux puts kvm at 0xc000, kernel at physical 0x10, etc. There was a time when you could address all of physical memory just by direct-mapping the PTEs, since base of 0xc000 means KVM

Re: maxusers and random system freezes

2002-12-05 Thread Peter Wemm
Ronald G. Minnich wrote: On Thu, 5 Dec 2002, David Schultz wrote: Linux used to do that, but AFAIK it doesn't anymore. Linux puts kvm at 0xc000, kernel at physical 0x10, etc. There was a time when you could address all of physical memory just by direct-mapping the PTEs, since

One Filesystem vnode operations declare problem.

2002-12-05 Thread kai ouyang
Hi, everybody, I have some questions about FS vnode operations. I found the filesystems always declare vnode operations by VNODEOP_SET more than once. For example: In DEVFS: VNODEOP_SET(devfs_vnodeop_opv_desc); VNODEOP_SET(devfs_specop_opv_desc); In FFS:

Re: One Filesystem vnode operations declare problem.

2002-12-05 Thread Peter Wemm
kai ouyang wrote: Hi, everybody, I have some questions about FS vnode operations. I found the filesystems always declare vnode operations by VNODEOP_SET more than once. For example: In DEVFS: VNODEOP_SET(devfs_vnodeop_opv_desc); VNODEOP_SET(devfs_specop_opv_desc); In FFS:

Re: maxusers and random system freezes

2002-12-05 Thread Nate Lawson
On Wed, 4 Dec 2002, Terry Lambert wrote: Marc Recht wrote: Every now and this I hear people saying (mostly you :)) that some problems are KVA related or that the KVA must be increased. This makes me a bit curious, since I've never seen problems like that on Linux. It sounds for me, the

Financial freedom in 24 days or less

2002-12-05 Thread harbeck
Hello, Would you like to make $100,000 a year online? If so, then this is your magical email to the kingdom of financial freedom. Think about how life would be WITHOUT an alarm clock waking you up every morning. Or sitting in traffic all morning. Are you frustrated that you belong to the