Re: stange probelm with vmstat
Thank you for the help. But i need the boot.config to have the -P/-H flag in there. Can i put in some other place? What's the right way to use loader. - Original Message - From: Doug White [EMAIL PROTECTED] To: Matthew [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, November 20, 2001 8:28 PM Subject: Re: stange probelm with vmstat On Tue, 20 Nov 2001, Matthew wrote: I got strnage problem with vmstat in 4.1 stable. I got : undefined symbols: _kememstatistics, _bucket, _zlist error mesg. I checked the kernel with nm: it says: 0 b symbol. All three are in there. I checked the device file in /dev and the sgid on vmstat. Everything right. Can any one tell what i did thtat messed up my 4.1? This generally happens if you don't boot your kernel with loader(8). Make sure you're booting your kernel the right way ... delete /boot.config, particularly if it mentions your kernel in it. Doug White| FreeBSD: The Power to Serve [EMAIL PROTECTED] | www.FreeBSD.org To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message
add some constraints in cpufunc.h
4.4-stable, file sys/i386/include/cpufunc.h, --- cpufunc.h.orig Wed Nov 21 13:35:36 2001 +++ cpufunc.h Wed Nov 21 15:00:12 2001 @@ -72,7 +72,7 @@ { u_int result; - __asm __volatile(bsfl %0,%0 : =r (result) : 0 (mask)); + __asm __volatile(bsfl %0,%0 : =r (result) : 0 (mask) : cc); return (result); } @@ -81,7 +81,7 @@ { u_int result; - __asm __volatile(bsrl %0,%0 : =r (result) : 0 (mask)); + __asm __volatile(bsrl %0,%0 : =r (result) : 0 (mask) : cc); return (result); } @@ -305,7 +305,7 @@ u_int result; __asm __volatile(xorl %0,%0; xchgl %1,%0 -: =r (result) : m (*addr)); +: =r (result) : m (*addr) : cc); return (result); } -- David Xu To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message
Re: subscribe mailing list.
On Tue, Nov 20, 2001 at 11:17:52PM -0700, Ricky Liang wrote: i would like to subscribe the freebsd mailing list.. Try [EMAIL PROTECTED] to subsribe, see the email header below ;) List-ID: freebsd-hackers.FreeBSD.ORG List-Archive: http://docs.freebsd.org/mail/ (Web Archive) List-Help: mailto:[EMAIL PROTECTED]?subject=help (List Instructions) List-Subscribe: +mailto:[EMAIL PROTECTED]?subject=subscribe%20freebsd-hackers List-Unsubscribe: +mailto:[EMAIL PROTECTED]?subject=unsubscribe%20freebsd-hackers On freebsd.org is a list of all mailinglists. -- Axel Scheepers UNIX System Administrator email: [EMAIL PROTECTED] [EMAIL PROTECTED] http://axel.truedestiny.net/~axel -- A psychiatrist is a person who will give you expensive answers that your wife will give you for free. -- To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message
Re: hot swap with ugen
In message [EMAIL PROTECTED], Srinivas Dharmasanam writ es: Hi, I'm using the generic usb device drive ugen for controlling a USB device. The problem is I'm having to reboot the computer each time I disconnect/connect the device in order for FreeBSD to see the USB device. Are you running usbd (usbd_enable=YES in /etc/rc.conf)? Ian To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message
patch, please review/test: write support for loader(8)
Jonathan Mini [EMAIL PROTECTED] sent me a variation of this patch, it implments write support for UFS partitions from loader. Please review/test: http://people.freebsd.org/~alfred/stand.diff -- -Alfred Perlstein [[EMAIL PROTECTED]] 'Instead of asking why a piece of software is using 1970s technology, start asking why software is ignoring 30 years of accumulated wisdom.' http://www.morons.org/rants/gpl-harmful.php3 To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message
kernel config for kern.flp disk
Where can I find the kernel config for the kern.flp disk? Also, is there a decent how-to or faq about the boot.flp disk, and how to rebuild your own (using basically theirs, just with an install.cfg thrown in and no userconfig options in the kernel)? Thanks in advance! Eric -- - Eric Anderson[EMAIL PROTECTED]Centaur Technology An unbreakable toy is useful for breaking other toys. - To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message
tar and nodump flag
How about adding the nodump flag processing in tar? Something like: --- /usr/src/gnu/usr.bin/tar/create.c Wed Aug 11 09:03:39 1999 +++ create.cWed Nov 21 13:52:54 2001 @@ -817,6 +817,8 @@ strcpy (namebuf + len, d-d_name); if (f_exclude check_exclude (namebuf)) continue; + if (hstat.st_flags UF_NODUMP) + continue; dump_file (namebuf, our_device, 0); } Or something like this patch I've submited to the GNU tar mailing list: diff -r -u tar-1.13.orig/src/common.h tar-1.13/src/common.h --- tar-1.13.orig/src/common.h Tue Nov 20 15:04:26 2001 +++ tar-1.13/src/common.h Tue Nov 20 15:14:49 2001 @@ -143,6 +143,9 @@ /* Boolean value. */ GLOBAL int dereference_option; +/* Boolean value. */ +GLOBAL int honor_nodump_option; + /* Patterns that match file names to be excluded. */ GLOBAL struct exclude *excluded; diff -r -u tar-1.13.orig/src/create.c tar-1.13/src/create.c --- tar-1.13.orig/src/create.c Tue Nov 20 15:04:25 2001 +++ tar-1.13/src/create.c Tue Nov 20 15:18:14 2001 @@ -1483,6 +1483,12 @@ if (is_dot_or_dotdot (entry-d_name) || excluded_filename (excluded, entry-d_name)) continue; +#ifdef __FreeBSD__ + /* If file has NODUMP flag set, ignore it. Accordingly skip +the whole tree under a directory. */ + if (honor_nodump_option (current_stat.st_flags UF_NODUMP)) + continue; +#endif if ((int) NAMLEN (entry) + len = buflen) { diff -r -u tar-1.13.orig/src/tar.c tar-1.13/src/tar.c --- tar-1.13.orig/src/tar.c Tue Nov 20 15:04:26 2001 +++ tar-1.13/src/tar.c Tue Nov 20 15:21:57 2001 @@ -187,6 +187,7 @@ {gunzip, no_argument, NULL, 'z'}, {gzip, no_argument, NULL, 'z'}, {help, no_argument, show_help, 1}, + {honor-nodump, no_argument, NULL, 'H'}, {ignore-failed-read, no_argument, ignore_failed_read_option, 1}, {ignore-zeros, no_argument, NULL, 'i'}, /* FIXME: --ignore-end as a new name for --ignore-zeros? */ @@ -416,7 +417,7 @@ Y per-block gzip compression */ #define OPTION_STRING \ - -01234567ABC:F:GK:L:MN:OPRST:UV:WX:Zb:cdf:g:hiklmoprstuvwxz + -01234567ABC:F:GHK:L:MN:OPRST:UV:WX:Zb:cdf:g:hiklmoprstuvwxz static void set_subcommand_option (enum subcommand subcommand) @@ -623,6 +624,12 @@ /* Follow symbolic links. */ dereference_option = 1; + break; + + case 'H': + /* Honor NODUMP flag. */ + + honor_nodump_option = 1; break; case 'i': BTW, the ancient GNU tar (1.11.2) FreeBSD has bundled with the system happens to have a bug that makes it inconvenient with modern tapes. The tape length (option -L) is stored in a signed integer; a DAT DDS-2 is already too big for that. I would recommend to upgrade to the new 1.13, which, together with a brand new set of bugs, introduces the TARLONG type to store such informations as tape length. -- walter pelissero http://www.pelissero.org To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message
New Dental Practice Philosophy
Hi, I would like to wish you a very Happy Thanksgiving! We recently created a one page practice philosophy statement that emphasizes teamwork, caring, helping others, and developing your full potential by assuming a more active role in the practice. This philosophy is designed specifically for updating skills in the practice to utilize technology tools that improve productivity and efficiency. If you would like to receive this philosophy statement with my compliments, please reply to this e-mail with your name, address, and e-mail address where you would like the philosophy sent. If you prefer not to receive future technology and practice management updates like this one, please reply to this message and type, remove in the subject line. Thank you. Best regards, Steve Seltzer www.hitecdentist.com To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message
Re: kernel config for kern.flp disk
anderson Where can I find the kernel config for the kern.flp disk? anderson Also, is there a decent how-to or faq about the boot.flp anderson disk, and how to rebuild your own (using basically theirs, anderson just with an install.cfg thrown in and no userconfig options anderson in the kernel)? I don't know there is a FAQ about creating custom boot floppies, but if you want to learn right now, read src/release/Makefile carefully. All you want to know are there. -- - Makoto `MAR' Matsushita To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message
(no subject)
To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message
ALS4000
Hi All, (sorry for the xpost) Since I haven't had any help with getting my Intel 82801BA (ICH2) sound to work properly (plays 20% too fast) I went out and bought an ASound Express 32bit PnP sound card (based on the ALS4000 chipset) and dropped that in. I added device sbc and device pcm to my kernel conf. I also upgraded my kernel to 4.4-RELEASE However after getting it hooked up it has TERRIBLE hissing and clipping, even with all levels gain etc turned down. I tried with/without the CD line in cable and even moved slots to no avail. At least it plays at the right speed, though!! cat /dev/sndstat FreeBSD Audio Driver (newpcm) Nov 21 2001 10:02:21 Installed devices: pcm0: Avance Logic ALS4000 at io 0xdc00 irq 11 (1p/1r/0v channels duplex) Can anyone help?? This is getting _really_ frustrating. Thanks, Skye -- Clarity of thought should be accompanied by clarity of technique - Mondriaan ffwd internet division - www.ffwd.cx To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message
Re: hot swap with ugen
That was it. Thank you. Regards, -Srinivas From: Ian Dowse [EMAIL PROTECTED] To: Srinivas Dharmasanam [EMAIL PROTECTED] CC: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: hot swap with ugen Date: Wed, 21 Nov 2001 10:44:24 + In message [EMAIL PROTECTED], Srinivas Dharmasanam writ es: Hi, I'm using the generic usb device drive ugen for controlling a USB device. The problem is I'm having to reboot the computer each time I disconnect/connect the device in order for FreeBSD to see the USB device. Are you running usbd (usbd_enable=YES in /etc/rc.conf)? Ian _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message
Re: stange probelm with vmstat
On Wed, Nov 21, 2001 at 12:03:04PM -, Matthew wrote: Thank you for the help. But i need the boot.config to have the -P/-H flag in there. Can i put in some other place? You can also switch to serial via /boot/loader.rc. I have -h and -D in /boot.config so boot1 is using a serial. These parameters doesn't harm with /boot/loader and /boot/loader inherits them just fine. What's the right way to use loader. Simply use it. boot1 is able to directly load the kernel instead of /boot/loader just as in old 2.x days but only /boot/loader is able for increased magic. See boot(8) for a full description of the booting process. -- B.Walter COSMO-Project http://www.cosmo-project.de [EMAIL PROTECTED] Usergroup [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message
RE: patch, please review/test: write support for loader(8)
On 21-Nov-01 Alfred Perlstein wrote: Jonathan Mini [EMAIL PROTECTED] sent me a variation of this patch, it implments write support for UFS partitions from loader. Please review/test: http://people.freebsd.org/~alfred/stand.diff If bcache.c:write_strategy(), I wouldn't update the bcache with the new data unless the call to dv_strategy() suceeded. That is: err = dd-dv_strategy(...); if (err == 0) for (i = 0; i nblk; i++) bcache_insert(buf + (i * bcache_blksize), blk + i); This may be part of my 4th ignorance, but why did you axe the create_null_terminated_sring functoin in support.4th? In bd_write(), why is the updating of 'p', 'dblk', and 'resid' #if 0'd. This would seem to break writing to a file when it can't be done all at once. In the 5th hunk of ufs.c, you don't free fp-f_buf if the block_map() fails. Other than that it looks great. :) Please fix those and I'll try to test it out and get it committed. -- John Baldwin [EMAIL PROTECTED]http://www.FreeBSD.org/~jhb/ Power Users Use the Power to Serve! - http://www.FreeBSD.org/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message
Re: dummynet pipe show problem
Hi, I'm still running into lots of problems with this on 4.3. Is it neccessary to introduce a delay in the pipe ? Would a delay of zero work ? Has this been fixed in 4.4 ? Rick Luigi Rizzo wrote: On Tue, Oct 30, 2001 at 10:47:33AM -0800, rick norman wrote: Hi, I have enclosed a short piece of code that seems to reproduce the problem after 5 to 10 minutes. I am running 4.3 freebsd off the release cd's. Pretty much the generic kernel except for the addition of dummynet and ipfw. My platform is a dell dimension 4100 with 1ghz p3, though I doubt that is relevant. To reproduce the problem, compile and run the enclosed code in one window. In another window su to root and run ping -s 1024 -f 127.0.42.1. As you will see, the code reports the gowing byte count as one would expect. Walk away for 5 to 10 minutes and when you come back you should see the state I'm talking about. The flood ping stream It _might_ be a locking problem due to the frequent reconfigurations of the pipe -- i think there was some fix of this kind related to ipfw commands between 4.3 and 4.4. I will see if i can reproduce the problem locally (but i have 4.4). You are using dummynet in a very peculiar way: more precisely, your pipe does not introduce any delay, and this excludes the scheduler which is part of dummynet. Also you are using the same pipe for icmp requests and replies, which are generated within the kernel, so the behaviour should be quite deterministic in this respect. thanks for the report luigi Thanks, Rick --cut main() { int i; restart: system(ifconfig lo0 -alias 127.0.42.1); system(ifconfig lo0 alias 127.0.42.1 netmask 255.255.255.0); system(ipfw -f flush); system(ipfw pipe 1 delete); system(ipfw add pipe 1 ip from 127.0.42.0/24 to any in); for(i=0;i5;i++) { system(ipfw pipe 1 config queue 2048Bytes); sleep(1); system(ipfw pipe 1 show); } goto restart; } cut-- To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message
sysctls for hardware monitoring?
In looking over the various options for monitoring the health of the hardware, I notice that it's pretty much a mess. All the software in question runs privileged and grovels through memory in some way. Linux uses a device driver that's a directory full of files holding sensor information. That doesn't seem to be the right direction for FBSD, though. An option that enabled a set of sysctls to collect the information seemed to be more approrpiate. Comments? Suggestions? Brickbats? mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Q: How do you make the gods laugh? A: Tell them your plans. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message