kern.maxdsiz big memory/tuning questions
Hello, I'm trying to RTFM but the M does not appear to exist. I am dealing with processes over 512MB in size on 6.0 on x86 and am using these loader.conf tunables as suggested by MySQL and other documentation: kern.maxdsiz=1073741824 # 1GB kern.dfldsiz=1073741824 # 1GB kern.maxssiz=134217728 # 128MB I can glean so far that: 1. You don't want to exceed physical memory with these 2. These are listed in /boot/defaults/loader.conf 3. This is not controlled by sysctls :) 4. 'limits' will show what they are currently set to However, I am not clear if: 1. It is permitted to use M and G notation (kern.maxsiz=1G)? - some say yes, some say no and I would prefer not risk the system not booting. 2. Which tunables actually matter beyond kern.maxdsiz? Some say only kern.maxdsiz and some suggest all three. 'man tuning' and the handbook (~/handbook/configtuning-kernel-limits.html) only goes into maxfiles and maxusers. Searches of this list and Google have yeilded what you see above. Could someone please share some wisdom or docs on this matter? Much appreciated, Michael. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ipfilter question
Here's my setup: /etc/rc.conf ipmon_enable=YES ipmon_flags=-Dns /etc/syslog.conf security.* /var/log/ipfilter.log Make sure you don't have any other security.* facility specified in /etc/syslog.conf yes, there is no other security.* facility, actually i got it working to log on my file (/var/log/ipfilter.log) but it also logs on /var/log/messages. I only want to log on my file. thanks -- Elmer Rivera, http://www.vizcayano.com, http://youand.i.ph I have the problem that ipmon logs to /var/log/messages and nothing goes to /var/log/ipf.log. Even after using the info in this thread. I am using local0 as was suggested for FreeBSD 6.0. Earlier I was using security.* which didn't work either. I suppose that at the least, I need to remove something from the /var/log/messages line. Here is my syslog.conf: *.err;kern.warning;auth.notice;mail.crit/dev/console *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err /var/log/messages local0.*/var/log/ipf.log auth.info;authpriv.info /var/log/auth.log mail.info /var/log/maillog lpr.info/var/log/lpd-errs ftp.info/var/log/xferlog cron.* /var/log/cron *.=debug/var/log/debug.log Thanks, Rob. -- -- http://home.comcast.net/~europa100 A SETI-like Search for Intelligent Life in Central Pa. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Off-Topic
I'm for this one: The best way to accellerate a computer running Windows is at 9.81 m/s^2 by Roland It's wonderful! -- Pietro Cerutti [EMAIL PROTECTED] Beansidhe - SwiSS Death / Thrash Metal www.beansidhe.ch Windows: Where do you want to go today? Linux: Where do you want to go tomorrow? FreeBSD: Are you guys coming or what? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: /etc/mail/local-host-names
to enable anybody in IPv4 10.0.0.0/8 to relay through this server 10. seems not to work. I think--but don't *quote* me:) -- that the host-names file does eactly what ^Cwhostname does in sendmail.cf. So if your host were named foo, you would put ^foo in local-host-names. Anybody else? i thought it's like sendmail.cw - even in .mc file it's said that's just different filename. things worked different in NetBSD (sendmail 8.13.3) than in FreeBSD 6.0 (8.13.4). ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: /etc/mail/local-host-names
I think you need to put that in /etc/mail/access as 10 RELAY and then do a #make maps Check the Makefile in /etc/mail/ for more on the make option Read /usr/share/sendmail/cf/README for more info. thanks. so what does local-host-names control? exactly as filename states? what domain does this server handle? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
pine
Hi everyone, I am having some problems setting up pine .pinerc using FreeBSD 6.0 - STABLE. My ISP uses POP and I am using thier SMTP for outgoing. I spoke to the helpdesk and the POP server does not support ssl. Pine was compiled and installed with support for POP3 here are some lines from my .pinerc; smtp-server=mail.myisp.net.au inbox-path={pop.myisp.net.au/pop3}inbox When I launch pine with the above settings Pine uses INSECURE login and password. Even though the login is INSECURE, I can access my mail and use newsgroups. I have tried using; inbox-path={pop.myisp.net.au/pop3/secure}inbox but when I launch pine I get the error message; 'Can't do secure authentication with this server' If you can offer advice could you please CC me as I am not subscribed to the questions list. I know this question is not an OS question, but I do not like the idea of sending my login details unencrypted through the ISP network. Thankyou, caleb -- There is no spoon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: version 6!
After realizing how long I made this little explanation, I decided it might be helpful to someone if I made it available on the freebsd-questions mailing list. List: take the following for what it's worth. On Tuesday 13 December 2005 07:00 pm, ntkonn wrote: Crap amighty, I just upgraded FreeBSD. When did they go to 6? Yes, 6. You might want to consider subscribing to the freebsd-announce mailing list (http://lists.freebsd.org/mailman/listinfo/freebsd-announce). Also, the release of FreeBSD 6.0 does not mean you are running an outdated version of FreeBSD (yet). The 5.x branch is basically in maintenance mode, but a 5.5 release is planned. I doubt that 5.x will be retired before 6.1 has been out for a while. Are you running 6? Anything in it make it worth the trouble to upgrade? Should I upgrade just so I don't get too far behind? FreeBSD 6.0-RELEASE breaks the mold for a dot nought release in that it is both relatively painless to upgrade and quite stable to run. Take a look at http://www.freebsd.org/releases/, and pay particular attention to the announcement and release notes for 6.0. As for reasons to upgrade, you can determine that yourself from the release notes, etc., but in my view there's no good reason not to. Not lagging behind is also a good way to go in general. The best (read: non-adventurous) way to do that is to follow releases, or possibly by tracking -STABLE. (Releases are merely extra-well-tested, nicely packaged snapshots of the -STABLE branch of development.) (If you're curious, the adventurous way to stay current is to track -CURRENT. All new (and possibly untested) development happens in -CURRENT, and is backported to -STABLE only if it doesn't break compatibility and after it has been tested for a set period of time.) See also http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/current-stable.html (and the rest of chapter 20 of the handbook). As I alluded to in my prior e-mail, I am running 6-STABLE both at home and at work with no problems. 6.0-RELEASE is also a good modern-but-not-scary candidate. uname -a produces: FreeBSD asus.konneker 5.4-STABLE FreeBSD 5.4-STABLE #0: Wed Nov 2 19:13:15 EST 2005 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386 That means you're running 5-STABLE from a little over a month ago. The gap between 5 and 6 is pretty narrow at this point, but it will probably widen with time (little if any new development is making its way into 5, since 6 is now stable). You can do one of four things (actually 5, but the 5th is not recommended): 1) Not upgrade your system. Not recommended for long-term use, but not necessarily a bad thing at any given time. Plan on doing one of the other options, but use this one until it's convenient to upgrade. 2) Continue tracking 5-STABLE. You could update your sources to the latest in the 5.x branch, using cvsup and a src supfile with the RELENG_5 tag. Rebuilding your world and kernel at that point would give you a 5-STABLE with today's date. This option is better than (1) above, since it will incorporate security and other critical fixes, but still doesn't get you very far in terms of new functionality or staying up-to-date. This option could also be a useful stepping-stone prior to upgrading to 6, but since your current system is very close to this already it's not strictly necessary. If you wait a while to upgrade to 6, then you will definitely want to upgrade to the most current 5-STABLE beforehand. 3) Upgrade to 6.0-RELEASE. This is most easily done by changing the tag in your src supfile to RELENG_6_0, updating your sources, and rebuilding world and kernel. You will likely also need to rebuild/reinstall most or all of your ports to reflect new versions of the system libraries (this step is only typical of upgrades across major release numbers (like 5 to 6) and is not necessary for minor release upgrades (like 6.0 to 6.1). This is a strong option, since it gives you a well-tested release and keeps you from needing to do a major version upgrade for the entire lifecycle of FreeBSD 6.x. Even if you go with (4) below, you should do this first. 4) Upgrade to 6-STABLE. To do this you would change the tag in your src supfile to RELENG_6. The main advantage of this option is that you can do many incremental updates. This allows you to get new features without waiting for the next release, and also lets you deal with potential bumps in the upgrade path in smaller doses. There is the added risk (compared to (3) of encountering bugs or other hurdles that might not show up in a release, but in my experience that risk is minimal. 5) (Listed for completeness only. Typically only experienced (and/or brave/benevolent/eager, etc.) users wishing to be actively engaged in the development and testing process should do this.) Upgrade to 7-CURRENT. You would do this by changing the tag in your src supfile to . (just a period,
Re: Multiple CPUs
On Tue, 2005-12-13 at 14:54 -0500, Kris Kennaway wrote: On Tue, Dec 13, 2005 at 02:12:57PM -0500, Robert Fitzpatrick wrote: I guess this means my new server is only using one of my CPUs? esmtp# grep CPU /var/log/dmesg.today CPU: Intel(R) Xeon(TM) CPU 2.40GHz (2399.33-MHz 686-class CPU) Hyperthreading: 2 logical CPUs cpu0: ACPI CPU (2 Cx states) on acpi0 Can someone point me to the best doc for enabling use of both CPUs on the FreeBSD 5.4 server? I assume the kernel needs built with options. FYI, hyperthreading is not a real CPU, and it seems to *really* hurt performance on most workloads. You'll probably benefit from not using it. Yeah, I got the SMP option built into the kernel and still with less than 700 messages in the queue, very little else going on beside Postfix with amavis content filtering, my CPU idle is 0% most the time. This is on my freshly built FreeBSD 5.4 with dual Xeon 2.4 processors and a GB RAM. You think that could be related to HT? I will have to make a visit to the data center to remove in BIOS. Here's my top procs: last pid: 2079; load averages: 8.31, 8.91, 8.43up 0 +00:35:15 20:57:53 149 processes: 13 running, 136 sleeping CPU states: 54.2% user, 0.0% nice, 21.8% system, 8.3% interrupt, 15.8% idle Mem: 747M Active, 85M Inact, 146M Wired, 17M Cache, 111M Buf, 1656K Free Swap: 2021M Total, 213M Used, 1808M Free, 10% Inuse, 636K In, 1496K Out PID USERNAME PRI NICE SIZERES STATE C TIME WCPUCPU COMMAND 1727 postfix 1290 7884K 4016K RUN2 1:14 64.06% 64.06% cleanup 1620 postfix 1280 7884K 3684K RUN3 0:52 42.48% 42.48% cleanup 2031 vscan1160 227M 125M RUN0 0:44 31.25% 31.20% perl5.8.6 1892 vscan1160 230M 2884K RUN0 1:44 629.00% 30.71% perl5.8.6 1726 postfix 1110 7884K 4020K RUN0 0:57 18.55% 18.55% cleanup 2035 vscan -80 228M 123M piperd 0 0:36 17.57% 17.53% perl5.8.6 2042 vscan1110 227M 122M RUN2 0:26 16.86% 16.75% perl5.8.6 1889 vscan -80 238M 130M piperd 2 1:41 15.58% 15.58% perl5.8.6 1898 vscan1190 229M 125M RUN0 1:38 13.48% 13.48% perl5.8.6 2018 vscan1050 226M 121M RUN0 0:36 11.43% 11.43% perl5.8.6 2016 vscan1050 226M 122M RUN0 0:35 10.75% 10.74% perl5.8.6 1646 vscan1030 232M 129M CPU1 0 3:45 9.42% 9.42% perl5.8.6 1894 vscan1070 227M 124M CPU3 0 1:37 7.03% 7.03% perl5.8.6 1659 postfix40 7884K 8K select 0 1:02 0.00% 6.35% cleanup 1724 postfix -200 7884K 3908K swread 0 0:47 1.37% 1.37% cleanup 2075 postfix 960 7876K 5764K select 0 0:00 1.27% 0.93% cleanup 2077 vscan-160 2084K 1024K vmpfw 0 0:00 0.62% 0.34% file 2078 vscan-160 2084K 1048K spread 0 0:00 3.00% 0.15% file 565 vscan 200 15432K 11336K kserel 0 0:19 1.00% 0.05% clamd 2013 root 40 9220K 1772K select 0 0:00 0.05% 0.05% smtpd 488 vscan 40 224M 8K select 0 0:31 0.00% 0.00% perl5.8.6 661 root 960 3828K 816K select 0 0:04 0.00% 0.00% master 613 mysql 200 57308K 2236K kserel 0 0:02 0.00% 0.00% mysqld 1619 postfix 960 4348K 932K select 0 0:02 0.00% 0.00% trivial-rewrite 333 root 960 1324K 240K select 0 0:02 0.00% 0.00% syslogd 745 root 40 7272K 948K select 0 0:01 0.00% 0.00% perl 1599 postfix40 5072K 8K select 0 0:01 0.00% 0.00% qmgr 1882 root 960 2596K 1136K CPU0 0 0:01 0.00% 0.00% top 558 root 40 26004K 836K select 0 0:01 0.00% 0.00% httpd 722 ldap 200 29132K48K kserel 1 0:01 0.00% 0.00% slapd 1751 root 40 9288K 8K select 0 0:01 0.00% 0.00% smtpd 1716 root 200 9288K 896K lockf 0 0:01 0.00% 0.00% smtpd 2039 postfix40 4180K 8K select 0 0:01 0.00% 0.00% flush 897 admin 40 6144K 348K select 0 0:01 0.00% 0.00% sshd 1747 root 40 9276K 8K select 0 0:00 0.00% 0.00% smtpd 1612 root 40 9264K 1588K select 0 0:00 0.00% 0.00% smtpd 1717 root 40 9396K 1268K kqread 0 0:00 0.00% 0.00% smtpd 1737 root 960 9272K 1732K select 0 0:00 0.00% 0.00% smtpd 1715 root 40 9252K 1852K select 0 0:00 0.00% 0.00% smtpd 442 root 40 1244K 8K select 0 0:00 0.00% 0.00% usbd -- Robert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pine
On Wednesday 14 December 2005 01:01, caleb wrote: Hi everyone, I am having some problems setting up pine .pinerc using FreeBSD 6.0 - STABLE. My ISP uses POP and I am using thier SMTP for outgoing. I spoke to the helpdesk and the POP server does not support ssl. I have tried using; inbox-path={pop.myisp.net.au/pop3/secure}inbox but when I launch pine I get the error message; 'Can't do secure authentication with this server' If the server supports neither ssl, nor any form secure authentication, there nothing you can do to protect your password. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Multiple CPUs
On Tue, Dec 13, 2005 at 09:00:13PM -0500, Robert Fitzpatrick wrote: On Tue, 2005-12-13 at 14:54 -0500, Kris Kennaway wrote: On Tue, Dec 13, 2005 at 02:12:57PM -0500, Robert Fitzpatrick wrote: I guess this means my new server is only using one of my CPUs? esmtp# grep CPU /var/log/dmesg.today CPU: Intel(R) Xeon(TM) CPU 2.40GHz (2399.33-MHz 686-class CPU) Hyperthreading: 2 logical CPUs cpu0: ACPI CPU (2 Cx states) on acpi0 Can someone point me to the best doc for enabling use of both CPUs on the FreeBSD 5.4 server? I assume the kernel needs built with options. FYI, hyperthreading is not a real CPU, and it seems to *really* hurt performance on most workloads. You'll probably benefit from not using it. Yeah, I got the SMP option built into the kernel and still with less than 700 messages in the queue, very little else going on beside Postfix with amavis content filtering, my CPU idle is 0% most the time. This is on my freshly built FreeBSD 5.4 with dual Xeon 2.4 processors and a GB RAM. You think that could be related to HT? I will have to make a visit to the data center to remove in BIOS. CPU idle time doesn't measure how well your system is performing, it only tells you when it's reaching capacity in its current configuration. You need to compare how much work it can do with/without HTT (e.g. how many messages can it process/hour, if you have a more or less constant input?) Kris pgprBFcrS2nn4.pgp Description: PGP signature
Re: ipfilter question
in message [EMAIL PROTECTED], wrote Rob Lytle thusly... Here's my setup: ... in /etc/syslog.conf yes, there is no other security.* facility, actually i got it working Please keep the attribution attribute the respective authors. I have the problem that ipmon logs to /var/log/messages and nothing goes to /var/log/ipf.log. Even after using the info in this thread. I am using local0 as was suggested for FreeBSD 6.0. Earlier I was using security.* which didn't work either. I suppose that at the least, I need to remove something from the /var/log/messages line. ... *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err /var/log/messages local0.* /var/log/ipf.log Like authpriv.none to stop auth messages going into /var/log/messages, you will need to add local0.none (or replace local0 w/ whatever the actual facility is used) after *.notice;. According to ipmon(8) on 5.4, passed logged packets are logged w/ level of 'notice'. So you should be seeing only the passed packets in '/var/log/messages'. Rest of the messages, will go wherever (local0|security|*).(info|warn|err) messages go. Or, you could ... - give a file name to ipmon(8) to log messages in - remove the -s option to not to log via syslogd(8) - put the ipmon facility.none, in /etc/syslog.cong, to avoid other files receiving ipf messages. - adjust /etc/newsyslog.conf to properly rotate the ipmon log files. Don't forget to read up on syslog.conf(5), newsyslog.conf(5), and ipmon(8) in any case. - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ipfilter question
Got it working. forgot to add security.none after *.notice; Thanks guys... -- Elmer Rivera, http://www.vizcayano.com, http://youand.i.ph ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pine
On Wed, 14 Dec 2005, RW wrote: If the server supports neither ssl, nor any form secure authentication, there nothing you can do to protect your password. Hi RW, Thanks for your reply. Would IPSEC be an option for securing my login details or kerberos? caleb -- There is no spoon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: can't mount msdos fs on freebsd6?
ah... that's the ticket! thanks! jeff. - Original Message - From: Tino Boss [EMAIL PROTECTED] To: freebsd-questions@freebsd.org Cc: Jeff D. Hamann [EMAIL PROTECTED] Sent: Tuesday, December 13, 2005 10:49 AM Subject: Re: can't mount msdos fs on freebsd6? Jeff D. Hamann wrote: mothra# mount -t msdos /dev/ad0s2 /data mount_msdosfs: /dev/ad0s2: Invalid argument I remember having had a similar problem and it was just a that it was an extended partition and somehow it was not displayed with the correct number in some utility. If that's your case you might just need another device-name. I think numbering for extended partitions starts at 5 (eg. ad0s5). regards Tino ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pine
On Wed, Dec 14, 2005 at 02:12:38PM +1100, caleb wrote: Would IPSEC be an option for securing my login details or kerberos? Nope. Unless the ISP's mail server supports some form of encryption, there's nothing you can do. On the other hand, your desktop machine is probably only about two hops from your mail server, and those are inside the ISP's data center, so there isn't much chance for somebody to sniff your credentials. --Mac pgptsd68Mq8Sy.pgp Description: PGP signature
IMAP-UW Security question
Just recently installed IMAP-UW through ports and once the install finished I got the following security message: SECURITY REPORT: This port has installed the following binaries which execute with increased privileges. /usr/local/libexec/mlock What can I do to minimize this security risk? Do I create an mlock user? Thanks in advance, Jose ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Multiple CPUs
Quoting Robert Fitzpatrick [EMAIL PROTECTED]: Here's my top procs: last pid: 2079; load averages: 8.31, 8.91, 8.43up 0 +00:35:15 20:57:53 149 processes: 13 running, 136 sleeping Robert, FWIW, I did some research a short time ago on utilization and other aspects of watching performance and I found that 'load' provided better insight FOR ME into what the system is doing. I wasn't able to find much on load, but if I understand it correctly, part of what it shows is the queue on the processor(s). 8 seems high, even by today's standards and real high by the standards of yesteryear when the load function was originally created. You may want to spend some time researching load and see what you come up with. Bob Lee -- Robert Lee PGP: D3EE2268 pgp.mit.edu I prefer email in plain text pgpO45qnfikqx.pgp Description: PGP signature
Re: IMAP-UW Security question
Jose Borquez wrote: SECURITY REPORT: This port has installed the following binaries which execute with increased privileges. /usr/local/libexec/mlock What can I do to minimize this security risk? Do I create an mlock user? In fact, every port that installs a suid-binary will show this warning. Creating a user won't help, mlock will run as root (that is what it's about). Just keep the port up-to-date and it's ok. Frank ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
I need a better way to loop in the shell...
I always do loops in /bin/sh like this: for f in `cat file` ; do rm -rf $f ; done Easy. I like doing it like this. The problem is, when I am dealing with an input list that has multiple words per line, this chops it up and treats every word as a new line... For instance, lets say I have a file full of filenames, like this: # cat file 10,000 Maniacs MTV Unplugged - 01 - These Are Days.mp3 10,000 Maniacs MTV Unplugged - 02 - Eat For Two.mp3 10,000 Maniacs MTV Unplugged - 03 - Candy Everybody Wants.mp3 and I try to use the above loop on it, it thinks that every word is a line ... the above loop will attempt to delete the following files: 10,000 Maniacs MTV Unplugged - 01 - These (and so on) Even if I quote the variable $f, like: for f in `cat file` ; do rm -rf $f ; done it still does the same thing. - So my question is, what is a nice simple way to loop in the shell, as close to what I am doing above as possible, that does not have this problem ? Should I just be using something other than `cat` ? Or what ? THanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: I need a better way to loop in the shell...
On Tue, 13 Dec 2005 23:44:42 -0500 (EST), user wrote I always do loops in /bin/sh like this: for f in `cat file` ; do rm -rf $f ; done Hi, try instead: cat file | while read f ; do rm -f $f ; done In your command `file' is presented as 10,000 Maniacs MTV Unplugged - 01 - These Are Days.mp3 10,000 Maniacs MTV Unplugged - 02 - Eat For Two.mp3 10,000 Maniacs MTV Unplugged - 03 - Candy Everybody Wants.mp3 ... while the for-loop cuts the arguments at spaces. read reads the rest of the line in its last (and only -- in this case) argument into a single variable. Regards, Robert Easy. I like doing it like this. The problem is, when I am dealing with an input list that has multiple words per line, this chops it up and treats every word as a new line... For instance, lets say I have a file full of filenames, like this: # cat file 10,000 Maniacs MTV Unplugged - 01 - These Are Days.mp3 10,000 Maniacs MTV Unplugged - 02 - Eat For Two.mp3 10,000 Maniacs MTV Unplugged - 03 - Candy Everybody Wants.mp3 and I try to use the above loop on it, it thinks that every word is a line ... the above loop will attempt to delete the following files: 10,000 Maniacs MTV Unplugged - 01 - These (and so on) Even if I quote the variable $f, like: for f in `cat file` ; do rm -rf $f ; done it still does the same thing. - So my question is, what is a nice simple way to loop in the shell, as close to what I am doing above as possible, that does not have this problem ? Should I just be using something other than `cat` ? Or what ? THanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- Dr. Robert Eckardt---[EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Multiple CPUs
On Tue, Dec 13, 2005 at 08:50:39PM -0700, Bob Lee wrote: Quoting Robert Fitzpatrick [EMAIL PROTECTED]: Here's my top procs: last pid: 2079; load averages: 8.31, 8.91, 8.43up 0 +00:35:15 20:57:53 149 processes: 13 running, 136 sleeping Robert, FWIW, I did some research a short time ago on utilization and other aspects of watching performance and I found that 'load' provided better insight FOR ME into what the system is doing. I wasn't able to find much on load, but if I understand it correctly, part of what it shows is the queue on the processor(s). 8 seems high, even by today's standards and real high by the standards of yesteryear when the load function was originally created. You may want to spend some time researching load and see what you come up with. Load just measures how many processes want to run, not how fast or slow they're running. There is no substitute for actually measuring how much work your system can get done on your particular workload. Kris pgp16akc64L6N.pgp Description: PGP signature
When using make install for php5 it fails
When attempting to install php5 from ports it attempts to download, but I get the following errors: Attempting to fetch from ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/. fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/php-5.1.1.tar.bz2: File unavailable (e.g., file not found, no access) = Couldn't fetch it - please try to retrieve this = port manually into /usr/ports/distfiles/ and try again. *** Error code 1 Stop in /usr/ports/lang/php5. Is it asking me to cd into the /distfiles/ directory and then manually ftp the file? If so, what do I need to run in order to install it? Thanks in advance, Jose ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: I need a better way to loop in the shell...
user wrote: I always do loops in /bin/sh like this: for f in `cat file` ; do rm -rf $f ; done Easy. I like doing it like this. The problem is, when I am dealing with an input list that has multiple words per line, this chops it up and treats every word as a new line... For instance, lets say I have a file full of filenames, like this: # cat file 10,000 Maniacs MTV Unplugged - 01 - These Are Days.mp3 10,000 Maniacs MTV Unplugged - 02 - Eat For Two.mp3 10,000 Maniacs MTV Unplugged - 03 - Candy Everybody Wants.mp3 and I try to use the above loop on it, it thinks that every word is a line ... the above loop will attempt to delete the following files: 10,000 Maniacs MTV Unplugged - 01 - These (and so on) Even if I quote the variable $f, like: for f in `cat file` ; do rm -rf $f ; done it still does the same thing. - So my question is, what is a nice simple way to loop in the shell, as close to what I am doing above as possible, that does not have this problem ? Should I just be using something other than `cat` ? Or what ? you can redefine the character(s) used by your shell for delimiting words after expansion. In Bash , this is the env var IFS. so , if you know there are no ;, you can say export IFS=; [your loop here] export IFS= and you should be set. man bash for more info. Beto ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Lousy network performance ...
Turn on SNMP on your router plugged into the adsl modem and use a tool like mrtg to graph the circuit utilization. Also, access your adsl modem's error counters and find out what your signal to noise ratio is, what your received decibel level is, if your taking errors, and such. Some of the consumer modems do not have these counters accessible and can only be queried via the DSLAM operator. Your service provider is right to push the problem back to you because it almost certainly is not their network. If it was their network you would notice a definite change at different time of days - if they are overloaded then at 4:00am you should get lightning speed. If your DSL sucks at that time then it's your problem, not their network. Unfortunately for you, however, your service provider didn't explain to you what you need to do to properly troubleshoot this. It could possibly be that you ASSUMED the problem was their network and pissed them off when you called in. I would suggest you call them again, politely, and ask, not demand, that they check signal levels and error counters on your phone line. If they can't do this then have them refer you to the telco that can. One other piece of advice for you, if your goal is to prove the ISP is wrong then you ought to just find another ISP. Your goal should be to find out the cause of the slowness, not in assessing blame. If your using a consumer ISP it is likely the first level tech support people probably cannot help you since their main job is helping people fix their misguided PC desktops, and they usually aren't even allowed to touch the back end equipment. But they can in fact hurt you badly by simply not passing you to the upper-level tech people who could help you. So, be nice to them. Ted -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Kiffin Gish Sent: Tuesday, December 13, 2005 1:16 AM To: freebsd-questions@freebsd.org Subject: Lousy network performance ... I am having problems with a slow Internet DSL-connection, especially while surfing around the web. My service-provider claims that his network is just fine (of course!) and that the problem is because of all the 'so-called junk' I have configured on my home network on my side of the connection. On my side of the adsl-modem/router I have a router which is connected directly to two Windows XP desktops, via a switch to two FreeBSD machines (webserver and fileserver) and via a wireless link my combo FreeBSD/Windows XP laptop. I have Samba running for file exchange bweteen the Windows and FreeBSD boxes and I have port 80 opened on the adsl-moden/router to allow access to a couple of web sites I am running. Is there some kind of way to prove my ISP is wrong by doing a trace? What tools are available? How can I demonstrate that the bottleneck is not my home network but the DSL-connection? Thanks a lot in advance. -- Kiffin Rex Gish Gouda, The Netherlands ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.13.13/198 - Release Date: 12/12/2005 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: FreeBSD router two DSL connections
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Gayn Winters Sent: Tuesday, December 13, 2005 7:49 AM To: 'Ted Mittelstaedt'; 'Winelfred G. Pasamba'; 'Yance Kowara' Cc: freebsd-questions@freebsd.org Subject: RE: FreeBSD router two DSL connections -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ted Mittelstaedt -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Winelfred G. Pasamba Sent: Monday, December 12, 2005 8:26 AM To: Yance Kowara Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD router two DSL connections i use pfSense (www.pfsense.com) Sigh. THIS IS NOT LOAD BALANCING PLEASE QUIT BEING SLOPPY WITH YOUR NETWORKING TERMS I refer you to the pfsense website itself: http://faq.pfsense.org/index.php?sid=13525lang=enaction=artikelcat=6; id=18artlang=en Load balancing is on per connection basis, not a bandwidth basis. All packets in a given flow will go over only one link. In other words, they are redefining the term load balancing into something that is not understood by any previously accepted definition of load balancing, so that people like you can think your getting something for nothing. Once more - FTP to a remote site with your dual DSL links. Copy a FreeBSD ISO file to there. Watch as the upload speed IS NO FASTER THAN ONE OF THE LINKS. Ted I just looked at the pfsense site, and for an Internet Café, it looks promising. Two DSL lines to different ISP's does give a small amount of redundancy. Whether you use two routers or pfsense, you get some sort of load sharing but not load balancing. A more appropriate performance test for an Internet Café would be: Take a dozen PC's each to transfer a FreeBSD 6.0R ISO file from a dozen different mirror sites. Start them at the same time and see how long the all of the transfers take. You can test one DSL connection at N kbps and two DSL connections both at N kbps. You'll undoubtedly see the effect of load sharing if the dozen PC's are more or less evenly divided over the two DSL lines. The redundancy isn't great, and you will pay for it. Namely, two N kbps connections will cost you more than one 2N connection. If you ran my benchmark on a 2N connection you might actually see an improvement over two N kbps connections due to to its inherent load balancing. In any case, with a single (or a small number) of users (Ted's benchmark test) you would definitely see an improvement over two N kbps connections. Now the question: is a faster AND cheaper 2N connection a better setup than two N kbps connections for our fabled Internet Café? NO. As I pointed out the MOST COMMON failure mode on DSL is SLOWNESS not DISCONNECTS. If you have a 2N connection and one of the DSL modems starts going gunnysack, you are really going to have to know your stuff to be able to detect this and fix it. If the modem picks 9:35pm at night to do this, or some other inconvenient time, like seems to be the normal time for failures to happen, I guarentee your not going to get anyone at the ISP who knows shit from shinola to help you, and your going to be spinning your wheels. For the fabled Internet Cafe, really and truly and honestly, the crude solution that the previous owner worked out is the best - it is easy for relatively unsophisticated people (such as the minimum wage high school student you hired to watch the place after school) to troubleshoot, it is easy to get assistance from the ISP on the failed leg, since the configuration is very basic and standard, and it is dirt cheap. I realize the temptation to mess with a running setup is strong, and the temptation to change around something you buy so as to put your own stamp on it is even stronger. But it is a great way to have terrible monsters come storming out of the closet that the existing config was developed to work around. I'd personally go with the 2N connection. Almost all the time it would be better. Most large ISPs, for a little more money of course, will give you a faster response time on repairs. The ISP might even provide a bank of modems and you could implement multilink PPP as your backup. 2N is great if you need to ship large data items around and your site is way far away from the DSLAM. But it is more complex and so you need to be using it when the big guns both at the ISP and the organization are not in bed - meaning 9-5 - so that if problems happen they are available to get them solved. Think office environments for this. Ted ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Polling For 100 mbps Connections? (Was Re: Freebsd Theme Song)
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Drew Tomlinson Sent: Tuesday, December 13, 2005 6:48 AM To: Ted Mittelstaedt Cc: Michael Vince; [EMAIL PROTECTED]; freebsd-questions@freebsd.org; Kris Kennaway Subject: Re: Polling For 100 mbps Connections? (Was Re: Freebsd Theme Song) Ted Mittelstaedt wrote, On 12/13/2005 12:44 AM: -Original Message- From: Drew Tomlinson [mailto:[EMAIL PROTECTED] Sent: Monday, December 12, 2005 12:30 PM To: Ted Mittelstaedt Cc: Michael Vince; [EMAIL PROTECTED]; freebsd-questions@freebsd.org; Kris Kennaway Subject: Polling For 100 mbps Connections? (Was Re: Freebsd Theme Song) On 12/12/2005 8:13 AM Ted Mittelstaedt wrote: Michael, Fundamentally, here's the problem Danial is claiming exists: it takes a certain amount of time to get the packet clocked in from the network into the ethernet receiver. This is hardware dependent and cannot be changed. It takes a certain amount of time to get the packet out of the hardware in the ethernet card into main ram, this also hardware dependent and cannot be changed. (unless the device driver is terribly inefficient, which we will assume it's not) Once in main ram, the information in the packet has to go through a number of code statements. The more code statements the longer the information in the packet is sitting around in the FreeBSD system's memory. It then takes a certain amount of time to get the information out of main memory into the other sending ethernet nic's buffers, and it takes time to get it out of the sending nic back to the wire. Danial is claiming the slowness is in the main ram section of things, not in the ethernet driver code. polling makes the ethernet driver more efficient at high data rates, but it does nothing for the speed of processing within the TCPIP stack itself. At low data rates polling is less efficient than the interrupt method. And unless the nic driver is terribly inefficient to start with, the time it adds to the packet path in the system is minor compared to the time spent in the TCP/IP stack. Ted Thanks for the explanation. So would polling be beneficial or detrimental for a 100 mbps Ethernet card? Yes, if you were running 100Mbt's of bandwidth through it. I assume you mean yes it's beneficial? :) Yes. :-) Not sure if 100 mbps is considered high or low speed. I'm specifically interested in NetGear cards using the dc driver or DLink cards using the rl driver. The rl chipset isn't known as a very good chipset. YMMV Yeah, I've heard that a lot. It was an old card I had lying around and it seems to work OK for me. I'm not using it for anything other that connecting to a 802.11b wireless bridge. Very little traffic. This post is passing through 2 of these cards on my home BSD router. Fortunately these days since so many mboards are coming with onboard ethernet, the used market is awash in nice PCI ethernet cards. Some of the Netgear cards use clone 21143 chipsets which are extremely inferior to the real thing. In particular if your Netgear card is using a PNIC chipset it is pretty bad with serious performance penalty. This is documented in Section 4 of the dc manpage. This is disapointing. I was under the impression that NetGear cards were pretty good. But now I looked closer at dmesg.boot and see I have the PNIC chipset you mention. I'll read the dc man page to see what penalties I'm suffering. People seem to have good results with polling on the fxp cards. Ah, the built in interface on a HP e60 server I have. It's an old dog used as a file server. It has been nothing but reliable and is still chuggin' along just fine. I'll enable polling on it and see if there's any noticeable improvement in transfer rates. The machine that typically is used for large file transfers to and from the e60 is a Windows XP box that has a Nvidia Nforce 4 chipset and whatever intergrated ethernet port that comes with that chipset. Are there any known issues with this setup that would invalidate my test? Yes. The old dog may not be able to take packets off the fxp chip fast enough if your hitting it with 100Mbt of data - which your Nforce chipset running on a nice new multigigahertz mboard is probably able to do. This is a CPU speed thing not an architecture thing, and polling won't make any difference. But, OTOH, windows is pretty inefficient so the network performance of a multigigahertz windows box might just equal that of a under-a-gigahertz mboard running UNIX. Ted ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: kern.maxdsiz big memory/tuning questions
Michael Dexter wrote: [ ... ] However, I am not clear if: 1. It is permitted to use M and G notation (kern.maxsiz=1G)? - some say yes, some say no and I would prefer not risk the system not booting. Using 1G or some number followed by M is working for me in 5.x and 6.0. 2. Which tunables actually matter beyond kern.maxdsiz? Some say only kern.maxdsiz and some suggest all three. 'man tuning' and the handbook (~/handbook/configtuning-kernel-limits.html) only goes into maxfiles and maxusers. Searches of this list and Google have yeilded what you see above. Could someone please share some wisdom or docs on this matter? The stuff listed in /etc/defaults/loader.conf is probably the most complete reference outside of the kernel source code itself, but you might find looking at the corresponding sysctl -d output for the variables in question. Note that the loader and sysctl don't always use the same name. Other than that, check what limits you're seeing in the shell you run. And double-check under /bin/sh too, for cron jobs or stuff started at boot. :-) -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: you need mirror from israel?
YairNet LinuxServ wrote: Hello we Compay WebHosting (Www.linuxserv.co.il) You need to mirror freebsd from israel ,if yes give me help so mirror good day. It's likely that this document will tell you all about mirroring FreeBSD: http://www.freebsd.org/doc/en_US.ISO8859-1/articles/hubs/article.html Thanks for your interest, -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
doubts
Hi guys This is Anirban. I have a doubts on the following question. How to write a shell program that will check whether a server is up or down (on ping) and log the report to a file. Hope i will receive my answer soon. With regards Anirban. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
nfs exporting mounted iso files ?
Hello Family, I have been trying to export four mounted iso images under /mnt on my FreeBSD-5.4 box via nfs and I can export everything under /mnt but the iso's don't show up on the client, only the directories. First I mounted all the iso's with the following series of commands. mdconfig -a -t vnode -f file1.iso -u 1 mount -t cd9660 /dev/md1 /mnt/loop1 mdconfig -a -t vnode -f file1.iso -u 2 mount -t cd9660 /dev/md2 /mnt/loop2 mdconfig -a -t vnode -f file3.iso -u 3 mount -t cd9660 /dev/md3 /mnt/loop3 mdconfig -a -t vnode -f file4.iso -u 4 mount -t cd9660 /dev/md4 /mnt/loop4 # ere is my /etc/exportfs on the FreeBSD-5.4 server /mnt-maproot=0 -network 192.168.1.0 -mask 255.255.255.0 # Here are the mounted iso's via the mount command on the server. /dev/md1 on /mnt/loop1 (cd9660, local, read-only) /dev/md2 on /mnt/loop2 (cd9660, local, read-only) /dev/md3 on /mnt/loop3 (cd9660, local, read-only) /dev/md4 on /mnt/loop4 (cd9660, local, read-only) # On the other Unix client box I can mount the exported /mnt and see all the /mnt/loop* but no contents. On the other Unix client box I can also mount /mnt/loop1 and still not see any contents under /mnt/loop1 On the server the directories are full of contents under /mnt/loop1 /mnt/loop2 /mnt/loop3 /mnt/loop4 I'm thinking that I can nfs export iso filesystems on other flavors of Unix like systems but not on FreeBSD. Am I missing anything obvious or...? TIA __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Can't connect to local MySQL server
I am attempting to create a mysql database so that I can install Group Office using mysqladmin create groupoffice and I keep getting the following errors: mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)' Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists! I looked in /tmp and mysql.sock is not there. Can someone please tell me what is wrong and what I need to do to correct this? Thank you in advance, Jose ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Getting the network traffic amount since the interface went up
in message [EMAIL PROTECTED], wrote Chuck Swiger thusly... Parv wrote: ... Is there a way to find out the amount of traffic (in out) since a network interface has been up (not since the OS has been up)? There are lots of solutions to this problem, it kinda depends on what you're trying to do. Well, actually i want to know the limit(s) (related to amount of data and number of connections) at which SMC Barricade 7004ABR router allows only the already established connections and refuses to allow any new ones. This is all related to download a large torrent via rtorrent. Rebooting the router solves the problem until i decide to restart the download. You might set up an IPFW rule which matches just the traffic you care about, and look at ipfw -a l. You can zero the counters at will if you like, too. From the ipfw manpage: Per-flow queueing can be useful for a variety of purposes. A very simple one is counting traffic: Thanks for bringing that to my attention as I mainly use ipf have not paid much of a look to ipfw. - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: When using make install for php5 it fails
Jose Borquez schrieb: When attempting to install php5 from ports it attempts to download, but I get the following errors: Attempting to fetch from ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/. fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/php-5.1.1.tar.bz2: File unavailable (e.g., file not found, no access) [...] Is this the complete output? Have you set MASTER_SITES somewhere, e.g. in /etc/make.conf? If so, remove it. A workaround would be to download the file manually and place it in ports/distfiles. After you have done this, use the port again to install it. Björn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Can't connect to local MySQL server
Jose Borquez schrieb: I am attempting to create a mysql database so that I can install Group Office using mysqladmin create groupoffice and I keep getting the following errors: mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)' Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists! I looked in /tmp and mysql.sock is not there. Can someone please tell me what is wrong and what I need to do to correct this? I install MySQL this way and the socket is there for me: # rm -R /var/db/mysql // removes old databases # pkg_add -r mysql41-server // install software # ls -l /tmp/mysql.sock ls: /tmp/mysql.sock: No such file or directory # /usr/local/etc/rc.d/mysql-server.sh forcestart// start server # ls -l /tmp/mysql.sock srwxrwxrwx 1 mysql wheel 0 14 Dez 08:32 /tmp/mysql.sock # echo 'mysql_enable=YES' /etc/rc.conf That's it. Björn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: I need a better way to loop in the shell...
Hello user, This worked for me: xargs -I% rm % file Björn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]