FreeBSD 9.1-RELEASE w/ SanDisk ImageMate S11202
Hi, I have a PCI Express card with VIA VL800 chipset which seems to work OK with a Seagate drive, so I presume the interface is working. If I boot with a SanDisk ImageMate S11202 plugged into the USB 3.0 card, the display shows messages about the SanDisk device, appears to properly identify it, and with like 'querying ...' slots on the card reader, which all fail - (there are no cards in the reader). Then the machine sails into outerspace, kind of just sits there until (perhaps) the end of time, or until I kill the power. It never gets the network interface up, so no ssh. It would be great to be able to paste the log here but when I reboot there is nothing about the activity in the log, it's like the entire boot process never happened. Anyone have any experience with this card reader? I appreciate any suggestions or tips. Below is pertinent system information. Thank you, # uname -a FreeBSD kamira.waitman.net 9.1-RELEASE FreeBSD 9.1-RELEASE #1 r245537: Thu Jan 17 22:10:56 PST 2013 r...@kamira.waitman.net:/usr/obj/usr/src/sys/BURPLEX amd64 kernel built with: deviceahci# AHCI-compatible SATA controllers deviceuhci# UHCI PCI-USB interface deviceohci# OHCI PCI-USB interface deviceehci# EHCI PCI-USB interface (USB 2.0) devicexhci# XHCI PCI-USB interface (USB 3.0) pciconf output: xhci0@pci0:2:0:0:class=0x0c0330 card=0x34321106 chip=0x34321106 rev=0x03 hdr=0x00 vendor = 'VIA Technologies, Inc.' class = serial bus subclass = USB interesting log entries: Jan 17 23:10:48 kamira kernel: usbus0: 5.0Gbps Super Speed USB v3.0 Jan 17 23:11:32 kamira kernel: ugen0.3: Seagate at usbus0 Jan 17 23:11:32 kamira kernel: umass1: Seagate FA GoFlex Desk, class 0/0, rev 3.00/1.00, addr 2 on usbus0 Jan 17 23:11:32 kamira kernel: da1 at umass-sim1 bus 1 scbus6 target 0 lun 0 Jan 17 23:11:32 kamira kernel: da1: Seagate FA GoFlex Desk 0D0B Fixed Direct Access SCSI-0 device Jan 17 23:11:32 kamira kernel: da1: 400.000MB/s transfers Jan 17 23:11:32 kamira kernel: da1: 2861588MB (732566645 4096 byte sectors: 255H 63S/T 45600C) -- Waitman Gobble San Jose California USA 510-830-7975 ___ 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: svn-export Re: svn bdb checkout?
Hello. 2013/01/17 21:32:08 -0700 Warren Block wbl...@wonkity.com = To Xyne : WB On Fri, 18 Jan 2013, Xyne wrote: WB WB I'm the author of svn-export. I haven't really touched the code since I wrote WB it in 2009 and back then I tended to write most things in noobish Perl. I shouldn't name your 2009 Perl that bad. ;-) WB Although it should not be difficult to replace threading with forking (and I WB agree that Perl threading is generally to be avoided), I think I would rather WB just rewrite it cleanly in Python. Among other things it will simplify argument WB parsing and subprocess invocation via standard library functions. No objection. As a bonus it will run on fork()less ms-windows. WB This would be in Python 3 but I could try to restrict it to be compatible with WB Python 2 if necessary. I have no idea if it is. I use python only as a build dependency yet and for my pretty old freebsd the versions are: python26-2.6.7_3 python27-2.7.3 WB Would that be better than patching/porting the current Perl version? If so then WB I will put it on my todo list, but I am unlikely to have any time in the coming WB weeks to work on it. I don't know which one is best. Some proposals I will draft later believing those are language-independent. I know svn has some perl bindings I think just for the scripts like 'svn-export' I wish it used. Does svn have ones for python also? WB A working version in any language would be great. A better version in WB Python would be nice, too, but it's the working part that's important. WB WB Incidentally, when looking at the code now I noticed that there were some SVN WB options missing. I have added those in today's release. Wow. ;-) WB p.s. I have not subscribed to this list, so please keep me in CC if you would WB like me to reply (in case this isn't done automatically). WB WB It's standard procedure for the FreeBSD lists. Good I know this, too. Thank you. -- Peter Vereshagin pe...@vereshagin.org (http://vereshagin.org) pgp: 1754B9C1 ___ 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: absurd I/O perf with ZFS: hangs on zfs-cv)
Eitan Adler li...@eitanadler.com wrote: On 17 January 2013 07:52, Fabian Keil freebsd-lis...@fabiankeil.de wrote: Eitan Adler li...@eitanadler.com wrote: I don't think there are any laptops with large amounts of RAM as far as ZFS is concerned. Haha okay: 8GB of RAM. It is taking me 45 minutes to make 5 commits to git. Something is wrong here but I have no idea what I should be looking at. Any ideas? Try sysutils/zfs-stats to get a rough idea of how ZFS is using the available memory. Anything in particular I should be looking for? I mainly look at the ARC Summary and the ARC Efficiency sections but I suppose all the information is useful in some situations. If you already followed tuning advice from the Internet without benchmarking it, try reverting it. I have done absolutely no tuning. Is there anything in particular I *should* tune? A common recommendation is to disable atime for all datasets where it isn't needed as it can cause lots of unnecessary write operations. With 8 GB of RAM ZFS enables prefetching by default and I assume for the git use case it's not too useful and could hurt performance by amplifying read operations. The Data Prefetch Efficiency is shown by zfs-stats and if it doesn't look too impressive you might want to disable prefetching to see if it helps. If your repository isn't fresh, you could also try git gc. My impression is that the automatic doesn't trigger frequently enough for larger repositories like /usr/src. Fabian signature.asc Description: PGP signature
Re: tar compression
On 01/18/13 02:29, Fbsd8 wrote: The man page for tar command says there a 4 different compress types you can use, xz, bzip, bzip2 and gzip. bzip and bzip2 are synonyms I believe. Which one is the fastest and compresses the most? The general rule for compression is that fast and high compression are opposite ends of the same axis. I am using -z option for gzip and it sure is slow. You can use --options gzip:N or --options xz:N where N is 0-9 to control the compression level for gzip or xz compression. 0 is the quickest, but least compressing, 9 slowest and most. You'd need to find the trade off that works best for you. Hoping one of the other zip options are better. What do you guys use? Historically gzip, these days bz2, but that's more habit than any scientifically based decision. Compression depends on the data anyway, so the only truly correct answer is whatever works best for you. Another question about tar is can I have tar create a compressed bkup of 2 files and a directory tree all in single tar command? tar -cjf tarfile path/to/file1 path/to/file2 path/to/tree/root or if you don't want to keep path prefixes for the files or tree tar -cjf tarfile -C file1dir file1 -C file2dir file2 -C dirtree . Note the '.' at the end of that command. ___ 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: Account only on the console
On Fri, 18 Jan 2013 15:19:24 +0100, Albert Shih wrote: Hi all, I would like to known how I can create a root-account (uid=0, login not=root) but I want this account accessible only on the console. Not from ssh but event not from su (other than root). Add a new account with UID 0 (comparable to toor). You can do this interactively with the adduser command. To prevent SSH login, use the DenyUsers keyword in /etc/ssh/sshd_config. Also make sure to put this account name into /etc/ftpusers in case you have FTP open. Regarding su, everyone who is in the wheel group _and_ knows the new account's password will be able to su; make sure the password is _not_ known to them. Users outside of wheel cannot su anyway. -- 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: FreeBSD 8.2 with pre-built KDE 3.5 package from FreeBSD 7.1 DVD
-- Excuse me... you're joking, right? I assume you have a plentycore -- processor with Gigs of RAM, and already two shells show a problem? -- That sounds totally wrong. Is that sarcasm or irony? Von: Polytropon free...@edvax.de An: Georg Reilinger georgreilin...@yahoo.de CC: freebsd-questions@freebsd.org freebsd-questions@freebsd.org Gesendet: 5:24 Freitag, 18.Januar 2013 Betreff: Re: FreeBSD 8.2 with pre-built KDE 3.5 package from FreeBSD 7.1 DVD On Fri, 18 Jan 2013 01:25:03 + (GMT), Georg Reilinger wrote: As far as I know, FreeBSD has completely dropped support for KDE 3.5. As for other desktop environments, yes. Whether it's the ports, or the pkg_add precompiled binaries. Am I right in assuming this? I think KDE 3 is still in ports, but will be scheduled for removal, as KDE 4 is the place where development takes place, and there seems to be no active development on KDE 3 that can be built (!) on FreeBSD due to lack of contribution. I am currently running a live version of FreeBSD 8.2 with KDE 4.8. May I ask which live system this is? The thing here is, that KDE 4 is simply too heavy for my system. For example: it is impossible for me to have two open shells at the same time. Once I exit a given shell, I can't open another one due to a lack of resources, even after having turned off all the extra stuff - plasma desktop, nepomuk... Excuse me... you're joking, right? I assume you have a plentycore processor with Gigs of RAM, and already two shells show a problem? That sounds totally wrong. When you play a music file and move the window, do you get skipping audio, too? Just scary... As a consequence, I can see myself do two possible things, to have a system running with KDE 3.5 once again: 1. Go back to an older release of FreeBSD and install KDE 3.5 from the precompiled binaries that are on the DVD donwload version. Judging by the release announcements, this should be 7.1. Yes, this will work. But note that you are running an OS that has been gone out of support, so you probably won't be able to install newer software using ports or packages. However, you can use the system as is, and even use ports as long as the distfiles are still kept available online. 2. To be honest, I am quite happy with 8.2 and I would like to keep it for some time to come. In other words, is there a way to keep 8.2 and still have KDE 3.5 along with it? For example has anyone ever tried to install a 7.1 pre-built package (KDE 3.5 in this case) on an 8.2 system? Is that be possible? That should be possible if you install the required compat7x port on the system. Keep an eye on dependencies and make sure you won't be shooting your feet. A good start would be to install the KDE stuff on a clean system (right after compat7x) so there won't be much confusion. -- 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 ___ 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: Dependencies after port tree update
On Fri, 18 Jan 2013 05:50:51 +0100, Polytropon free...@edvax.de wrote: man portmaster root@freebsd:/root # portmaster --list-origins ~/installed-port-list root@freebsd:/root # portsnap fetch update root@freebsd:/root # portmaster -ty --clean-distfiles root@freebsd:/root # portmaster --check-port-dbdir delete? always y root@freebsd:/root # portmaster -Faf root@freebsd:/root # pkg_delete -a root@freebsd:/root # rm -rf /usr/local/lib/compat/pkg No backup of files in /usr/local, such as configuration files in /usr/local/etc needed. Do the following directories have to be more empty? root@freebsd:/root # ls -hAl /usr/local/bin total 0 root@freebsd:/root # ls -hAl /usr/local/sbin total 0 root@freebsd:/root # ls -hAl /usr/local/lib total 12 drwxr-xr-x 4 root wheel 512B Jan 18 16:17 X11 -r--r--r-- 1 root wheel 2.2k Jan 14 19:30 charset.alias drwxr-xr-x 2 root wheel 3.0k Jan 18 16:19 compat drwxr-xr-x 2 root wheel 1.0k Jan 18 16:10 dssi root@freebsd:/root # ls -hAl /usr/local/lib/dssi total 0 root@freebsd:/root # ls -hAl /usr/local/lib/compat total 0 root@freebsd:/root # ls -hAl /usr/local/lib/X11 total 4 drwxr-xr-x 2 root wheel 512B Jan 18 16:14 app-defaults drwxr-xr-x 4 root wheel 512B Jan 18 16:14 fonts root@freebsd:/root # ls -hAl /var/db/pkg total 9424 -rw-r--r-- 1 root wheel 9.2M Dec 23 22:42 pkgdb.db root@freebsd:/root # cd /usr/ports/ports-mgmt/portmaster make deinstall install clean root@freebsd:/usr/ports/ports-mgmt/portmaster # portmaster `cat ~/installed-port-list` I wonder how to set a variable to automatically answer ok. In this case it might be interesting to check all configurations. If I finished this step, will then automatically everything be recompiled and reinstalled? Regards, Ralf -- FreeBSD 9.1-RELEASE amd64 ___ 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: absurd I/O perf with ZFS: hangs on zfs-cv)
On 18 January 2013 05:20, Fabian Keil freebsd-lis...@fabiankeil.de wrote: A common recommendation is to disable atime for all datasets where it isn't needed as it can cause lots of unnecessary write operations. Good call. I thought I had already disabled atime updating but it turns out that some datasets had this property still on. With 8 GB of RAM ZFS enables prefetching by default and I assume for the git use case it's not too useful and could hurt performance by amplifying read operations. The Data Prefetch Efficiency is shown by zfs-stats and if it doesn't look too impressive you might want to disable prefetching to see if it helps. I will look at this number - thanks. If your repository isn't fresh, you could also try git gc. My impression is that the automatic doesn't trigger frequently enough for larger repositories like /usr/src. This isn't git specific. Doing anything remotely I/O related takes forever: - starting a new shell take over a minute - opening a file in vim which wasn't opened recently take a few minutes - etc. That said, I will be looking closely at the zfs-stats and see if I notice any patterns. -- Eitan Adler ___ 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
pax error message
I use pax this way. cd dir-path pax -wzX -x cpio -f path-file-name . The period at end of above command is part of the command. When dir-path contains data over 7G in size pax issues this error msg, pax: file is to large for cpio format ./dir-path How do I correct this? ___ 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: Dependencies after port tree update
On Fri, 18 Jan 2013 16:37:43 +0100, Ralf Mardorf wrote: Do the following directories have to be more empty? root@freebsd:/root # ls -hAl /usr/local/bin total 0 root@freebsd:/root # ls -hAl /usr/local/sbin total 0 root@freebsd:/root # ls -hAl /usr/local/lib total 12 drwxr-xr-x 4 root wheel 512B Jan 18 16:17 X11 -r--r--r-- 1 root wheel 2.2k Jan 14 19:30 charset.alias drwxr-xr-x 2 root wheel 3.0k Jan 18 16:19 compat drwxr-xr-x 2 root wheel 1.0k Jan 18 16:10 dssi root@freebsd:/root # ls -hAl /usr/local/lib/dssi total 0 root@freebsd:/root # ls -hAl /usr/local/lib/compat total 0 root@freebsd:/root # ls -hAl /usr/local/lib/X11 total 4 drwxr-xr-x 2 root wheel 512B Jan 18 16:14 app-defaults drwxr-xr-x 4 root wheel 512B Jan 18 16:14 fonts root@freebsd:/root # ls -hAl /var/db/pkg total 9424 -rw-r--r-- 1 root wheel 9.2M Dec 23 22:42 pkgdb.db If you have copied everything you might need from /usr/local (e. g. config files in /usr/local/etc) you can remove the whole directory subtree and recreate it using mtree (from the /etc/mtree/BSD.local.dist description). I wonder how to set a variable to automatically answer ok. In this case it might be interesting to check all configurations. There is an option for this: portmaster --force-config lets you visit all configuration screens prior to starting any builds (so they will run without any disturbing interaction), and portmaster -G to prevent the make config step; there are also the -y and -n options to answer yes or no respectively; with --no-confirm you can accept the list of ports to process without confirmation. If I finished this step, will then automatically everything be recompiled and reinstalled? I think so. The example in the manual seems to work on most conditions, and personally I didn't have trouble with using it. In some cases, deleting the installed applications isn't even needed: portmaster can fix things as it processes only those parts that need to be compiled (for example due to a newer or missing library dependency); the portmaster -arf command should do this, if I remember correctly. -- 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: Dependencies after port tree update
I stopped by Ctrl + C, add --no-confirm to the command and run it again. To read this mail I had to use the archive, Opera can't display received emails at the moment ;). Thank you! Regards, Ralf ___ 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: Dependencies after port tree update
On Fri, 18 Jan 2013 16:59:55 +0100, Ralf Mardorf ralf.mard...@alice-dsl.net wrote: I stopped by Ctrl + C, add --no-confirm to the command and run it again. To read this mail I had to use the archive, Opera can't display received emails at the moment ;). Thank you! Oops, I should read more carefully, this doesn't do 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: Dependencies after port tree update
On Fri, 18 Jan 2013 17:03:33 +0100, Ralf Mardorf wrote: On Fri, 18 Jan 2013 16:59:55 +0100, Ralf Mardorf ralf.mard...@alice-dsl.net wrote: I stopped by Ctrl + C, add --no-confirm to the command and run it again. To read this mail I had to use the archive, Opera can't display received emails at the moment ;). Thank you! Oops, I should read more carefully, this doesn't do it ;). Correct: --no-confirm confirms the list to be processed when the program starts; -y answers yes everywhere; -G prevents all the make config screens, whereas --force-config visits all of them prior to the real work. -- 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: FreeBSD 8.2 with pre-built KDE 3.5 package from FreeBSD 7.1 DVD
On Fri, 18 Jan 2013 01:25:03 + (GMT) Georg Reilinger wrote: As a consequence, I can see myself do two possible things, to have a system running with KDE 3.5 once again: 1. Go back to an older release of FreeBSD and install KDE 3.5 from the that's pointless 2. To be honest, I am quite happy with 8.2 and I would like to keep it for some time to come. In other words, is there a way to keep 8.2 and still have KDE 3.5 along with it? For example has anyone ever tried to install a 7.1 pre-built package (KDE 3.5 in this case) on an 8.2 system? Is that be possible? You can carry on using 3.5 on any current release. The problem is when it's eventually removed from ports, updating other ports may result in dependency problems. ___ 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: Dependencies after port tree update
On Fri, 18 Jan 2013, Ralf Mardorf wrote: I wonder how to set a variable to automatically answer ok. In this case it might be interesting to check all configurations. I use this in /usr/local/etc/portmaster.rc: # Do not create temporary backup packages before pkg_delete (-B) NO_BACKUP=Bopt # Never search for stale distfiles to delete (-D) DONT_SCRUB_DISTFILES=Dopt # Suppress the build confirmation message (--no-confirm) PM_NO_CONFIRM=pm_no_confirm If I finished this step, will then automatically everything be recompiled and reinstalled? Yes. Unless it errors out, in which case portmaster will list the ports remaining to rebuilt. Then you can fix the problem and continue. ___ 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: Dependencies after port tree update
On Fri, 18 Jan 2013, Polytropon wrote: On Fri, 18 Jan 2013 16:37:43 +0100, Ralf Mardorf wrote: Do the following directories have to be more empty? ... If you have copied everything you might need from /usr/local (e. g. config files in /usr/local/etc) you can remove the whole directory subtree and recreate it using mtree (from the /etc/mtree/BSD.local.dist description). Yes, but it is not required. I've never done 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: absurd I/O perf with ZFS: hangs on zfs-cv)
On Tue, Jan 15, 2013 at 10:57 PM, Eitan Adler li...@eitanadler.com wrote: Hi all. Running FreeBSD 9.1-Release, I am seeing some absurd hangs (10 minutes or more to open a file) with SIGINFO informing me that the process is stuck on zio-io_cv. Does anyone have any suggestions for what I want to look at to tune this? https://wiki.freebsd.org/ZFSTuningGuide Even has a section on laptop settings. Also the ZFS Evil Tuning Guide -- Adam Vande More ___ 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: FreeBSD 8.2 with pre-built KDE 3.5 package from FreeBSD 7.1 DVD
On Friday 18 January 2013 16:58:11 RW wrote: You can carry on using 3.5 on any current release. The problem is when it's eventually removed from ports, updating other ports may result in dependency problems. I'm already starting to experience some problems which I assume are due to incompatibility with some recently upgraded dependencies and I've finally, and somewhat reluctantly, switched to KDE 4.8. It's certainly more bloated than 3.5 but after getting rid of some unwanted eye candy it's not as bad as I expected, certainly better than last time I tried it out about a year ago. The most noticeable deterioration in performance is that it's much slower to start up than 3.5 was and kmail takes much longer to open a mail folder than it used to. -- Mike Clarke ___ 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
Safe way to repair corrupted GPT partition table?
Is there a way to repair a GPT partition table that has gotten corrupted (following a system hang during heavy I/O to a ZFS filesystem)? I now get these errors whenever I boot the system: GEOM: da0: corrupt or invalid GPT detected. GEOM: da0: GPT rejected -- may not be recoverable. Fortunately, my ZFS filesystem on the disk (actually a RAID 5 array on a ARC-1223 adapter) still mounts and seems to be ok. There is only one partition on the disk (the ZFS one) and it covered the entire disk so restoring it should be easy. Question is, is there a way to do this and will it be safe (I wouldn't want to trash the filesystem in the partion). A 'gpart show da0' gives this result: gpart: No such geom: da0. This is on a 9.1-STABLE system: FreeBSD rancor.immure.com 9.1-STABLE FreeBSD 9.1-STABLE #2 r245176: Tue Jan 8 15:45:29 CST 2013 b...@amidala.immure.com:/usr/obj/usr/src/sys/AMIDALA amd64 Any help would be much appreciated. -- Bob Willcox| LIVING YOUR LIFE: b...@immure.com |A task so difficult, it has never been attempted before. Austin, TX | ___ 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
Have there been any fixes for long TCP delays with FreeBSD 8.3 or 9.x?
Hi folks, I am seeing a problem when copying large files via SMB/Samba from a FreeBSD 8.0-based system (with Samba 3.6.6 and ZFS etc) where eventually Windows drops the connection. However, it seems, based on three captures I have, that what has happened is that FreeBSD has not supplied any data on the connection for 50-60 seconds and the Windows 60-second timeout trips. In each case, what I see is a large number of 1500-byte frames go out. Then Windows ACKs a reasonable amount of data, 30+K or so, and then sends another ACK to ack everything so far received. Then in two cases, after about 52 seconds I see some more data in two of the captures I have but after a further few seconds, Windows disconnects. In the last capture, there was no further data for 60 seconds, so Windows disconnected. I know there should have been more data because: 1. The READ requests are for 64kiB and there is still data to come and the sequence numbers match up. 2. In my Samba traces I know that Samba has gone on to process the next SMB2 command in sequence and the time difference between these are of the order of 1mS and Samba in this case is operating in sync mode where it does not read the next command off the socket until it has finished writing the response for the previous command to the socket. The system is relatively idle. Only one smbd and some web traffic (inbound as a result of a get). I am hoping that this describes a known problem. I can provide captures on request. They will have to be cut-down as they are 300 to 500MB in length. -- Regards, Richard Sharpe (何以解憂?唯有杜康。--曹操) ___ 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
sh script code to get file size.
In a script in am working on I need to find out the allocated size of a sparse file. The only command that comes to mind is ls -lh The du -h command is not appropriate because it will show the occupied size and not the allocated size. I don't know how to parse out to the position in the output of that ls -lh command to pickup the file size value. Is there some other way to do this? ___ 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: sh script code to get file size.
In the last episode (Jan 18), Fbsd8 said: In a script in am working on I need to find out the allocated size of a sparse file. The only command that comes to mind is ls -lh The du -h command is not appropriate because it will show the occupied size and not the allocated size. I don't know how to parse out to the position in the output of that ls -lh command to pickup the file size value. Is there some other way to do this? For a single file, you can get the exact filesize with stat -f %z filename. For the human-friendly version, du -hA will work. -- 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: sh script code to get file size.
On 18/01/2013 23:26, Fbsd8 wrote: In a script in am working on I need to find out the allocated size of a sparse file. The only command that comes to mind is ls -lh The du -h command is not appropriate because it will show the occupied size and not the allocated size. I don't know how to parse out to the position in the output of that ls -lh command to pickup the file size value. Is there some other way to do this? cut or awk spring to mind. I'm sure there are more :) (23:31:48 ~) 0 jhary@ostracod $ ls -lh Cisco-vpn-Profiles.zip | cut -f 5 -w 16k (23:32:15 ~) 0 jhary@ostracod $ ls -lh Cisco-vpn-Profiles.zip | awk '{print $5}' 16k (23:32:25 ~) 0 jhary@ostracod $ ls -lh Cisco-vpn-Profiles.zip -rw-r--r-- 1 jhary wheel16k 11 Jul 2004 Cisco-vpn-Profiles.zip (23:32:32 ~) 0 jhary@ostracod $ Vince ___ 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
Re: sh script code to get file size.
In a script in am working on I need to find out the allocated size of a sparse file. The only command that comes to mind is ls -lh The du -h command is not appropriate because it will show the occupied size and not the allocated size. I don't know how to parse out to the position in the output of that ls -lh command to pickup the file size value. Is there some other way to do this? reza wrote: Does this work for you $ ls -lh | awk '{print $5}' 132B 0B 3.8k 512B 3.9k 512B 512B 14M 512B Thanks that works for me. ___ 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: sh script code to get file size.
Chris Hill wrote: On Fri, 18 Jan 2013, Fbsd8 wrote: In a script in am working on I need to find out the allocated size of a sparse file. The only command that comes to mind is ls -lh The du -h command is not appropriate because it will show the occupied size and not the allocated size. I don't know how to parse out to the position in the output of that ls -lh command to pickup the file size value. Is there some other way to do this? To parse it out, I've used something like: $ ls -lh npviewer.bin.core | cut -d \ -f 9 186M After the backslash are two spaces: one being the space that's being escaped to make it the delimiter, the other to separate the options. The number after the '-f' determines which field of the output is displayed, which may vary. HTH. Yes that works real nice. Thanks to all who replied. ___ 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: sh script code to get file size.
On Fri, 18 Jan 2013, Fbsd8 wrote: In a script in am working on I need to find out the allocated size of a sparse file. The only command that comes to mind is ls -lh The du -h command is not appropriate because it will show the occupied size and not the allocated size. I don't know how to parse out to the position in the output of that ls -lh command to pickup the file size value. Is there some other way to do this? To parse it out, I've used something like: $ ls -lh npviewer.bin.core | cut -d \ -f 9 186M After the backslash are two spaces: one being the space that's being escaped to make it the delimiter, the other to separate the options. The number after the '-f' determines which field of the output is displayed, which may vary. HTH. -- Chris Hill ch...@monochrome.org ** [ Busy Expunging / ] ___ 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: Safe way to repair corrupted GPT partition table?
Hi, On Fri, 18 Jan 2013 14:08:25 -0600 Bob Willcox b...@immure.com wrote: Is there a way to repair a GPT partition table that has gotten corrupted (following a system hang during heavy I/O to a ZFS filesystem)? I would use a hex editor. Of course, try it out on another disk before working on that disk. You can even copy the data with dd from the other disk after you are sure it will work. Of course, the size must match or must be made matching. Ok, it is not a safe way but it is a working way. Erich ___ 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: Safe way to repair corrupted GPT partition table?
On 18 January 2013 15:08, Bob Willcox b...@immure.com wrote: Is there a way to repair a GPT partition table that has gotten corrupted (following a system hang during heavy I/O to a ZFS filesystem)? I now get these errors whenever I boot the system: GEOM: da0: corrupt or invalid GPT detected. GEOM: da0: GPT rejected -- may not be recoverable. Fortunately, my ZFS filesystem on the disk (actually a RAID 5 array on a ARC-1223 adapter) still mounts and seems to be ok. There is only one partition on the disk (the ZFS one) and it covered the entire disk so restoring it should be easy. Question is, is there a way to do this and will it be safe (I wouldn't want to trash the filesystem in the partion). A 'gpart show da0' gives this result: gpart: No such geom: da0. This is on a 9.1-STABLE system: FreeBSD rancor.immure.com 9.1-STABLE FreeBSD 9.1-STABLE #2 r245176: Tue Jan 8 15:45:29 CST 2013 b...@amidala.immure.com:/usr/obj/usr/src/sys/AMIDALA amd64 Any help would be much appreciated. Is the whole disk in the zfs pool, or is this a single partition covering the whole disk that has been placed in the zfs pool? Have you tried to repair it with the zfs tools? -- -- ___ 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: svn-export Re: svn bdb checkout?
On 2013-01-17 21:32 -0700 Warren Block wrote: A working version in any language would be great. A better version in Python would be nice, too, but it's the working part that's important. There's a difference between working and working on a random system with unexpectedly disabled features. The current version works in the former sense. ___ 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
Slowdown of iwn wireless
Hi! On my home network I noticed that wireless transfer slows down a lot over time. It starts at reasonable internet speed of 300kB/s or something but after 2h of using the network it barely gets more than 20kB/s across. Rebooting helps, as does kicking the kernel module/interface and recreating (though that tends to crash from time to time) It's a 03:00.0 Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 34) Subsystem: Intel Corporation Centrino Advanced-N 6205 AGN Flags: bus master, fast devsel, latency 0, IRQ 17 Memory at f240 (64-bit, non-prefetchable) Capabilities: [c8] Power Management version 3 Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+ Capabilities: [e0] Express Endpoint, MSI 00 I'm running a freebsd -CURRENT kernel (revision 242489) (actually the Debian kFreeBSD one but with firmware enabled) iwn6000fw.ko is loaded and iwn built into the kernel Regards Christoph -- ___ 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: sh script code to get file size.
From owner-freebsd-questi...@freebsd.org Fri Jan 18 17:30:31 2013 Date: Fri, 18 Jan 2013 18:26:54 -0500 From: Fbsd8 fb...@a1poweruser.com To: FreeBSD questions questi...@freebsd.org Subject: sh script code to get file size. In a script in am working on I need to find out the allocated size of a sparse file. The only command that comes to mind is ls -lh The du -h command is not appropriate because it will show the occupied size and not the allocated size. I don't know how to parse out to the position in the output of that ls -lh command to pickup the file size value. ls -lh procmail.log |awk '{print $5}' ___ 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: svn-export Re: svn bdb checkout?
Hi, svn-export has now been rewritten in Python 3. Here's a quick list of changes/features: * threads have been replaced with forks (and remain optional) * new option to set svn binary * new option to generate shell script instead of using internal calls * no subshell invocation * only svn binary is called directly I've only done some quick testing. Let me know how it works. Regards, Xyne ___ 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: FreeBSD 9.1-RELEASE w/ SanDisk ImageMate S11202
On Fri, Jan 18, 2013 at 12:10 AM, Waitman Gobble gobble...@gmail.comwrote: Hi, I have a PCI Express card with VIA VL800 chipset which seems to work OK with a Seagate drive, so I presume the interface is working. If I boot with a SanDisk ImageMate S11202 plugged into the USB 3.0 card, the display shows messages about the SanDisk device, appears to properly identify it, and with like 'querying ...' slots on the card reader, which all fail - (there are no cards in the reader). Then the machine sails into outerspace, kind of just sits there until (perhaps) the end of time, or until I kill the power. It never gets the network interface up, so no ssh. It would be great to be able to paste the log here but when I reboot there is nothing about the activity in the log, it's like the entire boot process never happened. Anyone have any experience with this card reader? I appreciate any suggestions or tips. Below is pertinent system information. Thank you, # uname -a FreeBSD kamira.waitman.net 9.1-RELEASE FreeBSD 9.1-RELEASE #1 r245537: Thu Jan 17 22:10:56 PST 2013 r...@kamira.waitman.net:/usr/obj/usr/src/sys/BURPLEX amd64 kernel built with: deviceahci# AHCI-compatible SATA controllers deviceuhci# UHCI PCI-USB interface deviceohci# OHCI PCI-USB interface deviceehci# EHCI PCI-USB interface (USB 2.0) devicexhci# XHCI PCI-USB interface (USB 3.0) pciconf output: xhci0@pci0:2:0:0:class=0x0c0330 card=0x34321106 chip=0x34321106 rev=0x03 hdr=0x00 vendor = 'VIA Technologies, Inc.' class = serial bus subclass = USB interesting log entries: Jan 17 23:10:48 kamira kernel: usbus0: 5.0Gbps Super Speed USB v3.0 Jan 17 23:11:32 kamira kernel: ugen0.3: Seagate at usbus0 Jan 17 23:11:32 kamira kernel: umass1: Seagate FA GoFlex Desk, class 0/0, rev 3.00/1.00, addr 2 on usbus0 Jan 17 23:11:32 kamira kernel: da1 at umass-sim1 bus 1 scbus6 target 0 lun 0 Jan 17 23:11:32 kamira kernel: da1: Seagate FA GoFlex Desk 0D0B Fixed Direct Access SCSI-0 device Jan 17 23:11:32 kamira kernel: da1: 400.000MB/s transfers Jan 17 23:11:32 kamira kernel: da1: 2861588MB (732566645 4096 byte sectors: 255H 63S/T 45600C) -- Waitman Gobble San Jose California USA 510-830-7975 After experimenting a bit, A follow up, when I plug the device in after booting it's no problem. nothing bad happens. Jan 18 20:58:20 kamira kernel: ugen0.4 (: SanDisk at usbus0 Jan 18 20:58:20 kamira kernel: umass2: Bulk-In, Bulk-Out, Interface on usbus0 Jan 18 20:58:20 kamira kernel: umass2: SCSI over Bulk-Only; quirks = 0x4000 Jan 18 20:58:20 kamira kernel: umass2:7:2:-1: Attached to scbus7 Jan 18 20:58:20 kamira kernel: da2 at umass-sim2 bus 2 scbus7 target 0 lun 0 Jan 18 20:58:20 kamira kernel: da2: SanDisk uSD SDDR-289 1.00 Removable Direct Access SCSI-0 device Jan 18 20:58:20 kamira kernel: da2: 400.000MB/s transfers Jan 18 20:58:20 kamira kernel: da2: Attempt to query device size failed: NOT READY, Medium not present Jan 18 20:58:20 kamira kernel: da3 at umass-sim2 bus 2 scbus7 target 0 lun 1 Jan 18 20:58:20 kamira kernel: da3: SanDisk MS SDDR-289 1.00 Removable Direct Access SCSI-0 device Jan 18 20:58:20 kamira kernel: da3: 400.000MB/s transfers Jan 18 20:58:20 kamira kernel: da3: Attempt to query device size failed: NOT READY, Medium not present Jan 18 20:58:20 kamira kernel: da4 at umass-sim2 bus 2 scbus7 target 0 lun 2 Jan 18 20:58:20 kamira kernel: da4: SanDisk SD SDDR-289 1.00 Removable Direct Access SCSI-0 device Jan 18 20:58:20 kamira kernel: da4: 400.000MB/s transfers Jan 18 20:58:20 kamira kernel: da4: Attempt to query device size failed: NOT READY, Medium not present Jan 18 20:58:20 kamira kernel: da5 at umass-sim2 bus 2 scbus7 target 0 lun 3 Jan 18 20:58:20 kamira kernel: da5: SanDisk CF SDDR-289 1.00 Removable Direct Access SCSI-0 device Jan 18 20:58:20 kamira kernel: da5: 400.000MB/s transfers Jan 18 20:58:20 kamira kernel: da5: Attempt to query device size failed: NOT READY, Medium not present when i do a shutdown now, it takes 9:51-9:57 about 6 minutes to disappear from ping and shut down, then it finally comes back up 10:12, so 15 minutes. So reboot = 21 minutes. While it's not the end of time scenario, something is hanging up this machine on boot up and shutdown, with that device... If anyone has a pointer or suggestion I totally appreciate it! definitely need this machine to boot/shutdown much faster! Thank you, -- Waitman Gobble San Jose California USA 510-830-7975 ___ 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