Re: How do I set number of retries in Firefox?
Dieter BSD dieterbsd at engineer.com writes: [ no response on mozilla@ list, trying questions@ ] I have a problem with various parts of web pages stopping before getting completely downloaded. Links has a useful retries setting (setup-network options-retries) which seems to fix this. I need a similar fix for firefox 3.6.2 Firefox 15 URL: about:config search: retry network.http.connection-retry-timeout;250 jb ___ 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
Another question about missing posix shared mutex
Hi all, I am having troubles using sphinxsearch 2.0.5 under a freebsd 8.3 hosts ... Daniel Ylitalo asked the same question a few months ago: http://lists.freebsd.org/pipermail/freebsd-questions/2012-June/242875.html and my response to Michael Powell about using from the ports system is negative ... Will FreeBSD 9.1 support posix pthread shared mutex?? Thanks ___ 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: cksum entire dir??
On Wednesday 12 September 2012 22:29:45 Gary Kline wrote: how, with mtree, could I tell whether dir1 == dir2 or not? From the manpage: ``The mtree utility compares the file hierarchy rooted in the current directory against a specification read from the standard input. Messages are written to the standard output for any files whose characteristics do not match the specifications, or which are missing from either the file hierarchy or the specification.'' So you run mtree twice, once against dir1 with the -c option to output the specification for the directory tree to stdout (which you can capture to a file, or pipe straight into the second invocation) and once against dir2 with the output of the first one as input (either in a pipeline, or by using -f with the filename of the captured output). Jonathan ___ 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: cksum entire dir??
Perhaps this would be a question best asked in a Linux Forum or on a Fedora list in that case. This is, after all, the FreeBSD Questions mailing list. On 12-09-12 9:12 PM, Gary Kline wrote: On Wed, Sep 12, 2012 at 08:17:16PM -0500, Robert Bonomi wrote: Date: Wed, 12 Sep 2012 14:47:04 -0700 From: Gary Kline kl...@thought.org Subject: Re: cksum entire dir?? On Wed, Sep 12, 2012 at 10:55:57AM -0700, Waitman Gobble wrote: [sneck] are you sure it's not 'md5sum' ? ... that seems to be on all my GNU/Linux machines. yup, you be right. altho we have no md5 [[does FBSD?]], fedora does have md5sum. makes me wonder why this flavor didnt do at least a symlink. oh well. to find out what you do have, try 'apropos'. e.g. apropos checksum apropos md5 apropos sha this was the second thing I did. I have basically cksum and sum on this fedora box. oh, and now, md5sum. ___ 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 ___ 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
NFS Install
What I'm wanting to do is build/installworld from my workstation to a remote machine but both have different /etc/src.conf and kernel configuration files. Is there a way to define seperate files so I can perform this upgrade without any errors? ___ 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 9.1-PRERELEASE 10Gb Intel card
Seems slight issue with an intel X540T2 card at 10Gb, we have a Fujitsu X0440 10/40Gb switch, however the card only seems to negotiate 1Gb ifconfig -m ix0 ix0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=401bbRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,VLAN_HWTSO capabilities=1505bbRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,LRO,VLAN_HWFILTER,VLAN_HWTSO,NETMAP ether a0:36:9f:0e:ae:8c inet6 fe80::a236:9fff:fe0e:ae8c%ix0 prefixlen 64 scopeid 0x1 inet 192.168.1.246 netmask 0xff00 broadcast 192.168.1.255 nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL media: Ethernet autoselect (1000baseT full-duplex) status: active supported media: media autoselect media 10Gbase-T # ifconfig ix0 media 10Gbase-T ifconfig: SIOCSIFMEDIA (media): Invalid argument # ifconfig ix0 media autoselect and it doesnt seem to support the ifconfig ix0 media 10Gbase-T any ideas ___ 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: cksum entire dir??
On Thu, Sep 13, 2012 at 10:23:47AM +0200, Jonathan McKeown wrote: On Wednesday 12 September 2012 22:29:45 Gary Kline wrote: how, with mtree, could I tell whether dir1 == dir2 or not? From the manpage: ``The mtree utility compares the file hierarchy rooted in the current directory against a specification read from the standard input. Messages are written to the standard output for any files whose characteristics do not match the specifications, or which are missing from either the file hierarchy or the specification.'' So you run mtree twice, once against dir1 with the -c option to output the specification for the directory tree to stdout (which you can capture to a file, or pipe straight into the second invocation) and once against dir2 with the output of the first one as input (either in a pipeline, or by using -f with the filename of the captured output). Jonathan ___ 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 I'm having unexpected troubles with my old BSD server. ... I've seen Waitman's examples, and your paragraphs above--[thankx, both of you, BTW]. I'Ve got several hours of piecing the fragments of my original *desktop* back together. Following that, I'll be back. gary -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Twenty-six years of service to the Unix community. ___ 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: cksum entire dir??
Here's a simple, system-independent way to find duplicate files. All you need is something to generate a digest you trust (MD5, SHA1, whatever) plus normal Unix stuff: awk, expand, grep, join, sort, and uniq. Generate the signatures: me% cd ~/bin me% find . -type f -print0 | xargs -0 md5 -r | sort /tmp/sig1 me% cat /tmp/sig1 0287839688bd660676582266685b05bd ./mkrcs 0b97494883c76da546e3603d1b65e7b2 ./pwgen ddbed53e795724e4a6683e7b0987284c ./authlog ddbed53e795724e4a6683e7b0987284c ./cmdlog fdff1fd84d47f76dbd4954c607d66714 ./dbrun ff5e24efec5cf1e17cf32c58e9c4b317 ./tr0 Find duplicate signatures: me% awk '{print $1}' /tmp/sig1 | uniq -c | expand | grep -v ^ *1 2 ddbed53e795724e4a6683e7b0987284c me% awk '{print $1}' /tmp/sig1 | uniq -c | expand | grep -v ^ *1 | awk '{print $2}' /tmp/sig2 Associate the duplicates with files: me% join /tmp/sig[12] ddbed53e795724e4a6683e7b0987284c ./authlog ddbed53e795724e4a6683e7b0987284c ./cmdlog If your filenames contain whitespace, you can URL-encode them, play some games with awk, or use perl. -- Karl Vogel I don't speak for the USAF or my company This is really a lovely horse, I once rode her mother. --Ted Walsh, Horse Racing Commentator ___ 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: NFS Install
On Thu, 13 Sep 2012 11:29:47 -0400, Gardner Bell wrote: What I'm wanting to do is build/installworld from my workstation to a remote machine but both have different /etc/src.conf and kernel configuration files. Is there a way to define seperate files so I can perform this upgrade without any errors? I assume that you run i386 _or_ amd64 on both systems. It's easy to copy the remote machine's /etc/src.conf to the system you're building on and to _temporarily_ replace the /etc/src.conf of that system. Also copy the kernel configuration file and put it into the correct location (/sys/i386/conf or /sys/amd64/conf). Make sure /usr/obj is empty. Then use the build and install parameter DESTDIR= and pay attention to other upgrading steps as listed in the comment header of /usr/src/Makefile. Also see The FreeBSD Handbook, section 25.7: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html Rgarding /etc/rc.conf, I'm not aware of specifying a _different_ file name than the default one (i. e., what KERNCONF= does to override GENERIC), so maybe maybe dealing with a symlink in /etc/ would be the least painful way: src.conf - src.conf.local (fits the machine you build on) _or_ - src.conf.remote (fits the machine you build for). You could also create symlinks pointing to their location on the NFS file system (that the remote machine promotes to the build system): src.conf - src.conf.local (fits the machine you build on) _or_ (now mounted via NFS) - /mnt/remotehost/etc/src.conf (fits the machine you build for); and a similar symlink for /sys/i386/conf/REMOTE - /mnt/remotehost/sys/i386/conf/MYKERNEL. I know that looks ugly, but it's the easies solution that currently occurs to my mind. :-) -- 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: NFS Install
Hi Gardner Polytropon wrote: On Thu, 13 Sep 2012 11:29:47 -0400, Gardner Bell wrote: What I'm wanting to do is build/installworld from my workstation to a remote machine but both have different /etc/src.conf and kernel configuration files. Is there a way to define seperate files so I can perform this upgrade without any errors? I fairly often do make installs over amd+nfs, a few gotchas to avoid getting caught on: - I saw my link count break in /rescue so du exploded (up by presumably about (137-1 x 4.7M ) (Cant remember why, I just fixed it) - Chflags bit me (maybe I didnt have the right stuff in /etc/exports on target. (I hate chflags. often run chflags -R noschg / ) - If both might be i386, target might 686 eg 586 etc avoid source host having any files lurking in /usr/obj that were built while /etc/make.conf ( included files) had a CFLAGS += -march=i686 Maybe practice on a local host first, where you can reach reset knob. Cheers, Julian -- Julian Stacey, BSD Unix Linux C Sys Eng Consultant, Munich http://berklix.com Reply below not above, like a play script. Indent old text with . Send plain text. Not: HTML, multipart/alternative, base64, quoted-printable. ___ 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: cksum entire dir??
On Wed, 12 Sep 2012 10:46:25 -0700, Gary Kline wrote: On Wed, Sep 12, 2012 at 07:31:45AM +0100, Matthew Seaman wrote: On 12/09/2012 00:14, Polytropon wrote: % cksum directory and could obtain a checksum - so it _seems_ to work. After alteration of one file within the hierarchy a different result was printed. That will give you a checksum on the directory inode -- file names and associated metadata only, not file content. In theory you could edit a file without modifying any of the timestamps, and that wouldn't result in any change to the directory checksum. Also, modifying things a few layers down the filesystem hierarchy won't have any effect either. Generally I find the best test for differences between old and new copies of a filesystem is 'rsync -avx -n ...' Also, sum and cksum have way too small a key size for this to be reliable, since you can't tell a true result from a hash collision. Use md5 or sha1 or sha256 for best results. So this sha256 is *real*?? I have no md5 on my fedora that is on my desktop and m having trouble getting used to. but the gentleman who recommened cpio was right on the money. note that I am loathe to spam this list with the following mail from my files in sept, 1988, but here it is. if I had only gr -r -w cpio around in all my directories, I would have found this, sent to one Dirm Myers across the pond :: === From kline Sat Sep 5 11:52:20 1998 Subject: lost mail file... To: di...@buster.dhis.eu.org (Dirk Myers) Date: Sat, 5 Sep 1998 11:52:20 -0700 (PDT) Organization: thought.org: public access uNix in service... X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 2283 Status: RO Yesterday morning I began composing the next two Q's and A's in my mailer. Last night in the wee hours there was a power glitch and I lost the mail. Enclosed is the first//next Q/A. I'll send along another one or two later today. One that I was playing around with *failed* and I'm trying to figure out why. - How can I uise my FBSD floppy drive to copy files to it (in this case, at work), and retrieve the files on my FBSD systtem at home. So far I've only seen examples that used floppies with a filesystem on them. Is there a simplr, more direct way? You can treat the 'raw' floppy device as if it is a tape drive, and use typically UNIX tape tools to read/write, such as tar and cpio. For instance, to copy the current directory onto a floppy to take home at night: (put the floppy in the drive, and cd to the directory where the files are; then ) % tar -cvf /dev/rfd0 . To read it when you get home: (put the floppy in the drive at home; and extract the tarball wherever you want the files) % tar -xvf /dev/rfd0 The flags -c and -x indicate create and extract mode, the ``v'' specifies verbose mode, and the ``f'' tells tar that the following argument is the file or device that tar acts upon. Here, it is the floppy devide. With cpio: (chdir to the directory where the files are) % ls | cpio -oc /dev/rfd0 To read a cpio archive from a tape drive: % cpio -icd /dev/rfd0 The flags -i and -o indicate copy-in or extract mode and copy-out or create archive mode. The ``c'' tells cpio to use the old, portablr ASCII archive format. And the ``d'' flag tells cpio to create directories where necessary. Do a % man cpio for much greater detail on this utility. - There are another one or two of the simpler Q/A's and one or two more involved. Then, for this month only, I want to write a paragraph or two about who I am and where I'm coming from. Since you are sharing the by-line you might want to consider this too. gary PS: Next month we get a break!! -- Gary D. Kline kl...@tao.thought.org Public service uNix as you can see, this dealt with my olden tape drive. a 250meg QIC drive, I think. Really? I think /dev/rfd0 refers to fd - floppy disk. Even though I know there are floppy-controller connected tape drives (still have one myself!), the examples shown seem to indicate work with a floppy disk, used in a non-fs'ed manner, just as I did in the past with tar, the most universal file system that isn't even a filesystem to transfer files across different UNIX / BSD / Linux boxes via floppy (because they've not been networked). Still the examples look fully valid when applied to a tape drive, as both floppy and tape can be (ab)used as linear fs-less media. :-) but this was about the earliest reference I could find re my use of
Re: Swapped memory limited to about 500MB for a process ?
On Wed, Sep 12, 2012 at 7:33 PM, Mickaël Canévet cane...@embl.fr wrote: On Wed, 2012-09-12 at 10:03 -0400, Lowell Gilbert wrote: Mickaël Canévet cane...@embl.fr writes: On Tue, 2012-09-11 at 13:05 -0400, Lowell Gilbert wrote: Mickaël Canévet cane...@embl.fr writes: I was impacted by a memory leak that has been fixed by this patch: http://people.freebsd.org/~rmacklem/namei-leak.patch What I noticed when the server was paging is that it seems that only about 500MB of my 4GB swap partition was used before crashing. I was wondering why it didn't take the whole 4GB up to the crash of the server because of lake of memory (that would let me more time to react). Is there such king of setting that prevent a process to put more then 500MB of data in swap ? limits(1)? Thank you for your answer. Here is the result of limits: limits Resource limits (current): cputime infinity secs filesize infinity kB datasize 33554432 kB stacksize 524288 kB coredumpsize infinity kB memoryuseinfinity kB memorylocked infinity kB maxprocesses 5547 openfiles 11095 sbsize infinity bytes vmemoryuse infinity kB pseudo-terminals infinity swapuse infinity kB swapuse is set to unlimited, but stacksize is set to 512MB. Is it the stacksize setting that prevent my kernel to swap more then 512MB ? No, I don't think so. datasize was the parameter I was most suspecting; and it assumes that a particular process was causing the crash (which is unlikely; the OS is supposed to protect you against it). Most likely, the crash was not directly caused by a shortage of virtual memory. You would have to diagnose through crash dumps, but it could be that some more specific resource was exhausted. Or perhaps the memory leak left dangling references in a vnode. We also had a some what similar experience - swap partition was not being fully utilized (but no NFS in use). Found that the size of SWAPMETA limits the total usable swap space. This is more likely with a custom config and tweaked limits. vmstat -z | egrep LIMIT|SWAPMETA --- sriram OK, Thanks a lot for your explanations. Cheers, Mickaël ___ 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: cksum entire dir??
On Thu, Sep 13, 2012 at 8:35 PM, kpn...@pobox.com wrote: On Thu, Sep 13, 2012 at 03:18:43PM -0400, Karl Vogel wrote: Here's a simple, system-independent way to find duplicate files. All you need is something to generate a digest you trust (MD5, SHA1, whatever) plus normal Unix stuff: awk, expand, grep, join, sort, and uniq. Generate the signatures: me% cd ~/bin me% find . -type f -print0 | xargs -0 md5 -r | sort /tmp/sig1 me% cat /tmp/sig1 0287839688bd660676582266685b05bd ./mkrcs 0b97494883c76da546e3603d1b65e7b2 ./pwgen ddbed53e795724e4a6683e7b0987284c ./authlog ddbed53e795724e4a6683e7b0987284c ./cmdlog fdff1fd84d47f76dbd4954c607d66714 ./dbrun ff5e24efec5cf1e17cf32c58e9c4b317 ./tr0 Find duplicate signatures: me% awk '{print $1}' /tmp/sig1 | uniq -c | expand | grep -v ^ *1 2 ddbed53e795724e4a6683e7b0987284c you% awk '{print $1}' /tmp/sig1 | uniq -d But in both your and my code the uniq will frequently fail because the input is not sorted. The uniq command only works when the lines to compare are adjacent. So... you% awk '{print $1}' /tmp/sig1 | sort | uniq -d -- Kevin P. Nealhttp://www.pobox.com/~kpn/ I like being on The Daily Show. - Kermit the Frog, Feb 13 2001 ___ 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, But what happens when, like in my 'md5 file' tinkering example above, there's one or more identical files along the path which may or may not exist in both hierarchies? For example, the BSD License file. In my previous message I purposely made a 'testdir' and copied a file into that dir... they have the same hash. Anyway I was thinking if I had proceeded with the tinker example, using sys/tree.h and creating an associative array and using the relative path and filename, along with the md5 hash, as the key. So the keys would be like [8d3986a5e8747ae89b3c5f82f22bc402 ./find.c] [8d3986a5e8747ae89b3c5f82f22bc402 ./testdir/find.c] then you'd have path A and path B to compare, which i think basically add 1 for A and 2 for B, so you'd know a 1 would be in A only, or 2 would be in B only, and 3 would be in both A and B. [e406e4422cf29f3b42484596524b71c1 ./find] = 1 //A only [e3ea95347aa5efd7030103536c23a8d3 ./find.1.gz] = 3 //OK [4b1fd4eb69577f53bd97d8cd2159c8eb ./md5find] = 3 //OK [03d161fcb84fb38aad6ccd8ce0cafeaf ./testdir] = 2 //B only But again I have to say that mtree already does this very well... Here's an example of mtree for Gary to compare two paths, hopefully helpful. set up two things to compare, A and B # mkdir A B # touch A/1 A/2 A/3 A/4 # find A A A/1 A/2 A/3 A/4 # rsync -av A B sending incremental file list A/ A/1 A/2 A/3 A/4 sent 236 bytes received 92 bytes 656.00 bytes/sec total size is 0 speedup is 0.00 # find B B B/A B/A/1 B/A/2 B/A/3 B/A/4 compare with mtree # mtree -K sha256digest,uname,gname -c -p A | mtree -p B/A {no output = OK they match, default: only report situations} now mess up B # rm B/A/3 # touch B/A/2 # touch B/A/extrabonusfile compare again # mtree -K sha256digest,uname,gname -c -p A | mtree -p B/A . changed modification time expected Thu Sep 13 22:33:02 2012 found Thu Sep 13 22:43:46 2012 2 changed modification time expected Thu Sep 13 22:33:02 2012 found Thu Sep 13 22:38:01 2012 extrabonusfile extra ./3 missing Waitman Gobble San Jose California ___ 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