Re: jail: multiple ip's

2002-12-04 Thread Henk Wevers
Just take a look at http://garage.freebsd.pl Works fine with 4.7RELEASE Henk Terry Lambert wrote: Mike Ghunt wrote: Has anyone hacked the jail code to support more than one ip? Yes. There was a patch posted by someone about 9 months ago. Would it be wise to hack at the code to add

Re: booting multiple kernels

2002-12-04 Thread Peter Pentchev
On Tue, Dec 03, 2002 at 08:52:07PM -0800, Nate Lawson wrote: On Tue, 3 Dec 2002, Rashim Gupta wrote: I have a machine to which I remotely log in and do kernel programming. It has two kernel versions - one is WORKING and the other is TEST - the one I am presently working on. Is it possible

Re: jail: multiple ip's

2002-12-04 Thread Tony Finch
[EMAIL PROTECTED] (Mike Ghunt) wrote: Has anyone hacked the jail code to support more than one ip? Would it be wise to hack at the code to add such a feature? Probably the best way to address this issue is to incorporate the network stack virtualization patch, then change the jail ID from an

Re: booting multiple kernels

2002-12-04 Thread Terry Lambert
Rashim Gupta wrote: I have a machine to which I remotely log in and do kernel programming. It has two kernel versions - one is WORKING and the other is TEST - the one I am presently working on. Is it possible that the bootloader tries to first load TEST but in case TEST panics then it loads

Re: jail: multiple ip's

2002-12-04 Thread Marko Zec
Terry Lambert wrote: Tony Finch wrote: [EMAIL PROTECTED] (Mike Ghunt) wrote: Has anyone hacked the jail code to support more than one ip? Would it be wise to hack at the code to add such a feature? Probably the best way to address this issue is to incorporate the network stack

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

2002-12-04 Thread Stijn Hoop
On Mon, Dec 02, 2002 at 11:49:03AM -0600, Mike Silbersack wrote: The time select() takes should be directly related to your system's hz setting. The default for FreeBSD is 100, which means that the interrupt timer will fire every 10ms. If you want to play with that, edit /etc/sysctl.conf and

Re: Need to override KRNLCONFDIR variable in command line of make (file /usr/src/Makefile.inc1).

2002-12-04 Thread Ruslan Ermilov
On Tue, Dec 03, 2002 at 10:54:28PM +0300, Oleg Sharoiko wrote: On Tue, 3 Dec 2002, Ruslan Ermilov wrote: RE KRNLCONFDIR shouldn't be overridden -- we already provide (undocumented) RE user-redefineable KERNCONFDIR which should be used in cases like this. RE KRNLCONFDIR, on the other hand,

maxusers and random system freezes

2002-12-04 Thread Varshavchick Alexander
Hi people, Can it be so that kernel maxusers=768 value being more than 512 leads to spontaneous system freezes which can take up to several hours when the system is just sleeping (only replying to ping) and doing nothing else, not allowing to telnet or anything. The system is 4.5-STABLE with much

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

2002-12-04 Thread Mike Silbersack
On Wed, 4 Dec 2002, Stijn Hoop wrote: With the mentioned change of /etc/sysctl.conf to /boot/loader.conf, I am indeed seeing much better times on this 'benchmark'. See attached log. Not only the _select_sleep method benefits from this. What are the reasons *not* to do this? As to why

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

2002-12-04 Thread Terry Lambert
Stijn Hoop wrote: On Mon, Dec 02, 2002 at 11:49:03AM -0600, Mike Silbersack wrote: The time select() takes should be directly related to your system's hz setting. The default for FreeBSD is 100, which means that the interrupt timer will fire every 10ms. If you want to play with that, edit

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

2002-12-04 Thread Stijn Hoop
On Wed, Dec 04, 2002 at 12:01:43PM -0600, Mike Silbersack wrote: On Wed, 4 Dec 2002, Stijn Hoop wrote: With the mentioned change of /etc/sysctl.conf to /boot/loader.conf, I am indeed seeing much better times on this 'benchmark'. See attached log. Not only the _select_sleep method benefits

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

2002-12-04 Thread Stijn Hoop
On Wed, Dec 04, 2002 at 10:06:16AM -0800, Terry Lambert wrote: [snip] Increased context switch overhead. Yes, Mike's explanation was clear. Actually, for the case you are talking about, your emulator should be using aggregate instead of discrete timeouts, and you would not be having a

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

2002-12-04 Thread Terry Lambert
Mike Silbersack wrote: On the other hand, a higher HZ should create a system which runs a bit smoother for interactive programs. And, as you point out, it is necessary for good timing in emulators / simulators / dummynet. Higher hardclock rate. It affects dummynet because most of the work it

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

2002-12-04 Thread Terry Lambert
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 having a problem. It's not useful to do 100 1ms timeouts to achieve a

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

2002-12-04 Thread Mike Silbersack
On Wed, 4 Dec 2002, Stijn Hoop wrote: In short, I don't think the issue has been discussed much, partially because it's so easy for those who want hz=1000 to just edit loader.conf. If you want to propose that we switch to hz=1000 by default: Nah, I'll leave that to someone who has some

RE: question about shared libraries and the library cache.

2002-12-04 Thread Reinier Kleipool
Hello Gents, ldconfig -r does find other libraries in /usr/local/lib: root@mail:~# ldconfig -r | grep local search directories: /usr/lib:/usr/local/lib 67:-lltdl.1 = /usr/local/lib/libltdl.so.1 68:-ldb3.3 = /usr/local/lib/libdb3.so.3 69:-ldb3_cxx.3 =

problems with a firewire external hard disk [long]

2002-12-04 Thread Thierry Herbelot
Hello, I can't seem to use my new external firewire hard disk : (this is with 5.0-DP2, there are the same kinds of symptoms under 4.7-Stable) My main question is to know where the problems are : is the hard disk dead ? is the firewire/ATA bridge fried ? are all problems due to the driver ?

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

2002-12-04 Thread Enache Adrian
FWIW, my first X11 game I ever wrote, which was similar to the game LodeRunner, used a select() timeout for the timing loop select(),nanosleep(),poll(),etc all sleep one tick longer _except_ when previous syscall was interrupted by a signal or when input became available. this is due to

Re: problems with a firewire external hard disk [long]

2002-12-04 Thread Julian Elischer
On Wed, 4 Dec 2002, Thierry Herbelot wrote: Hello, I can't seem to use my new external firewire hard disk : (this is with 5.0-DP2, there are the same kinds of symptoms under 4.7-Stable) My main question is to know where the problems are : is the hard disk dead ? is the firewire/ATA

Re: problems with a firewire external hard disk [long]

2002-12-04 Thread Kenneth D. Merry
On Wed, Dec 04, 2002 at 23:19:56 +0100, Thierry Herbelot wrote: Hello, I can't seem to use my new external firewire hard disk : (this is with 5.0-DP2, there are the same kinds of symptoms under 4.7-Stable) My main question is to know where the problems are : is the hard disk dead ? is

Re: USB support for new HP printers?

