RE: Number of mbuf clusters (NMBCLUSTERS)
You can increase the maximum number of clusters in /usr/src/sys/sys/sysctl.h and recompile the kernel. But make sure that you have a stable kernel image ready, just in case you increase this value so much that your kernel doesn't boot ;) I guess the default value is around 9, while for 256MB mem, you can go upto maybe 1 clusters. Pavan Balaji, Intel Corporation Only the Paranoid Survive -- Andy Grove -Original Message- From: James Snow [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 2:05 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Number of mbuf clusters (NMBCLUSTERS) Funny that you should post this at exactly the same time that I was beginning to look for other instances of the 'mbuf clusters exhausted' message. On Sat, Jul 13, 2002 at 11:56:18PM -0400, [EMAIL PROTECTED] wrote: I'm seeing a bit of problem with my FreeBSD 4.6 stable server. Me: FreeBSD 4.6-STABLE. My server: FreeBSD 4.6 Stable, Intel P3 933 / 256M Memory / a pair of 60G IDE drives (Seagate ATA IV). NIC: Intel EtherExpress 100+ NFS export. Me: dc0: 82c169 PNIC 10/100BaseTX Jul 12 09:28:54 nile /kernel: All mbuf clusters exhausted, please see tuning(7). I got a bunch of these yesterday, while scp'ing files to this machine. The drive is hooked up to a Promise PCI ATA/UDMA 100 controller card. The drive I was writing to is controlled by: atapci1: Promise ATA100 controller Curious -Snow To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: If a disk is mounted read only is it possible to corrupt it?
Corruption need not necessarily be s/w based. If your reader/writer is screwed up, it might still corrupt it. Guess, I'm too paranoid ;-) Pavan Balaji, Intel Corporation Only the Paranoid Survive -- Andy Grove -Original Message- From: Brian T. Schellenberger [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 8:17 AM To: Jens Rehsack; Philip Hallstrom Cc: [EMAIL PROTECTED] Subject: Re: If a disk is mounted read only is it possible to corrupt it? On Monday 22 July 2002 06:23 am, Jens Rehsack wrote: | Philip Hallstrom wrote: | Hi all - | This seems like an obvious answer, but I didn't see anything in | the man pages or the FQ so... | | If I mount *all* of my partitions as read only (ignoring the problems of | needing to write log files, etc. for now) and then cut the power to the | server, is there any chance of corrupting the disk? It seems that | FreeBSD wouldn't do it, but would the disk itself do it? | | That depends on the disk you're using. If you have problem with your | power supply, you should better think 'bout an uninterruptable power | supply. Unless there is a power surge or physical trauma, a disk most certainly should not be capable of self-corrupting unless a write has been issued, and if they are mounted r/o then FreeBSD will never issue a write. -- Brian, the man from Babble-On . . . . [EMAIL PROTECTED] (personal) http://www.babbleon.org http://www.eff.org http://www.programming-freedom.org To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: make buildworld error
libpam -- the 'cause of the error is not installed by the standard installation settings in FreeBSD 4.6. You need to either use completer installation from the CD or remove libpam from the Makefile in /usr/src/lib -- I used the second one, and it hasn't given any problems so far. Pavan Balaji, Intel Corporation Only the Paranoid Survive -- Andy Grove -Original Message- From: Jesse Geddis [mailto:[EMAIL PROTECTED]] Sent: Saturday, July 20, 2002 10:05 PM To: [EMAIL PROTECTED] Subject: make buildworld error This is what i get during a make build world on a freshly installed system with all the source after just doing a CVS off cvs2.freebsd.org of all but the docs: pointers? cc -fpic -DPIC -O -pipe -I/usr/src/lib/libpam/modules/pam_ssh/../../../../crypt o/openssh -c /usr/src/lib/libpam/modules/pam_ssh/pam_ssh.c -o pam_ssh.So building shared library pam_ssh.so /usr/obj/usr/src/i386/usr/libexec/elf/ld: cannot find -lssh *** Error code 1 Stop in /usr/src/lib/libpam/modules/pam_ssh. *** Error code 1 Stop in /usr/src/lib/libpam/modules. *** Error code 1 Stop in /usr/src/lib/libpam. *** Error code 1 Stop in /usr/src/lib. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: Boot -s doesn't work any other ideas
Did you make some modifications to the kernel? Probably it's become unstable. Did you try to boot it in some other kernel? Pavan Balaji, Intel Corporation Only the Paranoid Survive -- Andy Grove -Original Message- From: george rousson [mailto:[EMAIL PROTECTED]] Sent: Saturday, July 20, 2002 8:29 AM To: [EMAIL PROTECTED] Subject: Boot -s doesn't work any other ideas Hi I'm trying to recover a root password however when doing boot -s in the beggining it doesn't work at all . I can mount this disk from another OS (openbsd) and see the files on this hard disk. Is there any other way i can break the password so i can make this work., thanks To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: /cdrom for normal users?
By default, cdrom is /dev/acd0c is only mountable by root in FreeBSD. You can make it mountable by normal users by changing the /etc/fstab entry to users,ro,noauto /dev/acd0c /cdrom cd9660 users,ro,noauto 0 0 Pavan Balaji, Intel Corporation Only the Paranoid Survive -- Andy Grove -Original Message- From: Steve Mazerski [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 5:14 PM To: [EMAIL PROTECTED] Subject: /cdrom for normal users? Is it the done thing in FreeBSD for normal users to mount CD-ROMs in a local directory rather than /cdrom? As a normal user all I get is this: localuser mount /cdrom cd9660: /dev/acd0c: Operation not permitted despite changing the permissions on both the CD-ROM device and /cdrom to 660 and ensuring the local user is in the relevant groups I can mount CD-ROMs in a directory owned by the normal user. I ask because in Linux, /cdrom is generally useable as a mount point by all users. It's not a problem, just wondering. For reference: the relevant line in /etc/fstab: /dev/acd0c /cdrom cd9660 ro,noauto 0 0 vfs.usermount is set to 1, and yes, I have read this page: http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.htm l#USER-FLOPPYMOUNT S.Mazerski To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: giving priority to udp over tcp?
TCP traffic as such does not get any priority over UDP traffic, but the way in which the TCP messages are sent (Data Streaming) is different from the way UDP messages are sent (Datagram). In essense, UDP messages wait till there's enough space for the entire message before the message is added to the output queue. Whereas, if there isn't enough space for the entire message, a part of the message is sent and the rest buffered. So, it might appear to be getting higher priority for some applications. Pavan Balaji, Intel Corporation Only the Paranoid Survive -- Andy Grove -Original Message- From: Benjamin Franks [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 12:13 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: giving priority to udp over tcp? I'm using FreeBSD 4.5 and have custom applications that send receive network packets over both tcp and udp sockets. For the sake of an example, assume that the udp traffic is always constant, but the tcp traffic density changes. During times of heavy tcp traffic density, will udp messages which have been sent to the out queue typically wait in the queue longer before being sent out? Does tcp traffic get some sort of priority? If so, is there a way I can de-prioritize tcp traffic and up the priority of the udp traffic to make certain all the queued udp messages get out as soon as possible...? sysctl variables? does it depend on the network card driver, or perhaps i'm imagining something that isn't there and the two traffic types are totally isolated! ;) Thanks! --Ben To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: Question on order and targets of kernel and world builds
Nope. buildworld != builkernel. But buildworld does link the libraries. For example if you have a system call and a corresponding library, buildkernel will not be sufficient for you to allow the library call to invoke the corresponding system call -- however a buildworld would do that. Pavan Balaji, Intel Corporation Only the Paranoid Survive -- Andy Grove -Original Message- From: Kevin Kinsey, DaleCo, S.P. [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 10:51 AM To: Brian T.Schellenberger; parv; John Mills Cc: Balaji, Pavan; FreeBSD-questions Subject: Re: Question on order and targets of kernel and world builds He's either quite wrong, or he meant to say that buildworld builds kernel source, meaning ~'files needed to build kernel' ?? If you interpret libraries as I did, that's what he meant make buildworld != make buildkernel KDK From: Brian T.Schellenberger [EMAIL PROTECTED] To: parv [EMAIL PROTECTED]; John Mills [EMAIL PROTECTED] Cc: Balaji, Pavan [EMAIL PROTECTED]; FreeBSD-questions [EMAIL PROTECTED] Sent: Wednesday, July 17, 2002 9:59 AM Subject: Re: Question on order and targets of kernel and world builds I'm pretty sure that that buildworld does *not* build kernels. If anybody has definitive information (like, proof) to the contrary I'd be interested in knowing. On Wednesday 17 July 2002 10:28 am, parv wrote: | in message [EMAIL PROTECTED], | wrote John Mills thusly... | | Pavan - | | On Tue, 16 Jul 2002, Balaji, Pavan wrote: | make buildworld -- builds the kernel and the libraries (both kernel | and user level) | | make buildkernel -- builds only the kernel | | Thanks - I didn't realize 'buildkernel' was redundant to 'buildworld'. | | since when buildworld target starts building actual kernels? or, is | there a communication problem either on my part or pavan's? To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: ssh problem
The reason why this output would have come up is that you might have initialized the system to use the S/Key one time passwords -- probably using keyinit. I don't know exactly how to get rid of the problem (I myself have it too), but you can set the password to your login password using keyinit (again!). Sorry! Not too much of a help. Pavan Balaji, Intel Corporation Only the Paranoid Survive -- Andy Grove -Original Message- From: Ryan Masse [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 1:44 PM To: [EMAIL PROTECTED] Subject: ssh problem I have several FreeBSD machines in production all running sshd as the sole method of terminal services. I have one machine in particular that is producing rather strange results when trying to ssh into the machine. I have c/p a snipet of the output from the console below: login as: USER otp-md5 368 we8402 ext S/Key Password: Access denied USER@DOMAIN password: Last login: Wed Jul 17 14:40:05 2002 from ptr-207-54-105-9 Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.5-RELEASE-p1 (web2) #0: Thu Feb 28 10:36:19 EST 2002 What is the ouput otp-md5 368 we8402 ext? This does not appear on any of the other machines. Can someone please advise? Thanks, Ryan To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: tcsh: list of all files when pressing tab
Is there somewhere I can get the key names to use with bindkey? Pavan Balaji, Intel Corporation Only the Paranoid Survive -- Andy Grove -Original Message- From: Roger P. Johnson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 3:00 PM Cc: [EMAIL PROTECTED] Subject: Re: tcsh: list of all files when pressing tab Try this in your .tcshrc file: set autolist bindkey -v bindkey ^F complete-word-fwd bindkey ^b complete-word-back This allows you to: You can do the auto-complete via tab. You can get a list of the matching files. You can cycle through the list forward by doing ctl-f You can cycle through the list backards by doing ctl-b This sets your command line editing to vi style. You can also set it to emacs style. -Roger Pascal Giannakakis wrote: Hi, in tcsh i can type /u and press tab to autocomplete the path to /usr/. However, if there is more than one match, i would like to have a list of all possible path's. I know this from linux. What is this feature called and how do i enable it? thx! To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: Unable to compile the kernel
I added a system call to the FreeBSD-4.6 kernel and compiled the kernel, it compiled properly. Now, in my new kernel, if I try to make some changes in the system call (very minor changes) and recompile the kernel, it gives a compilation error and stops. Which error? No fixed error. I just core dumps at random places. It sounds weird, since it's only a compilation and not a runtime library, but it's been happening since last night. Essentially, I'm not able to make changes and re-compile from my kernel, but am able to do the same from the generic kernel. The only difference between my kernel and the generic kernel is an additional system call. Which system call? My own system call. It's an empty function right now. Did anyone else have such a problem? Any suggestions? Tips? Could you post more details? I suspect some dumb a** must have hardcoded the number of system calls somewhere in the kernel and that's what is giving the problem. Pavan Balaji, CIS Graduate Student, Ohio State University Being happy doesn't mean that everything is perfect... It just means that you have decided to see beyond the imperfections -- Rash To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
rsh not working
I'm not able to get rsh or telnet to work on my FreeBSD box (however ssh works fine). Is there some file I need to edit to get this to work? Pavan Balaji, CIS Graduate Student, Ohio State University Being happy doesn't mean that everything is perfect... It just means that you have decided to see beyond the imperfections -- Rash To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: rsh not working
/etc/inetd.conf just gives an option for telnet, but not for 'rsh'. I'm not able to get 'rsh' working yet. Any other suggestions? Pavan Balaji, CIS Graduate Student, Ohio State University Being happy doesn't mean that everything is perfect... It just means that you have decided to see beyond the imperfections -- Rash -Original Message- From: Simon Dick [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 14, 2002 1:56 PM To: Balaji, Pavan Cc: '[EMAIL PROTECTED]' Subject: Re: rsh not working On Sun, Jul 14, 2002 at 11:53:40AM -0700, Balaji, Pavan wrote: I'm not able to get rsh or telnet to work on my FreeBSD box (however ssh works fine). Is there some file I need to edit to get this to work? /etc/inetd.conf -- Simon Dick[EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
argc/argv in bash!
How do we use argc and argv (C like) in bash scripts? Pavan Balaji, CIS Graduate Student, Ohio State University Being happy doesn't mean that everything is perfect... It just means that you have decided to see beyond the imperfections -- Rash To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: rsh not working
I tried that, but it didn't work. However, I did figure out the way to do it (thanx to simon!) -- we need to uncomment even the login and exec commands. Probably there are better ways of doing it. Still experimenting. Thanx anyways, Pavan Balaji, CIS Graduate Student, Ohio State University Being happy doesn't mean that everything is perfect... It just means that you have decided to see beyond the imperfections -- Rash -Original Message- From: Jonathan Chen [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 14, 2002 2:39 PM To: Balaji, Pavan Cc: '[EMAIL PROTECTED]' Subject: Re: rsh not working On Sun, Jul 14, 2002 at 12:12:28PM -0700, Balaji, Pavan wrote: /etc/inetd.conf just gives an option for telnet, but not for 'rsh'. I'm not able to get 'rsh' working yet. Any other suggestions? It's these lines in /etc/inetd.conf: #shell stream tcpnowait root/usr/libexec/rshd rshd #shell stream tcp6 nowait root/usr/libexec/rshd rshd Uncomment them, signal inetd, and thazzit. -- Jonathan Chen [EMAIL PROTECTED]Once is dumb luck. Twice is coincidence. Three times and Somebody Is Trying To Tell You Something. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: argc/argv in bash!
Thanx! Pavan Balaji, CIS Graduate Student, Ohio State University Being happy doesn't mean that everything is perfect... It just means that you have decided to see beyond the imperfections -- Rash -Original Message- From: Giorgos Keramidas [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 14, 2002 3:05 PM To: Balaji, Pavan Cc: '[EMAIL PROTECTED]' Subject: Re: argc/argv in bash! On 2002-07-14 12:53 +, Balaji, Pavan wrote: How do we use argc and argv (C like) in bash scripts? The number of command line arguments is $#. For example: % cat foo.sh #!/bin/sh echo $# % sh foo.sh 0 % sh foo.sh hello world 2 % sh foo.sh hello world 1 The argv[] equivalent is $@. % cat foo2.sh #!/bin/sh for argument in $@ ;do echo $argument done % sh foo2.sh % % sh foo2.sh hello world hello world % % sh foo2.sh hello world hello world % For more details about the special variables of sh, read the sh(1) manpage. % man 1 sh To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: XFree86 4.2 screen resolutions
Not too sure, but try this: Section Screen Identifier Screen0 Device Card0 MonitorMonitor0 DefaultDepth 24 DefaultModes1024x768 --- Added this SubSection Display Depth 24 Modes 1024x768 800x600 640x480 EndSubSection EndSection Pavan Balaji, CIS Graduate Student, Ohio State University Being happy doesn't mean that everything is perfect... It just means that you have decided to see beyond the imperfections -- Rash -Original Message- From: Jason Barnes [mailto:[EMAIL PROTECTED]] Sent: Friday, July 12, 2002 1:12 PM To: [EMAIL PROTECTED] Subject: XFree86 4.2 screen resolutions Hi! I am running FreeBSD 4.6-RELEASE and am just biting the bullet to upgrade to XFree86 4.2 for purposes of KDE3. Everything is working -- except that I can't seem to get the screen to go into any mode but 640x480 (any color depth). I want to get to 1024x768 (24bit), and I know this should be possible because it was running that way under XFree86 3.3. I would greatly apreciate any insight you might have into this matter. Here is my XF86Config: Section ServerLayout Identifier XFree86 Configured Screen 0 Screen0 0 0 InputDeviceMouse0 CorePointer InputDeviceKeyboard0 CoreKeyboard EndSection Section Files RgbPath /usr/X11R6/lib/X11/rgb ModulePath /usr/X11R6/lib/modules FontPath /usr/X11R6/lib/X11/fonts/misc/ FontPath /usr/X11R6/lib/X11/fonts/Speedo/ FontPath /usr/X11R6/lib/X11/fonts/Type1/ FontPath /usr/X11R6/lib/X11/fonts/75dpi/ FontPath /usr/X11R6/lib/X11/fonts/100dpi/ EndSection Section Module Load extmod Load xie Load pex5 Load glx Load dri Load dbe Load record Load xtrap Load speedo Load type1 EndSection Section InputDevice Identifier Keyboard0 Driver keyboard EndSection Section InputDevice Identifier Mouse0 Driver mouse Option Protocol MouseSystems Option Device /dev/sysmouse EndSection Section Monitor #DisplaySize 280 210 # mm Identifier Monitor0 VendorName JEN ModelName1055 Option DPMS EndSection Section Device ### Available Driver options are:- ### Values: i: integer, f: float, bool: True/False, ### string: String, freq: f Hz/kHz/MHz ### [arg]: arg optional #Option slow_edodram# [bool] #Option slow_dram # [bool] #Option fast_dram # [bool] #Option fpm_vram# [bool] #Option pci_burst # [bool] #Option fifo_conservative # [bool] #Option fifo_moderate # [bool] #Option fifo_aggressive # [bool] #Option pci_retry # [bool] #Option NoAccel # [bool] #Option early_ras_precharge # [bool] #Option late_ras_precharge # [bool] #Option lcd_center # [bool] #Option set_lcdclk # i #Option set_mclk# freq #Option set_refclk # freq #Option show_cache # [bool] #Option HWCursor# [bool] #Option SWCursor# [bool] #Option ShadowFB# [bool] #Option Rotate # [str] #Option UseFB # [bool] #Option mxcr3afix # [bool] #Option XVideo # [bool] Identifier Card0 Driver s3virge VendorName S3 BoardName ViRGE/GX2 BusID PCI:0:8:0 VideoRAM4096 EndSection Section Screen Identifier Screen0 Device Card0 MonitorMonitor0 DefaultDepth 24 # SubSection Display # Depth 1 # EndSubSection # SubSection Display # Depth 4 # EndSubSection # SubSection Display # Depth 8 # EndSubSection # SubSection Display # Depth 15 # EndSubSection # SubSection Display # Depth 16 # EndSubSection SubSection Display Depth 24 Modes 1024x768 800x600 640x480 EndSubSection EndSection - Jason Barnes Jason Wayne Barnes -- Active on the internet. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL