distinguish soft and hard kernel interrupts
is there a way to distinguish hardware and software interrupts? it 'top' resuslts 70.0% interrupt I want to figure out how much there soft and hard interrupts ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
what is a correct way to build ports with clang
Hi all. I recently stumbled upon minor inconsistency when building misc/mc. The build goes well when CPP is unset or when CPP=clang -E, but fails when CPP=clang-cpp: /tmp/ports/usr/ports/misc/mc/work/mc-4.7.5.5/config.log: configure:23603: checking for slang.h configure:23618: clang-cpp -ltermcap -I/usr/local/include -I/usr/include -L/usr/lib conftest.c Stack dump: 0. Program arguments: clang-cpp -ltermcap -I/usr/local/include -I/usr/include -L/usr/lib conftest.c 1. Compilation construction 2. Building compilation actions configure:23618: $? = 139 What is the correct way to build ports with clang? Wiki states that CPP should be set to clang-cpp for everyone however this doesn't work here. -- Sphinx of black quartz judge my vow. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
mkisofs increasing iso size by 100 MB
I am trying to customise the bsdinstall auto script. I can mount the iso (amd64 arch / 9.0 RELEASE) and change the shell script as per my requirement. Once I try to re-create the iso file using mkisofs utility, the size of the final iso increases by 100 MB if -J (joliet) mode is used. If I remove the joliet mode, it still increases by around 97 MB. Even if no changes are made to any of the files, the result is same. The process I have followed is as follows: # mkdir /usr/iso # cd /usr/iso # dd if=/dev/cd0 of=org.iso bs=2048 # mdconfig -a -t vnode -f org.iso -u 0 # mount_cd9660 /dev/md0 /mnt # mkdir staging # cd staging # rsync -a /mnt/ . With Joliet mode # mkisofs -J -R -V CustomBSD -no-emul-boot -b boot/cdboot -iso-level 3 -o /usr/iso/my_custom.iso . Without Joliet mode # mkisofs -R -V CustomBSD -no-emul-boot -b boot/cdboot -iso-level 3 -o /usr/iso/my_custom1.iso . The original iso is 612M, custom.iso is 712M and custom1.iso is 709M. System details: FreeBSD amd64 9.0 RELEASE running inside a virtualbox with 2GB RAM. Where am I going wrong? Amitabh ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
BSD equivalent of GNU/Linux cp -rpu ?
What is the BSD equivalent of Linux cp -rpu ? I tried that in FreeBSD, or maybe it was NetBSD, and -u was not recognized. I think the issue would be differences between GNU/Linux coreutils and util-linux and the BSD counterparts. the -u flag, for update, means not to copy files that exist in both the source and destination unless the source version is newer. Idea is to backup a directory, recursively, without copying old files that haven't changed. Would I use something like rsync or pax ? Tom ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: what is a correct way to build ports with clang
On Wed, Jan 11, 2012 at 12:40:18PM +0200, Volodymyr Kostyrko wrote: Hi all. I recently stumbled upon minor inconsistency when building misc/mc. The build goes well when CPP is unset or when CPP=clang -E, but fails when CPP=clang-cpp: /tmp/ports/usr/ports/misc/mc/work/mc-4.7.5.5/config.log: configure:23603: checking for slang.h configure:23618: clang-cpp -ltermcap -I/usr/local/include -I/usr/include -L/usr/lib conftest.c Stack dump: 0. Program arguments: clang-cpp -ltermcap -I/usr/local/include -I/usr/include -L/usr/lib conftest.c 1. Compilation construction 2. Building compilation actions configure:23618: $? = 139 What is the correct way to build ports with clang? Wiki states that CPP should be set to clang-cpp for everyone however this doesn't work here. This can be reduced to just `clang-cpp -lanything` and I guess it's a bug... Yuri ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Building FreeBSD for two or more architectures but not all
How would I build FreeBSD, in this case 9.0-RELEASE, for two or more architectures, in this case i386 and amd64? One build (amd64) would update the present system (9.0 RC3), but the other would go on a USB stick, likely 16 GB. Real question is how to keep things like /usr/obj and other things from the two builds separate. I don't want to 'make universe' when I won't run on anything other than i386 and amd64. I want to build both on the new computer because the old computer is short on disk space and has only 256 MB RAM. Tom ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: what is a correct way to build ports with clang
On Wed, Jan 11, 2012 at 03:04:37PM +0400, Yuri Pankov wrote: On Wed, Jan 11, 2012 at 12:40:18PM +0200, Volodymyr Kostyrko wrote: Hi all. I recently stumbled upon minor inconsistency when building misc/mc. The build goes well when CPP is unset or when CPP=clang -E, but fails when CPP=clang-cpp: /tmp/ports/usr/ports/misc/mc/work/mc-4.7.5.5/config.log: configure:23603: checking for slang.h configure:23618: clang-cpp -ltermcap -I/usr/local/include -I/usr/include -L/usr/lib conftest.c Stack dump: 0. Program arguments: clang-cpp -ltermcap -I/usr/local/include -I/usr/include -L/usr/lib conftest.c 1. Compilation construction 2. Building compilation actions configure:23618: $? = 139 What is the correct way to build ports with clang? Wiki states that CPP should be set to clang-cpp for everyone however this doesn't work here. This can be reduced to just `clang-cpp -lanything` and I guess it's a bug... And it seems to be http://www.llvm.org/bugs/show_bug.cgi?id=11581. Yuri ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Building FreeBSD for two or more architectures but not all
Thomas Mueller wrote: How would I build FreeBSD, in this case 9.0-RELEASE, for two or more architectures, in this case i386 and amd64? One build (amd64) would update the present system (9.0 RC3), but the other would go on a USB stick, likely 16 GB. Real question is how to keep things like /usr/obj and other things from the two builds separate. I don't want to 'make universe' when I won't run on anything other than i386 and amd64. I want to build both on the new computer because the old computer is short on disk space and has only 256 MB RAM. You can add TARGET=i386 to 'make' commands. It would use other directory inside /usr/obj. -- Sphinx of black quartz judge my vow. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: BSD equivalent of GNU/Linux cp -rpu ?
On 11/01/2012 11:00, Thomas Mueller wrote: What is the BSD equivalent of Linux cp -rpu ? Idea is to backup a directory, recursively, without copying old files that haven't changed. Would I use something like rsync or pax ? rsync(1) is the standard way of doing this. For a nice backup system that works using rsync and that preserves filesystem history in a space efficient way by cunning use of hard links, take a look at rsnapshot -- http://rsnapshot.org/ Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Network throughput
Hi guys, Been a while since i've had need to post to the list :) I'm trying to gather network throughput information on a box of ours and I'm having a little problem, the throughput is to be measured on a per-minute basis and i've been trying to use netstat for this (count now - count before/timeperiod) however netstats byte counter resets far too quickly to be usefull (this is a busy gb link), i've had a look at vnstat but this only seems to operation on an hour or higher and I need to get down to the minute, does anyone have any suggestions of a tool better suited to this ? Mike Woods Full of squishy cynicism ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Network throughput
On 11/01/2012 11:24, Mike Woods wrote: Hi guys, Been a while since i've had need to post to the list :) I'm trying to gather network throughput information on a box of ours and I'm having a little problem, the throughput is to be measured on a per-minute basis and i've been trying to use netstat for this (count now - count before/timeperiod) however netstats byte counter resets far too quickly to be usefull (this is a busy gb link), i've had a look at vnstat but this only seems to operation on an hour or higher and I need to get down to the minute, does anyone have any suggestions of a tool better suited to this ? ntop? Also, Googling for 'netflow freebsd' produces a lot of interesting looking pages. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: FreeBSD9 + PHP
On Tue, 10 Jan 2012 17:14:30 +0100 Damien Fleuriot m...@my.gd wrote: On 1/10/12 4:34 PM, Alejandro Imass wrote: On Tue, Jan 10, 2012 at 9:32 AM, Damien Fleuriot m...@my.gd wrote: [...] Mine is, as I pointed out in my earlier reply to Dick, that people who don't even *use* apache shouldn't get stuck with a *useless apache module* just because they installed PHP. A possible alternative that would keep everyone happy would be *another* package that actually includes the module, like for example a package called mod_php5, it would install the stuff from php5 + the apache module. Could be, something like mod_perl, but contrary from Perl, PHP is not very useful without Apache anyway. And who are you to claim that php is not very useful w/o apache anyway ? I mean, just because it falls within your needs doesn't mean it's a good option for everyone. In the same way, I could claim that rsyslogd should replace syslogd in the base system because I find it better, so everyone should use it. We use PHP here in a production environment on many servers that have never seen, and will never ever see, apache. On some it runs daemons, on some it runs scripts, on yet some others it's served by either nginx or lighttpd, not to mention dedicated fastcgi servers that don't have a web server running to begin with. The thing is much more users probably use PHP with Apache than standalone. Although you described other way, it is not the way majority of user would use. IMO the best option would be a separate package, enforcing an apache module on people that will never ever use it is just plain dumb. This also seems to be the opinion of the port's manager, seeing mod_php is unselected by default. Separate package would probably be the best option. But default flags/packages should be ready-configured for most of users, shouldn't they? For others there are still ports. Just my 2 cents. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org -- František Farka ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
doscmd
Hey, Each time I run doscmd It fails and gives me: # doscmd ax=ff00 bx= cx=3000 dx= si= di= sp=7ffe bp= cs= ss=9800 ds= es= ip= eflags=b0206 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 addb %al,(%bx+%si) doscmd: fatal error unsupported instruction I'm not sure how to go about fixing this. From Kyle ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Updating FreeBSD
Hello, I'm trying to update my FreeBSD install on two servers. They are mostly identical. So, I've builded world and kernel on first srv, updated it, without any problems. Then exported /usr/src and /usr/obj by NFS to another machine, then installed kernel, but can't install world. It says: -- Installing everything -- cd /usr/src; make -f Makefile.inc1 install === share/info (install) === lib (install) === lib/csu/amd64 (install) install -o root -g wheel -m 444 crt1.o crti.o crtn.o Scrt1.o gcrt1.o /usr/lib === lib/libc (install) install -C -o root -g wheel -m 444 libc.a /usr/lib install -C -o root -g wheel -m 444 libc_p.a /usr/lib install: libc_p.a: No such file or directory *** Error code 71 Stop in /usr/src/lib/libc. *** 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. *** Error code 1 I don't have any options in make.conf on first machine, nor on second machine. I've googled a little and found, that _p is profiling library and it can be ignored with -DNO_PROFILE option. But in this case, process stops with: === lib/libipx (install) install -C -o root -g wheel -m 444 libipx.a /usr/lib install: libipx.a: No such file or directory *** Error code 71 Stop in /usr/src/lib/libipx. *** 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. *** Error code 1 Stop in /usr/src. So, what I'm doing wrong? Thanks for any help. p.s. Sorry for my poor English. --- With Best Regards / Ystävällisin terveisin Artem Kajalainen ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Updating FreeBSD
Артем Каялайнен wrote: I don't have any options in make.conf on first machine, nor on second machine. I've googled a little and found, that _p is profiling library and it can be ignored with -DNO_PROFILE option. But in this case, How about compairing /etc/src.conf? -- Sphinx of black quartz judge my vow. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Network throughput
On 11.01.2012 13:24, Mike Woods wrote: I'm trying to gather network throughput information on a box of ours and I'm having a little problem, the throughput is to be measured on a per-minute basis and i've been trying to use netstat for this (count now - count before/timeperiod) however netstats byte counter resets far too quickly to be usefull (this is a busy gb link), i've had a look at vnstat but this only seems to operation on an hour or higher and I need to get down to the minute, does anyone have any suggestions of a tool better suited to this ? I have been using net-snmp daemon in combination with mrtg. Displays nice traffic graphs. Greetings, Ott ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Updating FreeBSD
2012/1/11 Volodymyr Kostyrko c.kw...@gmail.com: How about compairing /etc/src.conf? Wow, you are 100% right. My bad. Thanks. --- With Best Regards / Ystävällisin terveisin Artem Kajalainen ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: BSD equivalent of GNU/Linux cp -rpu ?
On Wed, 11 Jan 2012 06:00:37 -0500, Thomas Mueller wrote: the -u flag, for update, means not to copy files that exist in both the source and destination unless the source version is newer. Hmmm... sounds as if you mean cpdup (which you'll find in the ports collection). Would I use something like rsync or pax ? Yes, rsync also sounds promising. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Network throughput
Quoting Matthew Seaman m.sea...@infracaninophile.co.uk: ntop? I considered this but what I really need is something I can run purley from the command line one shoot like netstat (but without counter resetting problems) Also, Googling for 'netflow freebsd' produces a lot of interesting looking pages. I've had a quick look and that might be usefull, I still need to figure out how to get the data out in a form that's usefull to me but it has promise :) Mike Woods Full of squishy cynicism ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Network throughput
On 11/01/2012 13:47, Mike Woods wrote: Also, Googling for 'netflow freebsd' produces a lot of interesting looking pages. I've had a quick look and that might be usefull, I still need to figure out how to get the data out in a form that's usefull to me but it has promise :) Another possibility -- net-mgmt/net-smtp compiled with the 64bit interface counters. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: Network throughput
On 11/01/2012 12:07, Ott Köstner wrote: On 11.01.2012 13:24, Mike Woods wrote: I'm trying to gather network throughput information on a box of ours and I'm having a little problem, the throughput is to be measured on a per-minute basis and i've been trying to use netstat for this (count now - count before/timeperiod) however netstats byte counter resets far too quickly to be usefull (this is a busy gb link), i've had a look at vnstat but this only seems to operation on an hour or higher and I need to get down to the minute, does anyone have any suggestions of a tool better suited to this ? I have been using net-snmp daemon in combination with mrtg. Displays nice traffic graphs. Yes -- mrtg is nice, but it relies on the snmp interface counters, and in this case with Gb traffic levels a 32bit counter will wrap in a few minutes. mrtg samples the interface counter every 5 minutes IIRC, so would probably be confused by that wrap-around happening at around the same frequency. Unless you switch to using 64bit interface counters, but I don't know if mrtg can cope with integer types that wide... Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: Network throughput
Quoting Matthew Seaman m.sea...@infracaninophile.co.uk: On 11/01/2012 13:47, Mike Woods wrote: Also, Googling for 'netflow freebsd' produces a lot of interesting looking pages. I've had a quick look and that might be usefull, I still need to figure out how to get the data out in a form that's usefull to me but it has promise :) Another possibility -- net-mgmt/net-smtp compiled with the 64bit interface counters. Ott Köstner made a similar suggestion, I'm going to have a look into it, it might be a little more work writing the script for it but it might well be a good option! Mike Woods Full of squishy cynicism ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: mkisofs increasing iso size by 100 MB
On 01/-10/-28163 20:59, Amitabh Kant wrote: I am trying to customise the bsdinstall auto script. I can mount the iso (amd64 arch / 9.0 RELEASE) and change the shell script as per my requirement. Once I try to re-create the iso file using mkisofs utility, the size of the final iso increases by 100 MB if -J (joliet) mode is used. If I remove the joliet mode, it still increases by around 97 MB. Even if no changes are made to any of the files, the result is same. The process I have followed is as follows: # mkdir /usr/iso # cd /usr/iso # dd if=/dev/cd0 of=org.iso bs=2048 # mdconfig -a -t vnode -f org.iso -u 0 # mount_cd9660 /dev/md0 /mnt # mkdir staging # cd staging # rsync -a /mnt/ . With Joliet mode # mkisofs -J -R -V CustomBSD -no-emul-boot -b boot/cdboot -iso-level 3 -o /usr/iso/my_custom.iso . Without Joliet mode # mkisofs -R -V CustomBSD -no-emul-boot -b boot/cdboot -iso-level 3 -o /usr/iso/my_custom1.iso . The original iso is 612M, custom.iso is 712M and custom1.iso is 709M. System details: FreeBSD amd64 9.0 RELEASE running inside a virtualbox with 2GB RAM. Where am I going wrong? There are many hardlinked files on the iso images. By the procedure above, you have them included multiple times. From the rsync manpage: Note that -a does not preserve hardlinks, because finding multiply-linked files is expensive. You must separately specify -H. You will probably want -cache-inodes for mkisofs as well (and maybe other options). Or you could look at src/release/amd64/mkisoimages.sh for the use of makefs -t cd9660. Cheers, Jan Henrik ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Network throughput
Здравствуйте, Mike. Вы писали 11 января 2012 г., 13:24:00: MW Hi guys, Been a while since i've had need to post to the list :) MW I'm trying to gather network throughput information on a box of ours MW and I'm having a little problem, the throughput is to be measured on a MW per-minute basis and i've been trying to use netstat for this (count MW now - count before/timeperiod) however netstats byte counter resets MW far too quickly to be usefull (this is a busy gb link), i've had a MW look at vnstat but this only seems to operation on an hour or higher MW and I need to get down to the minute, does anyone have any suggestions MW of a tool better suited to this ? snmp will help #!/usr/bin/perl use warnings; use strict; my $snmpauth= $ARGV[0];#auth string like '-v 1 passhere', supplied asis to snmpget my $host= $ARGV[1];# my $ifIndex= $ARGV[2]; #interface name or index if( !$ifIndex ) { print `/usr/local/bin/snmpwalk $snmpauth $host .`; exit 0; } #print `/usr/local/bin/snmpwalk $snmpauth $host IF-MIB::ifName`; if( $ifIndex =~ /^[a-zA-Z]/ ) { #print /usr/local/bin/snmpwalk $snmpauth $host IF-MIB::ifName; `/usr/local/bin/snmpwalk $snmpauth $host IF-MIB::ifName` =~ /\.(\d+).+$ifIndex/; $ifIndex= $1; } my $octetsIn= `/usr/local/bin/snmpget $snmpauth -O qv $host .1.3.6.1.2.1.31.1.1.1.6.$ifIndex`; chop $octetsIn; #IF-MIB::ifHCInOctets my $octetsOut= `/usr/local/bin/snmpget $snmpauth -O qv $host .1.3.6.1.2.1.31.1.1.1.10.$ifIndex`; chop $octetsOut; #IF-MIB::ifHCOutOctets my $packetsIn= `/usr/local/bin/snmpget $snmpauth -O qv $host .1.3.6.1.2.1.2.2.1.11.$ifIndex`;chop $packetsIn; #IF-MIB::ifInUcastPkts my $packetsOut= `/usr/local/bin/snmpget $snmpauth -O qv $host .1.3.6.1.2.1.2.2.1.17.$ifIndex`;chop $packetsOut;#IF-MIB::ifOutUcastPkts print octetsIn:$octetsIn octetsOut:$octetsOut packetsIn:$packetsIn packetsOut:$packetsOut\n; -- С уважением, Коньков mailto:kes-...@yandex.ru ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Network throughput
On 11.01.2012 16:57, Matthew Seaman wrote: Yes -- mrtg is nice, but it relies on the snmp interface counters, and in this case with Gb traffic levels a 32bit counter will wrap in a few minutes. mrtg samples the interface counter every 5 minutes IIRC, so would probably be confused by that wrap-around happening at around the same frequency. Unless you switch to using 64bit interface counters, but I don't know if mrtg can cope with integer types that wide... Cheers, Matthew Yes, I have seen that wrapping with few hundred megabit port traffic. New snmp port has 64 bit counter option. Personally, I have already built a new snmp with 64 bit counter option, but not yet tested if it works. Maybe somebody here can comment? regards, Ot ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Network throughput
In the last episode (Jan 11), Ott Köstner said: On 11.01.2012 16:57, Matthew Seaman wrote: Yes -- mrtg is nice, but it relies on the snmp interface counters, and in this case with Gb traffic levels a 32bit counter will wrap in a few minutes. mrtg samples the interface counter every 5 minutes IIRC, so would probably be confused by that wrap-around happening at around the same frequency. Unless you switch to using 64bit interface counters, but I don't know if mrtg can cope with integer types that wide... Cheers, Matthew Yes, I have seen that wrapping with few hundred megabit port traffic. New snmp port has 64 bit counter option. Personally, I have already built a new snmp with 64 bit counter option, but not yet tested if it works. Maybe somebody here can comment? Definitely works. You will have to tell mrtg to make SNMPv2 requests for the 64-bit OIDs to appear, but that's it. -- Dan Nelson dnel...@allantgroup.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Apache segmentation fault
Upgraded php52 to php53 by pkg_delete of php5 and porinstall php52. Then I had to manually resort back to php52 by pkg_delete and then portinstall and now getting a seg fault when restarting apache22 on this FreeBSD 8.1 server. I narrowed it down to not the php module, but the two ldap modules I have in apache... mail# cat httpd.conf|grep ldap #LoadModule authnz_ldap_module libexec/apache22/mod_authnz_ldap.so #LoadModule ldap_module libexec/apache22/mod_ldap.so With these two lines commented out, apache restarts without the seg fault. Tried to force pkg_delete on apache and then portinstall to rebuild these modules, but same issue afterward. The php module loads without error, but getting download prompts when trying to access php pages. Not getting any help from messages or httpd-error logs and all was working before I messed it up. My question is what I should try next to try and fix this issue. Should I force pkg_delete and rebuild all php packages or ldap packages? Or some other approach? Thanks for any help, Robert -- Robert rob...@webtent.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Apache segmentation fault
On Jan 11, 2012 12:39 PM, Robert Fitzpatrick rob...@webtent.org wrote: Upgraded php52 to php53 by pkg_delete of php5 and porinstall php52. Then I had to manually resort back to php52 by pkg_delete and then portinstall and now getting a seg fault when restarting apache22 on this FreeBSD 8.1 server. I narrowed it down to not the php module, but the two ldap modules I have in apache... mail# cat httpd.conf|grep ldap #LoadModule authnz_ldap_module libexec/apache22/mod_authnz_ldap.so #LoadModule ldap_module libexec/apache22/mod_ldap.so With these two lines commented out, apache restarts without the seg fault. Tried to force pkg_delete on apache and then portinstall to rebuild these modules, but same issue afterward. The php module loads without error, but getting download prompts when trying to access php pages. Not getting any help from messages or httpd-error logs and all was working before I messed it up. My question is what I should try next to try and fix this issue. Should I force pkg_delete and rebuild all php packages or ldap packages? Or some other approach? Thanks for any help, Robert -- Robert rob...@webtent.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org hi, you probably need to replace php.ini ... 5.3 barfs with a 5.2 config file... not sure if the pkg thingy would wipe your config. waitman ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Apache segmentation fault
On Jan 11, 2012 12:54 PM, Waitman Gobble gobble...@gmail.com wrote: On Jan 11, 2012 12:39 PM, Robert Fitzpatrick rob...@webtent.org wrote: Upgraded php52 to php53 by pkg_delete of php5 and porinstall php52. Then I had to manually resort back to php52 by pkg_delete and then portinstall and now getting a seg fault when restarting apache22 on this FreeBSD 8.1 server. I narrowed it down to not the php module, but the two ldap modules I have in apache... mail# cat httpd.conf|grep ldap #LoadModule authnz_ldap_module libexec/apache22/mod_authnz_ldap.so #LoadModule ldap_module libexec/apache22/mod_ldap.so With these two lines commented out, apache restarts without the seg fault. Tried to force pkg_delete on apache and then portinstall to rebuild these modules, but same issue afterward. The php module loads without error, but getting download prompts when trying to access php pages. Not getting any help from messages or httpd-error logs and all was working before I messed it up. My question is what I should try next to try and fix this issue. Should I force pkg_delete and rebuild all php packages or ldap packages? Or some other approach? Thanks for any help, Robert -- Robert rob...@webtent.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org hi, you probably need to replace php.ini ... 5.3 barfs with a 5.2 config file... not sure if the pkg thingy would wipe your config. waitman sorry, somehow i missed that paragraph about commenting out the other modules... hope i didn't send you on a wild goose chase for nothing. but the behavior you describe sounds like what happens running with a mismatched php.ini... i once tried to narrow down but decided it more productive to start with a fresh ini file. i believe the problem has to do with the session config lines. that and the way it handles cgi variables (see the EPGS section) are the two biggest changes i noticed. anyway you might check if thats the issue easily by renaming php.ini.. it should run without it. (at least 5.2 would havent tried 5.3) if it runs without php.ini then that could be the problem. by the way you are restarting apache after the changes right? also verify that the modules listed in httpd.conf exist in the paths specified... hope that helps! waitman ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Apache segmentation fault
On 1/11/2012 4:39 PM, Waitman Gobble wrote: sorry, somehow i missed that paragraph about commenting out the other modules... hope i didn't send you on a wild goose chase for nothing. but the behavior you describe sounds like what happens running with a mismatched php.ini... i once tried to narrow down but decided it more productive to start with a fresh ini file. i believe the problem has to do with the session config lines. that and the way it handles cgi variables (see the EPGS section) are the two biggest changes i noticed. anyway you might check if thats the issue easily by renaming php.ini.. it should run without it. (at least 5.2 would havent tried 5.3) if it runs without php.ini then that could be the problem. by the way you are restarting apache after the changes right? also verify that the modules listed in httpd.conf exist in the paths specified... hope that helps! waitman Thanks for that, found my php.ini was symlink'd to php.ini-recommended, which is now missing. PHP working now, but still no help with the segmentation fault. I have tested my ldap client pkgs and perl-LDAP to work fine, but when I uncomment those modules, I get the fault when restarting apache mail# pwd /usr/local/etc mail# cat apache22/httpd.conf|grep ldap LoadModule authnz_ldap_module libexec/apache22/mod_authnz_ldap.so LoadModule ldap_module libexec/apache22/mod_ldap.so mail# cat apache22/httpd.conf | grep ServerRoot ServerRoot /usr/local mail# cat apache22/httpd.conf | grep ldap LoadModule authnz_ldap_module libexec/apache22/mod_authnz_ldap.so LoadModule ldap_module libexec/apache22/mod_ldap.so mail# ls -lah /usr/local/libexec/apache22/*ldap* -rwxr-xr-x 1 root wheel54K Jan 11 12:29 /usr/local/libexec/apache22/mod_authnz_ldap.so -rwxr-xr-x 1 root wheel 115K Jan 11 12:29 /usr/local/libexec/apache22/mod_ldap.so mail# rc.d/apache22 restart Performing sanity check on apache22 configuration: Syntax OK Segmentation fault (core dumped) If I comment out the two modules shown, it restarts without issue. -- Robert rob...@webtent.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
pkg_add -r and a local package repo
I've figured out how to point PACKAGESITE at a URL of my choosing. First, it looks like pkg_add -r needs the full package name. Is there any way to give it zsh instead of zsh-4.3.15? Second, it looks like it won't install dependencies. This is a problem. Can I get it to search and install dependencies somehow? -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.posterous.com/ for Smalltalk discussion ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: pkg_add -r and a local package repo
On Jan 11, 2012, at 2:03 PM, Randal L. Schwartz wrote: First, it looks like pkg_add -r needs the full package name. Is there any way to give it zsh instead of zsh-4.3.15? Create a symlink from zsh-4.3.15.tbz to zsh.tbz on the package server. You can also control this at the time of building the package via: www.freebsd.org/doc/en/books/porters-handbook/makefile-naming.html#AEN647 5.2.4 LATEST_LINK LATEST_LINK is used during package building to determine a shortened name to create links that can be used by pkg_add -r. This makes it possible to, for example, install the latest perl version by running pkg_add -r perl without knowing the exact version number. This name needs to be unique and obvious to users. Second, it looks like it won't install dependencies. This is a problem. Can I get it to search and install dependencies somehow? Does the package in question have its dependencies properly specified? Regards, -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: pkg_add -r and a local package repo
Jason == Jason Helfman jhelf...@e-e.com writes: Jason Why not just point the PACKAGESITE to the Latest directory of the tree you Jason want to install? I am, but it has zsh-4.3.15.tbz and not zsh.tbz, so I have to pkg_add -r zsh-4.3.15, and that's the annoying part. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.posterous.com/ for Smalltalk discussion ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: pkg_add -r and a local package repo
On Wed, Jan 11, 2012 at 02:23:48PM -0800, Chuck Swiger thus spake: On Jan 11, 2012, at 2:03 PM, Randal L. Schwartz wrote: First, it looks like pkg_add -r needs the full package name. Is there any way to give it zsh instead of zsh-4.3.15? Create a symlink from zsh-4.3.15.tbz to zsh.tbz on the package server. You can also control this at the time of building the package via: www.freebsd.org/doc/en/books/porters-handbook/makefile-naming.html#AEN647 5.2.4 LATEST_LINK LATEST_LINK is used during package building to determine a shortened name to create links that can be used by pkg_add -r. This makes it possible to, for example, install the latest perl version by running pkg_add -r perl without knowing the exact version number. This name needs to be unique and obvious to users. Second, it looks like it won't install dependencies. This is a problem. Can I get it to search and install dependencies somehow? Does the package in question have its dependencies properly specified? Regards, -- -Chuck Why not just point the PACKAGESITE to the Latest directory of the tree you want to install? -jgh -- Jason Helfman System Administrator experts-exchange.com http://www.experts-exchange.com/M_4830110.html E4AD 7CF1 1396 27F6 79DD 4342 5E92 AD66 8C8C FBA5 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: pkg_add -r and a local package repo
On 11/01/2012 22:32, Randal L. Schwartz wrote: Jason == Jason Helfman jhelf...@e-e.com writes: Jason Why not just point the PACKAGESITE to the Latest directory of the tree you Jason want to install? I am, but it has zsh-4.3.15.tbz and not zsh.tbz, so I have to pkg_add -r zsh-4.3.15, and that's the annoying part. What's the directory structure like in your PACKAGESITE ? If it's the standard layout obtained eg. by creating /usr/ports/packages then the following sort of structure should be automatically created: % cd /usr/ports/packages % find . -type d . ./print ./pear ./archivers ./textproc ./net ./misc ./graphics ./mail ./All ./devel ./java ./security ./editors ./www ./ports-mgmt ./ftp ./converters ./python ./x11-toolkits ./x11 ./Latest - ./x11-fonts ./perl5 ./deskutils ./tk ./net-im ./ipv6 ./net-mgmt ./lang ./geography ./portmaster-download ./gnome ./dns ./databases ./sysutils ./math ./audio viz. directories mirroring each port category (created when you build a package from a port in one of those categories) plus the two indicated extras. (Well, and the one portmaster uses for its backups.) 'All' just contains a copy of every package you build. 'Latest' however contains links to the latest version of each package, like so: % ls -1 ap* ap22-mod_perl2.tbz@ apache22.tbz@ apg.tbz@ apr-ipv6-devrandom-db48-pgsql90.tbz@ apr-ipv6-devrandom-db48-pgsql91.tbz@ where... % ls -l apache22.tbz lrwxr-xr-x 1 root wheel 24 Dec 23 17:51 apache22.tbz@ - ../All/apache-2.2.21.tbz This is what the LATEST_LINK variable mentioned earlier in the thread is all about. Point PACKAGESITE at the /usr/ports/packages/Latest and it should work as you require. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
[ANN] tzdialog(8) version 1.2 released
Hi List, I'd like to announce a new version of tzdialog(8) available at http://druidbsd.sf.net/ This version sync's up with the HEAD version of tzsetup(8), including MFC of r198267 r198350 r210243 r220172 r222139 and r227011 as well as a few other minor modifications/bug-fixes. I've also requested that this version be added to the ports-tree under sysutils/tzdialog (PR ports/164031). http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/164031 For those unaware, tzdialog(8) is essentially tzsetup(8) rewritten from C into sh(1) -- bugs-and-all. The major advantages are: 1. Support for Xdialog(1). 2. Ease of maintenance (for example, SVNs r208830 r208831 r209190 r227934 r227947 and r228176 which were made to tzsetup(8) were not necessary to apply to tzdialog(8), as the sh(1) code was not affected by these C-based problems). 3. Finally, tzdialog(8) can be used without modification on Linux (replacing the need for inferior tzselect(8)), Cygwin, Darwin (if dialog(1) is available) and other BSDs without recompilation. -- Devin _ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: pkg_add -r and a local package repo
On Wed, Jan 11, 2012 at 5:03 PM, Randal L. Schwartz mer...@stonehenge.com wrote: I've figured out how to point PACKAGESITE at a URL of my choosing. First, it looks like pkg_add -r needs the full package name. Is there any way to give it zsh instead of zsh-4.3.15? I've read somewhere that you should be able to do `pkg_add -r zsh\*`, but I've never actually tried it. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Network throughput
On 11/01/12 09:24, Mike Woods wrote: Hi guys, Been a while since i've had need to post to the list :) I'm trying to gather network throughput information on a box of ours and I'm having a little problem, the throughput is to be measured on a per-minute basis and i've been trying to use netstat for this (count now - count before/timeperiod) however netstats byte counter resets far too quickly to be usefull (this is a busy gb link), i've had a look at vnstat but this only seems to operation on an hour or higher and I need to get down to the minute, does anyone have any suggestions of a tool better suited to this ? Hi, Some NICs have sysctl variables that can be used to collect this data, we're using this on Intel em interfaces, don't know if this helps. The sysctl for the em devices are: dev.em.0.mac_stats.good_octets_recvd: 15266556928143 dev.em.0.mac_stats.good_octets_txd: 69147911137578 And in this you can count errors and other stuff too. Mike Woods Full of squishy cynicism ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
little things
hello all, i like to know when freebsd foundation will be make ipfw dscp and ipfw add 1 allow all from any to any ontime 17:00 to 18:00, and help us to obtain traffic interface more easy how to linux simple ifconfig command, show us tx/rx traffic, this help us in the construction manager systems for controlling internet providers. nothing more, thank you for great job in freebsd Marcelo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
can not destroy ng interface
Hi, Freebsd-questions. # ifconfig ng0 ng0: flags=88d1UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST metric 0 mtu 1400 nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL meta-up# ifconfig ng0 destroy ifconfig: SIOCIFDESTROY: Invalid argument why I can not destroy interface? -- С уважением, Коньков mailto:kes-...@yandex.ru ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: little things
In the last episode (Jan 11), Gmail.com said: hello all, i like to know when freebsd foundation will be make ipfw dscp and ipfw add 1 allow all from any to any ontime 17:00 to 18:00, and help us to obtain traffic interface more easy how to linux simple ifconfig command, show us tx/rx traffic, this help us in the construction manager systems for controlling internet providers. As far as network traffic info, ifconfig is used for configuring interfaces, not monitoring them. The netstat -ib command will give you total bytes sent/received per interface, but the best solution is probably to poll them with snmp. -- Dan Nelson dnel...@allantgroup.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: can not destroy ng interface
On 1/12/2012 7:53 AM, Коньков Евгений wrote: Hi, Freebsd-questions. # ifconfig ng0 ng0: flags=88d1UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST metric 0 mtu 1400 nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL meta-up# ifconfig ng0 destroy ifconfig: SIOCIFDESTROY: Invalid argument why I can not destroy interface? The destroy ifconfig command is meant to be used on clonable interfaces. You can destroy a netgraph node using ngctl. Try 'ngctl kill ng0:'. HTH, Nikos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org