2002-12-04 Thread Dag-Erling Smorgrav
John Nielsen [EMAIL PROTECTED] writes: Hi, John. The LaserJet 1200 advertises several alternate settings for the printer-class interface: 7/1/3 (for IEEE 1284.4 packets, the new and different USB interface you mentioned), 7/1/2 (bidirectional raw print data), and 7/1/1 (unidirectional raw

Re: booting multiple kernels

2002-12-04 Thread Wilkinson,Alex
Where can you get the FORTH bootnext replacement ? - aW You want the FORTH bootnext replacement that Jon Mini and James Harris worked on. This replaces the nextboot program, which was broken when FreeBSD went to the FORTH bootloader during the a.out-ELF

Re: question about shared libraries and the library cache.

2002-12-04 Thread Tim Kientzle
According to the source code for ldconfig (/usr/src/sbin/ldconfig/ldconfig.c), ldconfig requires that the library file have a name that: * begins with 'lib' * contains '.so.' (note the trailing period) This is in the dodir() function, around line 270. It does not seem to require a number after

Re: booting multiple kernels

2002-12-04 Thread Rashim Gupta
On Thu, 5 Dec 2002, Wilkinson,Alex wrote: Where can you get the FORTH bootnext replacement ? - aW That is exactly what I asked Jon and he gave me the following reply -rg -- Forwarded message -- Date: Wed, 4 Dec 2002 16:40:49 -0800 From: Jonathan Mini [EMAIL

Re: question about shared libraries and the library cache.

2002-12-04 Thread Terry Lambert
Reinier Kleipool wrote: but it does not put some files in the hints cache: (Files listed above deleted by hand from the listing below) root@mail:~# ls -l /usr/local/lib/*.so* | grep -v ^l -rwxr-xr-x 1 root wheel 699643 Dec 1 11:12 /usr/local/lib/libdb-4.1.so* -rwxr-xr-x 1 root wheel

Re: booting multiple kernels

2002-12-04 Thread Terry Lambert
Wilkinson,Alex wrote: Where can you get the FORTH bootnext replacement ? You want the FORTH bootnext replacement that Jon Mini and James Harris worked on. This replaces the nextboot program, which was broken when FreeBSD went to the FORTH bootloader during

Re: booting multiple kernels

2002-12-04 Thread Terry Lambert
Rashim Gupta wrote: On Thu, 5 Dec 2002, Wilkinson,Alex wrote: Where can you get the FORTH bootnext replacement ? That is exactly what I asked Jon and he gave me the following reply You want nextboot, not bootnext, and it is in FreeBSD 5. Cool. I didn't realized it had been

Re: USB support for new HP printers?

2002-12-04 Thread Dag-Erling Smorgrav
The attached patch allows me to print to my HP OfficeJet by making ulpt0 use the bidirectional interface (7/1/2) instead of the IEEE1284 interface (7/1/3). I haven't had time to set up CUPS yet, but simply catting a text file do /dev/ulpt0 works fine, while previously it would just hang. DES --

Re: maxusers and random system freezes

2002-12-04 Thread Terry Lambert
Varshavchick Alexander wrote: Can it be so that kernel maxusers=768 value being more than 512 leads to spontaneous system freezes which can take up to several hours when the system is just sleeping (only replying to ping) and doing nothing else, not allowing to telnet or anything. The system

Re: maxusers and random system freezes

2002-12-04 Thread Varshavchick Alexander
On Wed, 4 Dec 2002, Terry Lambert wrote: Varshavchick Alexander wrote: Can it be so that kernel maxusers=768 value being more than 512 leads to spontaneous system freezes which can take up to several hours when the system is just sleeping (only replying to ping) and doing nothing else,

Re: maxusers and random system freezes

2002-12-04 Thread Terry Lambert
Varshavchick Alexander wrote: With these settings, and that much physical RAM, you should set your KVA space to 3G (the default is 2G); have you? Most likely, you are running out of KVA space for mappings. No, I didn't do it, and I'm not sure how to perform it, can you please advise?

Re: maxusers and random system freezes

2002-12-04 Thread Marc Recht
With these settings, and that much physical RAM, you should set your KVA space to 3G (the default is 2G); have you? Most likely, you are running out of KVA space for mappings. Every now and this I hear people saying (mostly you :)) that some problems are KVA related or that the KVA must be

Re: maxusers and random system freezes

2002-12-04 Thread Terry Lambert
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 not kernel hacker, a bit like something which

strange netstat output inside 4.x jails...

2002-12-04 Thread Josh Brooks
I run netstat -i fxp0 while _innside_ a jail: Name Mtu Network AddressIpkts IerrsOpkts Oerrs fxp0 1500 10.10.10.10/ host 7908671 -39559 - and then, I transfer a large file from the jail to some external host. Name Mtu Network Address

Re: problems with a firewire external hard disk [long]

2002-12-04 Thread Thierry Herbelot
Le Wednesday 04 December 2002 23:41, Julian Elischer a écrit : On Wed, 4 Dec 2002, Thierry Herbelot wrote: Hello, I can't seem to use my new external firewire hard disk : (this is with 5.0-DP2, there are the same kinds of symptoms under 4.7-Stable) My main question is to know where