Re: DHCP server
On Sat, 25 Oct 2008 11:38:22 -0400, bofh42 [EMAIL PROTECTED] wrote: Are you sure you are using the correct command to start the DHCP client? I'm not familiar with Archlinux, but on Debian linux the command you need is dhclient. That's correcto about FreeBSD where dhclient or the respective RC script in /etc/rc.d/dhclient is responsible for initiating a DHCP request (by the client). A long time ago, I had played around with TomsRTBT (a Linux that fits on a disk - not a disc); there dhcpcd seemed to be the correct DHCP client site program. On the other hand, dhcpd starts the dhcp *server* Correct. -- Polytropon From 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 [EMAIL PROTECTED]
Zero-Fill format before installation
I have a remote machine with KVM access that I'd like to format and reinstall FreeBSD 7.0. I've succeded in formatting /dev/ad6 but not the main drive, /dev/ad4. Is it possbile to zero-fill format during the installation instead of simply deleting and recreating partitions? I've tried booting into single user mode without any success: # umount -a umount: /cdrom: not a file system root directory umount: /var: not a file system root directory umount: /usr: not a file system root directory umount: /tmp: not a file system root directory # dd if=/dev/zero of=/dev/ad4 dd: /dev/ad4: Operation not permitted ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: reviving games/freebsd-games
On Mon, Oct 27, 2008 at 09:22:19PM +0100, clemens fischer wrote: Jeremy Chadwick: I think the bottom line here is that until someone steps up and actually volunteers to fix the code, it will remain broken. (I don't normally tote this attitude, but in this case it's applicable: this is a volunteer project! :-) ) That's why I want to try my skills on it. I found the emails you cited, but they didn't help much. Gdb(1) is no mystery to me, and it told me where larn crashes. Doing scrollname[i][0]=' ' with char *scrollname[] = {\0something,...} shouldn't cause a SIGSEGV as far as I know. regards, clemens If you do char *p = something, you can't write to that string (it's a pointer into some stringtable: easy way to look at it :). You have to use char p[] = something, then it's an array with enough storage to write to :) maybe try something like char scrollname[NUMSCROLLS][]; ? greetings, Jurjen. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: gmirror slice insertion, FAILURE - READ_DMA status=51READY, DSC, ERROR
so good. Began Ralf's procedure for inserting ad4s1 into mirror/gm0. The synchronization began and reached 6% when this little horror appeared: ad6: FAILURE - READ_DMA status=51READY,DSC,ERROR error=40UNCORRECTABLE LBA=134802751 GEOM_MIRROR: Request failed (error=5). ad6s1[READ(offset=69018976256, length=131072)] GEOM_MIRROR: Synchronization request failed (error=5). mirror/gm0[READ(offset=69018976256, length=131072)] your disk failed. (uncorrectable error) assuming you eliminated other causes like drives overheating, cabling problem (don't think so) etc.: boot from some kind of live CD, then make another mirror (single disk now) on other drive, then do dd if=/dev/ad6s1 of=/dev/mirror/newmirror bs=2k conv=noerror,sync i intentionally did bs=2k instead of larger, to minimize amount of lost data. then change your system to boot from newmirror, take out /dev/ad6 and have it replaced on warranty (or buy new), put new ad6, insert it to the mirror. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: gmirror slice insertion, FAILURE - READ_DMA status=51READY, DSC, ERROR
error=40UNCORRECTABLE LBA=134802751 Are you sure you don't have a bad hard disk? This looks to be like a classic block/sector failure. This does not appear to be the infamous famous DMA timeout problem, especially if this is the only error you're getting. he can temporarity boot with hw.ata.ata_dma=0 but i think his drive failed. I reinstalled FB7 to ad4, redid the /boot.config modification to make ad6/gm0 bootable again and retried the insertion of ad4 into gm0. Exact same error messages at exactly the same point with same consequences. so IT IS FAILED drive! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
odd problem, system clock stops while power-down
Hi! I found that the freebsd system clock just stops when i shutdown or reboot the computer. what is odd is that the clock in my BIOS shows the right time, so it couldn't be that CMOS battery is dead. How do i get around this so i wouldn't have to set the clock every time i boot into freebsd? and by the way, does freebsd use the CMOS clock? regards ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: odd problem, system clock stops while power-down
On Tue, 28 Oct 2008 03:17:39 -0700 (PDT), Richard Smith [EMAIL PROTECTED] wrote: How do i get around this so i wouldn't have to set the clock every time i boot into freebsd? and by the way, does freebsd use the CMOS clock? An idea would to use NTP to get the exact time from your local atomic time dealer at system startup. :-) See ntpd and ntpdate for further information. -- Polytropon From 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 [EMAIL PROTECTED]
Re: reviving games/freebsd-games
On Tue, 28 Oct 2008 11:57:15 +0100 Jurjen Middendorp wrote: If you do char *p = something, you can't write to that string (it's a pointer into some stringtable: easy way to look at it :). You have to use char p[] = something, then it's an array with enough storage to write to :) maybe try something like char scrollname[NUMSCROLLS][]; ? Thank you and Martin for your very helpful comments! You have a point there: the compiler might put the strings themselves into a read-only table and keep only the pointers to them, as declared. I didn't think of that. Do you happen to know what linker section gcc-4.x puts strings into? I thought I'd clean up that code declaring a real struct like: struct scrollname_s { int active; char name[] = ...; }; then name could stay read-only. OTOH I found numerous larn versions, so keeping ours compatible might keep maintenance costs down. -c ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: gmirror slice insertion, FAILURE - READ_DMA status=51READY, DSC, ERROR
On Tue, Oct 28, 2008 at 12:04:49PM +0100, Wojciech Puchar wrote: error=40UNCORRECTABLE LBA=134802751 Are you sure you don't have a bad hard disk? This looks to be like a classic block/sector failure. This does not appear to be the infamous famous DMA timeout problem, especially if this is the only error you're getting. he can temporarity boot with hw.ata.ata_dma=0 They're SATA disks, so this won't do anything sadly. -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Zero-Fill format before installation
On Tue, Oct 28, 2008 at 10:21:00AM +, Bullet 446 wrote: I have a remote machine with KVM access that I'd like to format and reinstall FreeBSD 7.0. I've succeded in formatting /dev/ad6 but not the main drive, /dev/ad4. Is it possbile to zero-fill format during the installation instead of simply deleting and recreating partitions? I've tried booting into single user mode without any success: # umount -a umount: /cdrom: not a file system root directory umount: /var: not a file system root directory umount: /usr: not a file system root directory umount: /tmp: not a file system root directory # dd if=/dev/zero of=/dev/ad4 dd: /dev/ad4: Operation not permitted You need to tell GEOM to allow you to overwrite the MBR at the start of the disk. sysctl kern.geom.debugflags=16 then do the dd again. I STRONGLY recommend you add bs=64k to that dd statement, or else it's going to take a million years. :-) -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: odd problem, system clock stops while power-down
On Tue, 28 Oct 2008 12:46:58 +0100 Polytropon [EMAIL PROTECTED] wrote: On Tue, 28 Oct 2008 03:17:39 -0700 (PDT), Richard Smith [EMAIL PROTECTED] wrote: How do i get around this so i wouldn't have to set the clock every time i boot into freebsd? and by the way, does freebsd use the CMOS clock? An idea would to use NTP to get the exact time from your local atomic time dealer at system startup. :-) See ntpd and ntpdate for further information. Definitely the best advice. However it doesn't explain why his system apparently fails to retrieve the current date time from CMOS on boot. Mine always have, though CMOS clocks rarely keep good time, so using NTP after network connection after boot I see initial corrections of several seconds usually .. still it's better than having all your log timestamps screwed after reboot until NTP does its thing. Richard: are you running UTC or local time in CMOS? If the latter, does the file /etc/wall_cmos_clock exist? cheers, Ian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
flash-9, 10 on FreeBSD
Hello! I'm having serious problems with Adobe's Flash 9 and 10 on my FreeBSD-7/amd64 system. If I try to use it directly with linux-firefox, the entire browser crashes quickly. If I try www/nspluginwrapper with a native browser, the wrapper-launched npviewer.bin seg-faults instead. Either way, the plugin does not work... It appears, there was some activity recently in trying to fix these problems (is it all in linprocfs/?) What is the current status? Thanks, -mi ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Zero-Fill format before installation
On Tue, Oct 28, 2008 at 12:22 PM, Jeremy Chadwick [EMAIL PROTECTED] wrote: sysctl kern.geom.debugflags=16 then do the dd again. Thanks Jeremy, that worked fine. I STRONGLY recommend you add bs=64k to that dd statement, or else it's going to take a million years. :-) That's a good tip, reduced formatting time by 85%! :) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
VLAN filtering on FreeBSD 7.0 / 6.3
Hi, I have two questions about VLANs on FreeBSD 6.3/7.0. 1. I'm trying to understand whether HW VLAN filtering can be supported. Looking at the code I can't find a proper ioctl that will inform the driver about a vlan creation/destruction. Is there a way of doing it? 2. Second issue - is there way of enabling TSO on vlan interfaces? Thanks Yony ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: collecting pv entries -- suggest increasing PMAP_SHPGPERPROC
Jeremy Chadwick a écrit : On Mon, Oct 27, 2008 at 12:56:30PM -0700, Chuck Swiger wrote: On Oct 27, 2008, at 12:38 PM, FreeBSD wrote: You need to keep your MaxClients setting limited to what your system can run under high load; generally the amount of system memory is the governing factor. [1] If you set your MaxClients higher than that, your system will start swapping under the load and once you start hitting VM, it's game over: your throughput will plummet and clients will start getting lots of broken connections, just as you describe. According to top, we have about 2G of Inactive RAM with 1,5G Active (4G total RAM with amd64). Swapping is not a problem in this case. With 4GB of RAM, you're less likely to run into issues, but the most relevant numbers would be the Swap: line in top under high load, or the output of vmstat 1 / vmstat -s. We're monitoring our swap with cacti, and we've never been swapping even during high load because we dont let apache spawn enough process to do so. It would also be helpful to know what your httpd's are looking like in terms of size, and what your content is like. For Apache serving mostly static content and not including mod_perl, mod_php, etc, you tend to have 5-10MB processes and much of that is shared, so you might well be able to run 400+ httpd children. On the other hand, as soon as you pull in the dynamic language modules like perl or PHP, you end up with much larger process sizes (20 - 40 MB) and much more of their memory usage is per-process rather than shared, so even with 4GB you probably won't be able to run more than 100-150 children before swapping. Here's an example of top's output regarding our httpd process : 54326 apache1 960 156M 13108K select 1 0:00 0.15% httpd 54952 apache1 960 156M 12684K select 1 0:00 0.10% httpd 52343 apache1 40 155M 12280K select 0 0:01 0.10% httpd Most of our page are in HTML with a LOT of images. Few PHP pages, very light PHP processing. 156M x 450 process = way more RAM than what we have (same for RES). Concretely, how must I interpret these results ? After checking multiple things (MySQL, networks, CPU, RAM) when a drop occurs, we determined that everytimes there is drop, the number is Apache's process is MaxClients (ps aux | grep httpd | wc -l) and the new http request doesn't get answer from Apache (the TCP hanshakes completes but Apache never push the data). Yes, that aspect is going to be the same pretty much no matter what the bottleneck is or how large you set MaxClients to. You will end up with significantly better results (fewer drops, higher aggregate throughput) if you tune appropriately than if you try to ramp MaxClients up further than the available hardware can support. At the moment, the MaxClients isn't higher than the hardware can support, but it will if i raise it again. I've gone through the Apache's doc concerning high load tuning and did all that can be done on the fly (without downtime). We were already planning to add another webserver soon, but maybe not that soon :) You might find that checking out the URLs being most commonly listed in http://yourdomain.com/server-status when you run into high load problems will point towards a particular script or dynamic content which is causing a bottleneck. Thanks for the tips, i'll take a look at this. One of the problems here is that the individual reporting the problem is basing all of his conclusions on the first couple lines of top(1) output, and is not bothering to look at per-process RSS or SZ. I have lots of Inactive RAM, so what's the problem!??! We should probably take the time to explain to the user the fact that shared pages per process != amount of RAM that's been touched/used at one point but is currently unused. Without someone explaining how the VM works in this regard, he's going to continue to be confused and correlate things which aren't necessarily related. Right ! I would really appreciate few explanation on this. Do the shared pages counts as active or inactive RAM ? How can i calculate how much physical RAM an apache process is taking ? How the VM works in this regard ? ;) Thanks everyone ! Francis Dube RD Optik Securite www.optiksecurite.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Looking for the right FreeBSD.iso
On Mon, Oct 27, 2008 at 09:16:04PM -0700, Jeremy Chadwick wrote: On Mon, Oct 27, 2008 at 09:56:56PM -0600, Steven Susbauer wrote: Jerry McAllister wrote: Maybe I am wrong, but I feel it shouldn't be necessary to waste 3 CDs from installation if I have a high-speed permanent Internet connection. So wouldn't just 1 DVD-RW do? Basically, you are wrong, because you haven't looked far enough in to things to know that FreeBSD has done it that way from the beginning (or almost that far back).I have never done a complete install from a CD or DVD, but just acquired the first disk, booted the install program and then done the install over the net. I've been doing that for more than 10 years and am far from being an early adopter. Others have done so much longer. But, some people are [still] not in the positition to be able to do installs over the net. Their service is inadequate or, in some cases they are not even connected, so the whole system is made available to them on disk as well. Actually, I believe, if you are doing just the FreeBSD install, and not at the same time installing some of the ports, it is still layed out to need only the first CD even if you are not installing over the net. But, I haven't checked recent versions. The other CDs contain the sources for various ports and some special case things. jerry This is still the behavior. You can install any of the base distributions for that release with only disc 1, as well as some of the ports. I have had issues booting the netinstall cds for some reason, and installing the distribution from the cd goes faster anyway. Just make sure that if you choose src or ports, that you properly adopt your src and ports trees. (This is why I often advocate not installing src/ports from CD/DVD/FTP/whatever, and instead using csup once the box is up and working). Do you really mean 'update' instead of adopt Otherwise, I don't know what you mean by adopt in this context. jerry -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: collecting pv entries -- suggest increasing PMAP_SHPGPERPROC
On Tue, Oct 28, 2008 at 10:44:49AM -0400, Francis Dubé wrote: Jeremy Chadwick a écrit : On Mon, Oct 27, 2008 at 12:56:30PM -0700, Chuck Swiger wrote: On Oct 27, 2008, at 12:38 PM, FreeBSD wrote: You need to keep your MaxClients setting limited to what your system can run under high load; generally the amount of system memory is the governing factor. [1] If you set your MaxClients higher than that, your system will start swapping under the load and once you start hitting VM, it's game over: your throughput will plummet and clients will start getting lots of broken connections, just as you describe. According to top, we have about 2G of Inactive RAM with 1,5G Active (4G total RAM with amd64). Swapping is not a problem in this case. With 4GB of RAM, you're less likely to run into issues, but the most relevant numbers would be the Swap: line in top under high load, or the output of vmstat 1 / vmstat -s. We're monitoring our swap with cacti, and we've never been swapping even during high load because we dont let apache spawn enough process to do so. I'm not sure you fully understand the concept of swapping (the term can be used for a multitude of things). :-) Some processes which sit idle/unused will have portions of their memory swapped out (to swap/disk) to allow for actively running processes to utilise physical memory. This is something to keep in mind. It would also be helpful to know what your httpd's are looking like in terms of size, and what your content is like. For Apache serving mostly static content and not including mod_perl, mod_php, etc, you tend to have 5-10MB processes and much of that is shared, so you might well be able to run 400+ httpd children. On the other hand, as soon as you pull in the dynamic language modules like perl or PHP, you end up with much larger process sizes (20 - 40 MB) and much more of their memory usage is per-process rather than shared, so even with 4GB you probably won't be able to run more than 100-150 children before swapping. Here's an example of top's output regarding our httpd process : 54326 apache1 960 156M 13108K select 1 0:00 0.15% httpd 54952 apache1 960 156M 12684K select 1 0:00 0.10% httpd 52343 apache1 40 155M 12280K select 0 0:01 0.10% httpd Most of our page are in HTML with a LOT of images. Few PHP pages, very light PHP processing. 156M x 450 process = way more RAM than what we have (same for RES). Concretely, how must I interpret these results ? It's as I expected -- you don't understand the difference between SIZE (SZ) and RES (RSS). The simple version: SIZE == amount of memory that's shared across all processes on the machine, e.g. shared libraries. It doesn't mean 156MB is being taken up per process. RES == amount of memory that's specifically allocated to that individual process. The three httpd processes above are taking up a total of ~38MBytes of memory (13108K + 12684K + 12280K). Right ! I would really appreciate few explanation on this. Do the shared pages counts as active or inactive RAM ? How can i calculate how much physical RAM an apache process is taking ? How the VM works in this regard ? ;) Others will have to explain the shared memory/pages aspect, as it's beyond my understanding. But recent versions of 7.0 and 7.1-PRERELEASE contain a tool called procstat(1) which can help you break down the memory usage within a process. -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Security | Kernel message
A prt of my daily security run: triton.xxx.xxx.xxx kernel log messages: +++ /tmp/security.VnqB8ZT6 2008-10-27 23:53:32.0 +0100 +em0: link state changed to DOWN +em0: link state changed to UP +em0: link state changed to DOWN +em0: link state changed to UP +em0: link state changed to DOWN +em0: link state changed to UP Is there a way of adding the time on every DOWN and UP line? Jos Chrispijn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Looking for the right FreeBSD.iso
On Tue, Oct 28, 2008 at 12:01:28PM -0400, Jerry McAllister wrote: On Mon, Oct 27, 2008 at 09:16:04PM -0700, Jeremy Chadwick wrote: On Mon, Oct 27, 2008 at 09:56:56PM -0600, Steven Susbauer wrote: Jerry McAllister wrote: Maybe I am wrong, but I feel it shouldn't be necessary to waste 3 CDs from installation if I have a high-speed permanent Internet connection. So wouldn't just 1 DVD-RW do? Basically, you are wrong, because you haven't looked far enough in to things to know that FreeBSD has done it that way from the beginning (or almost that far back).I have never done a complete install from a CD or DVD, but just acquired the first disk, booted the install program and then done the install over the net. I've been doing that for more than 10 years and am far from being an early adopter. Others have done so much longer. But, some people are [still] not in the positition to be able to do installs over the net. Their service is inadequate or, in some cases they are not even connected, so the whole system is made available to them on disk as well. Actually, I believe, if you are doing just the FreeBSD install, and not at the same time installing some of the ports, it is still layed out to need only the first CD even if you are not installing over the net. But, I haven't checked recent versions. The other CDs contain the sources for various ports and some special case things. jerry This is still the behavior. You can install any of the base distributions for that release with only disc 1, as well as some of the ports. I have had issues booting the netinstall cds for some reason, and installing the distribution from the cd goes faster anyway. Just make sure that if you choose src or ports, that you properly adopt your src and ports trees. (This is why I often advocate not installing src/ports from CD/DVD/FTP/whatever, and instead using csup once the box is up and working). Do you really mean 'update' instead of adopt Otherwise, I don't know what you mean by adopt in this context. Nope, I said adopt and I do in fact mean adopt. The below site is for cvsup, but what I'm describing affects csup as well -- it's just the nature of the beast. http://www.cvsup.org/faq.html#caniadopt The simple version of why this is necessary: when you install src or ports from the installation media, there is no associated CVS database to cross-reference what version of the file correlates with what on the cvsup server. The databases are stored in /var/db/sup (or /usr/sup if you're using a very old version of FreeBSD with very old supfiles). Thus, adopting means you need to create those databases to make sure the cvsup/csup tools are truly in sync with what exists on your filesystem (in /usr/src and /usr/ports). -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Security | Kernel message
On Tue, Oct 28, 2008 at 05:26:03PM +0100, Jos Chrispijn wrote: A prt of my daily security run: triton.xxx.xxx.xxx kernel log messages: +++ /tmp/security.VnqB8ZT62008-10-27 23:53:32.0 +0100 +em0: link state changed to DOWN +em0: link state changed to UP +em0: link state changed to DOWN +em0: link state changed to UP +em0: link state changed to DOWN +em0: link state changed to UP Is there a way of adding the time on every DOWN and UP line? No, because the messages are in the kernel log. The kernel itself does not print timestamps, because that's silly. Try doing this: 1) Edit /etc/syslog.conf and enable /var/log/all.log, 2) touch /var/log/all.log 3) chown root:wheel /var/log/all.log 4) chmod 600 /var/log/all.log 5) killall -HUP syslogd Then wait until the next event, and examine /var/log/all.log, which will contain timestamps. Also, are you seeing any watchdog timeout events on em0 as well? If so, please read the Network devices section of my Wiki regarding what this problem could be (specific to certain models of Intel 82573 NIC): http://wiki.freebsd.org/JeremyChadwick/Commonly_reported_issues -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Security | Kernel message
Jeremy, Uit een eerder bericht (28-10-2008 17:32): No, because the messages are in the kernel log. The kernel itself does not print timestamps, because that's silly. Yes that is .true. Try doing this: Great, will do that! No 'watchdog timeout' events yet :-) thanks for sharing, Jos Chrispijn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: collecting pv entries -- suggest increasing PMAP_SHPGPERPROC
Jeremy Chadwick a écrit : On Tue, Oct 28, 2008 at 10:44:49AM -0400, Francis Dubé wrote: Jeremy Chadwick a écrit : On Mon, Oct 27, 2008 at 12:56:30PM -0700, Chuck Swiger wrote: On Oct 27, 2008, at 12:38 PM, FreeBSD wrote: You need to keep your MaxClients setting limited to what your system can run under high load; generally the amount of system memory is the governing factor. [1] If you set your MaxClients higher than that, your system will start swapping under the load and once you start hitting VM, it's game over: your throughput will plummet and clients will start getting lots of broken connections, just as you describe. According to top, we have about 2G of Inactive RAM with 1,5G Active (4G total RAM with amd64). Swapping is not a problem in this case. With 4GB of RAM, you're less likely to run into issues, but the most relevant numbers would be the Swap: line in top under high load, or the output of vmstat 1 / vmstat -s. We're monitoring our swap with cacti, and we've never been swapping even during high load because we dont let apache spawn enough process to do so. I'm not sure you fully understand the concept of swapping (the term can be used for a multitude of things). :-) Some processes which sit idle/unused will have portions of their memory swapped out (to swap/disk) to allow for actively running processes to utilise physical memory. This is something to keep in mind. It would also be helpful to know what your httpd's are looking like in terms of size, and what your content is like. For Apache serving mostly static content and not including mod_perl, mod_php, etc, you tend to have 5-10MB processes and much of that is shared, so you might well be able to run 400+ httpd children. On the other hand, as soon as you pull in the dynamic language modules like perl or PHP, you end up with much larger process sizes (20 - 40 MB) and much more of their memory usage is per-process rather than shared, so even with 4GB you probably won't be able to run more than 100-150 children before swapping. Here's an example of top's output regarding our httpd process : 54326 apache1 960 156M 13108K select 1 0:00 0.15% httpd 54952 apache1 960 156M 12684K select 1 0:00 0.10% httpd 52343 apache1 40 155M 12280K select 0 0:01 0.10% httpd Most of our page are in HTML with a LOT of images. Few PHP pages, very light PHP processing. 156M x 450 process = way more RAM than what we have (same for RES). Concretely, how must I interpret these results ? It's as I expected -- you don't understand the difference between SIZE (SZ) and RES (RSS). The simple version: SIZE == amount of memory that's shared across all processes on the machine, e.g. shared libraries. It doesn't mean 156MB is being taken up per process. RES == amount of memory that's specifically allocated to that individual process. The three httpd processes above are taking up a total of ~38MBytes of memory (13108K + 12684K + 12280K). As I said, even with RES the numbers dont seems to have any sense. Let's say 12500K x 450 = ~5500MBytes. Considering there's a lot of process other than Apache running on the server...there's something wrong. Is there something shared in RES too ? Right ! I would really appreciate few explanation on this. Do the shared pages counts as active or inactive RAM ? How can i calculate how much physical RAM an apache process is taking ? How the VM works in this regard ? ;) Others will have to explain the shared memory/pages aspect, as it's beyond my understanding. But recent versions of 7.0 and 7.1-PRERELEASE contain a tool called procstat(1) which can help you break down the memory usage within a process. Our next server will be in 7.0 for sure. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: almost OT os x
On Oct 27, 2008, at 11:06 PM, kalin m wrote: Jeremy Chadwick wrote: On Mon, Oct 27, 2008 at 10:19:56PM -0400, kalin m wrote: this is a bit OT but since bsd and os x have enough in common in the core some people here might have dealt with an os x server before.. ok. here is the problem. i have this os x server put on my lap to administer and there are some really weired things happening. the machine has 2 inet interfaces - 2 cards. one of them - en0 (network A) - is wired to 192.168.x.x and the other - en1 (network B) - has an external ip which is not on the same subnet (network) the 192.168.x.x belongs to. so far so good. theoretically the en1 (network B) card should be accessible through the external ip no matter where you a coming from what happens is that if somebody on network A (of en0) tries to access the machine via 192.168.x.x - it works. but if that somebody wants access that machine via the external ip on network B (en1), like they would access any other external IP - they can not. this is weired because they can access any other machine on B . now me being on the network B i can access the machine via the external IP which is also on B, but, and this is the weirdest, i can not access it from outside either A or B with that same IP (?!?). but i can access any other machine on B from outside either subnet What you're describing sounds like a network loopback problem (at least this is what the Linux folks refer to it as). I would recommend you re-post this question to freebsd-net, as someone there can explain to you what's happening in detail, why it happens, and how to solve it effectively. ok. will try there. thanks Also, keep in mind that the FreeBSD and OS X have enough in common concept is a horrible one -- they do have some pieces in common, but OS X really *is* quite a different beast in numerous respects. Apple, sincerely and honestly, has tinkered with all sorts of pieces. Please keep that in mind. :-) ok too. i kinda used that as an excuse to post here cause nobody over there - on some os x lists and forums - was trying to help. and having found a lot of solutions on this list as a long time freebsd user i though i'd give it a shot thanks Kalin, Did you add a specific route for the alternative network? I know this may sound crazy but for whatever reason Macs don't override the default route automatically. You would think that any attached ethernet device would be considered a best route to that LAN however I have had experience otherwise. Cheers, Mikel King CEO, Olivent Technologies Senior Editor, Daemon News Columnist, BSD Magazine 6 Alpine Court Medford, NY 11763 http://www.olivent.com http://www.daemonnews.org http://www.bsdmag.org skype: mikel.king +--+ How do you spell cooperation? Pessimists use each other, but optimists help each other. Collaboration feeds your spirit, while competition only stokes your ego. You'll find the best way to get along. +--+ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
camcontrol(8) - Unexpected busfree in Message-out phase
I cannot get my scsi scanner detected. I'm using FBSD 8.0-current on i386. I'm trying to connect a scsi scanner. I've the following card: ahc0: Adaptec 2940 Ultra SCSI adapter port 0xd800-0xd8ff mem 0xff8ff000-0xff8f irq 10 at device 0.0 on pci1 ahc0: [ITHREAD] aic7880: Ultra Wide Channel A, SCSI Id=7, 16/253 SCBs The scanner's SCSI ID is 6 and it is switched on at boot. I get the following in dmesg: Waiting 5 seconds for SCSI devices to settle (probe0:ahc0:0:0:0): INQUIRY. CDB: 12 0 0 0 24 0 (probe1:ahc0:0:1:0): INQUIRY. CDB: 12 0 0 0 24 0 (probe2:ahc0:0:2:0): INQUIRY. CDB: 12 0 0 0 24 0 (probe3:ahc0:0:3:0): INQUIRY. CDB: 12 0 0 0 24 0 (probe4:ahc0:0:4:0): INQUIRY. CDB: 12 0 0 0 24 0 (probe5:ahc0:0:5:0): INQUIRY. CDB: 12 0 0 0 24 0 (probe6:ahc0:0:6:0): INQUIRY. CDB: 12 0 0 0 24 0 (probe7:ahc0:0:8:0): INQUIRY. CDB: 12 0 0 0 24 0 (probe8:ahc0:0:9:0): INQUIRY. CDB: 12 0 0 0 24 0 (probe9:ahc0:0:10:0): INQUIRY. CDB: 12 0 0 0 24 0 (probe10:ahc0:0:11:0): INQUIRY. CDB: 12 0 0 0 24 0 (probe11:ahc0:0:12:0): INQUIRY. CDB: 12 0 0 0 24 0 (probe12:ahc0:0:13:0): INQUIRY. CDB: 12 0 0 0 24 0 (probe13:ahc0:0:14:0): INQUIRY. CDB: 12 0 0 0 24 0 (probe14:ahc0:0:15:0): INQUIRY. CDB: 12 0 0 0 24 0 (probe6:ahc0:0:6:0): Unexpected busfree in Message-out phase SEQADDR == 0x170 and each time I run # camcontrol rescan all Re-scan of bus 0 was successful # I get these lines added to dmesg: (probe6:ahc0:0:6:0): INQUIRY. CDB: 12 0 0 0 24 0 (probe6:ahc0:0:6:0): Unexpected busfree in Message-out phase SEQADDR == 0x170 and nothing is detected: I'm sure I miss something out, so I don't think this is a `currnet' issue. Any advice? many thanks anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 928 8233 Fax: +44 (0)117 929 4423 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: flash-9, 10 on FreeBSD
Hello! I also had some fight with Adobe's Flash player, but unfortunately without success. I remaing curios about any solution. Laci From: Mikhail Teterin [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, October 28, 2008 1:59:23 PM Subject: flash-9, 10 on FreeBSD Hello! I'm having serious problems with Adobe's Flash 9 and 10 on my FreeBSD-7/amd64 system. If I try to use it directly with linux-firefox, the entire browser crashes quickly. If I try www/nspluginwrapper with a native browser, the wrapper-launched npviewer.bin seg-faults instead. Either way, the plugin does not work... It appears, there was some activity recently in trying to fix these problems (is it all in linprocfs/?) What is the current status? Thanks, -mi ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
A gmirror question.
Hi! I've got a question regarding the way that gmirror identifies what components (if that is the right term) are included in a mirror. I recently created a mirror over two disks, ad2 and ad4. After some bios changes (activating PATA) these devices were changed to ad6 and ad10 respectively. The magic thing (which probably isn't so magic =) ) here is that after reboot, gmirror still managed to identify the mirror, now using ad6 and ad10. If I have understood things correctly, gmirror stores all relevant information about the mirror in the last sector on the provider. So I guess one possible solution is that gmirror ,during startup, scans all disks/slices for this magic sector and then starts the mirror. But if this is the case, how does gmirror know that it should use (in my example above) ad10 and not ad4 as the additional disk in the mirror. Or does gmirror use something else than the /dev entries to address disks?? I'm just curious how gmirror does this. BR Stefan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: VLAN filtering on FreeBSD 7.0 / 6.3
This change requires kernel changes that may not be compatible with 6.X, I am not sure, I am not the owner of that code. Some reason you can't use 7.1 which will have everything you need? TSO is a hardware feature, I have never tested this, but my suspicion is that if its enabled on the hardware that it will transparently happen in the outbound TX stream, but I am not sure. Jack On Tue, Oct 28, 2008 at 7:43 AM, Yony Yossef [EMAIL PROTECTED]wrote: Hi, I have two questions about VLANs on FreeBSD 6.3/7.0. 1. I'm trying to understand whether HW VLAN filtering can be supported. Looking at the code I can't find a proper ioctl that will inform the driver about a vlan creation/destruction. Is there a way of doing it? 2. Second issue - is there way of enabling TSO on vlan interfaces? Thanks Yony ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
How can I get the screenshots only under the command-line?
I wanna get some screenshots of my command-line-only system(8-current),how can I perform this? Thanks a lot,looking forward to your mail. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: flash-9, 10 on FreeBSD
Em Ter, 2008-10-28 às 07:41 -0700, Dánielisz László escreveu: Hello! I also had some fight with Adobe's Flash player, but unfortunately without success. I remaing curios about any solution. Laci Me too, I am using a market aproach, that is: I intend to persuade a notebook producer, to sell the machines with FreeBSD 7.x or FreeBSD 8.x about 3000 machines/month... and without the flash10 working. May be in a month they will start shipping... core 2, 2Gb memory, 250Gb disk, 12 display 1280x800, wireless, camera. for about US$800 As I show them the numbers (about 40k machines/year...) I hope they will make a FreeBSD port... I count on people from FreeBSD list to show the numbers to adobe Sergio ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: flash-9, 10 on FreeBSD
On Tue, Oct 28, 2008 at 10:41 AM, Dánielisz László [EMAIL PROTECTED] wrote: Hello! I also had some fight with Adobe's Flash player, but unfortunately without success. I remaing curios about any solution. Laci From: Mikhail Teterin [EMAIL PROTECTED] [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, October 28, 2008 1:59:23 PM Subject: flash-9, 10 on FreeBSD Hello! I'm having serious problems with Adobe's Flash 9 and 10 on my FreeBSD-7/amd64 system. If I try to use it directly with linux-firefox, the entire browser crashes quickly. If I try www/nspluginwrapper with a native browser, the wrapper-launched npviewer.bin seg-faults instead. Either way, the plugin does not work... It appears, there was some activity recently in trying to fix these problems (is it all in linprocfs/?) What is the current status? Thanks, -mi ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] FreeBSD 7.1 should work with flash9 myself I had no luck so far but nox- does say it should work ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: flash-9, 10 on FreeBSD
Sent by Glyn Millington: My solution was to install Wine and run the MS port of Firefox. So far it works flawlessly for me. This has two problems: 1. It requires a (licensed) Windows install handy. 2. The solution is only suitable for i386 -- not for amd64, which is what I'm using. -mi ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
NFS Help
Hello I have about 10 machines that are NFS clients, 5 are new and 5 are older. Anyway the new machine mount from the NFS server just fine. The older machines mount; and I can ls /mnt/data/; BUT when I ls /mnt/data/sc/ on the older machines this happens: nfs server 192.168.10.162:/data: not responding nfs server 192.168.10.162:/data: not responding nfs server 192.168.10.162:/data: not responding nfs server 192.168.10.162:/data: not responding But on the new machines they work perfectly fine? As well the old machines mount it as i stated before I can even ls the parent directory /mnt/data/ and it shows me all the directories on the mount, but anytime I ls or do anything inside there it does that or freezes. Any idea's? -- Victor Farah - Systems Administrator netmediaservices.net ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: flash-9, 10 on FreeBSD
Sent by matt donovan: FreeBSD 7.1 should work with flash9 myself I had no luck so far but nox- does say it should work I'm using 7.1-PRERELEASE as of Sep 23 and it does not work (yet?) Juergen, please, confirm, that your fixes were committed after Sep 23 -- I'll be happy to rebuild/reboot in that case. Thank you very much! Yours, -mi ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: flash-9, 10 on FreeBSD
Dánielisz László [EMAIL PROTECTED] writes: Hello! I also had some fight with Adobe's Flash player, but unfortunately without success. I remaing curios about any solution. Szia! To be honest I gave up with Flash for either the FreeBSD or Linux version of Firefox. Couldn't get it to work properly. My solution was to install Wine and run the MS port of Firefox. So far it works flawlessly for me. Mw notes are here :- http://www.millingtons.eclipse.co.uk/glyn/freebsd.html look for the section headed Flash? Windows! atb Glyn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: collecting pv entries -- suggest increasing PMAP_SHPGPERPROC
On Oct 28, 2008, at 9:49 AM, Francis Dubé wrote: Here's an example of top's output regarding our httpd process : 54326 apache1 960 156M 13108K select 1 0:00 0.15% httpd 54952 apache1 960 156M 12684K select 1 0:00 0.10% httpd 52343 apache1 40 155M 12280K select 0 0:01 0.10% httpd Most of our page are in HTML with a LOT of images. Few PHP pages, very light PHP processing. 156M x 450 process = way more RAM than what we have (same for RES). Concretely, how must I interpret these results? First, your Apache children are huge, at least for FreeBSD. :-) Also, they are mostly paged out, which suggests your system is under significant VM pressure, but the vmstat output would be helpful to confirm. It's as I expected -- you don't understand the difference between SIZE (SZ) and RES (RSS). The simple version: SIZE == amount of memory that's shared across all processes on the machine, e.g. shared libraries. It doesn't mean 156MB is being taken up per process. SIZE == the amount of VM address space allocated by the process. It includes things shared (copy-on-write) between many processes like the shared libraries; it also includes memory-mapped files (including .so's like apache modules being loaded into the process), VM allocated but not yet used by malloc()/brk(), the stack, and so forth. RES == amount of memory that's specifically allocated to that individual process. The three httpd processes above are taking up a total of ~38MBytes of memory (13108K + 12684K + 12280K). RES == the amount of process VM that is resident in actual physical RAM; the rest of the process is paged out to the swapfile or filesystem for memory-mapped files. As I said, even with RES the numbers dont seems to have any sense. Let's say 12500K x 450 = ~5500MBytes. Considering there's a lot of process other than Apache running on the server...there's something wrong. Is there something shared in RES too ? Yep. Quite probably a lot, but the amount of memory which is specific to just that process is not easily found from FreeBSD's top, regrettably. For the sake of example, and because the same explanation applies pretty closly to FreeBSD, consider an httpd running on a MacOSX system. Here's top output, which includes columns RPRVT for resident memory used by just this process, RSHRD which is resident, shared with other processes, RSIZE which is FreeBSD's RES, and VSIZE, which is FreeBSD's SIZE: Processes: 136 total, 4 running, 132 sleeping... 215 threads 11:06:40 Load Avg: 1.71, 1.66, 1.62 CPU usage: 12.5% user, 59.7% sys, 27.8% idle SharedLibs: num = 141, resident = 18.3M code, 2.92M data, 6.40M LinkEdit MemRegions: num = 10360, resident = 101M + 5.91M private, 159M shared PhysMem: 159M wired, 252M active, 99.0M inactive, 510M used, 1.50G free VM: 7.16G + 88.8M 1378510(0) pageins, 88743(0) pageouts PID COMMAND %CPU TIME #TH #PRTS #MREGS RPRVT RSHRD RSIZE VSIZE 2868 httpd0.0% 43:21.28 11292 1.82M 144M 72.9M 169M 2869 httpd0.0% 46:29.45 11292 1.95M 144M 73.2M 169M 2870 httpd0.0% 46:55.84 11292 1.89M 144M 73.0M 169M ...and the vmmap command, documented here: http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/vmmap.1.html ...provides detailed info about a single process' VM usage: # vmmap 2870 Virtual Memory Map of process 2870 (httpd) Output report format: 2.0 Non-writable regions for process 2870 __PAGEZERO -1000 [4K] ---/--- SM=NUL /usr/ sbin/httpd __TEXT 1000-0005 [ 316K] r-x/rwx SM=COW /usr/ sbin/httpd __LINKEDIT 0005a000-00065000 [ 44K] r--/rwx SM=COW /usr/ sbin/httpd __TEXT 00065000-00068000 [ 12K] r-x/rwx SM=COW /usr/ libexec/httpd/mod_log_config.so __LINKEDIT 00069000-0006a000 [4K] r--/rwx SM=COW /usr/ libexec/httpd/mod_log_config.so __TEXT 0006a000-0006c000 [8K] r-x/rwx SM=COW /usr/ libexec/httpd/mod_mime.so __LINKEDIT 0006d000-0006e000 [4K] r--/rwx SM=COW /usr/ libexec/httpd/mod_mime.so [ ... ] __DATA a1a0e000-a1a2 [ 72K] r--/r-- SM=COW /usr/ lib/libcrypto.0.9.7.dylib __DATA a1a2-a1a23000 [ 12K] r--/r-- SM=COW /usr/ lib/libcrypto.0.9.7.dylib __DATA a4f2c000-a4f2f000 [ 12K] r--/r-- SM=COW /usr/ lib/libssl.0.9.7.dylib __DATA a7233000-a7235000 [8K] r--/r-- SM=NUL / System/Library/Perl/lib/5.8/libperl.dylib system fffec000-fffef000 [ 12K] ---/rwx SM=NUL commpage [libobjc.A.dylib] system fffef000- [4K] r-x/rwx SM=COW commpage [libobjc.A.dylib] system 8000-a000 [8K] r--/r-- SM=SHM commpage [libSystem.B.dylib]
Re: NFS Help
If your server is nfsv4 (freebsd 7.x) the nfs protocol used is tcp. The older machines (freebsd 5 or 6) the nfs prococol is udp... try to use the -T switch (mount_nfs option...) on the older machines so they will use tcp... hope this will help Sergio ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How can I get the screenshots only under the command-line?
Hi-- On Oct 28, 2008, at 9:16 AM, zhenghua wang wrote: I wanna get some screenshots of my command-line-only system(8- current),how can I perform this? Thanks a lot,looking forward to your mail. See man vidcontrol, as in: The following command will capture the contents of the first virtual ter- minal, and redirect the output to the shot.scr file: vidcontrol -p /dev/ttyv0 shot.scr Regards, -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: NFS Help
Victor Farah wrote: Hello I have about 10 machines that are NFS clients, 5 are new and 5 are older. Anyway the new machine mount from the NFS server just fine. The older machines mount; and I can ls /mnt/data/; BUT when I ls /mnt/data/sc/ on the older machines this happens: nfs server 192.168.10.162:/data: not responding nfs server 192.168.10.162:/data: not responding nfs server 192.168.10.162:/data: not responding nfs server 192.168.10.162:/data: not responding But on the new machines they work perfectly fine? As well the old machines mount it as i stated before I can even ls the parent directory /mnt/data/ and it shows me all the directories on the mount, but anytime I ls or do anything inside there it does that or freezes. Any idea's? How old are these old systems? Do you have any ISA type ethernet cards? Read Handbook's section 30.3.6: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-nfs.html I actually had this kind of trouble once, and it was due to an ISA network card. I doubt you are really using an ISA card in a production system, but some of the remedies described in the section may give you a hint of what is going on. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
vlc not decoding certain DVDs
Why is vlc (the CSS library specifically) unable to decode certain CDs? Certain foreign film CDs work fine, but others, mostly US-based Hollywood films don't. I was under the impression that vlc was able to decode everything? I can hear audio on these DVDs, but the video is weird blocks of color. The weird thing is that if I run vlc under WINE, everything works fine. The movie plays, but fullscreen doesn't work and the interface is really horrible on vlc/wine. Any solutions on how to fix this? I am running 7.0-RELEASE on an x86 box. All ports are up to date as of 3 days ago. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: flash-9, 10 on FreeBSD
On Tue, Oct 28, 2008 at 01:49:34PM -0400, Mikhail Teterin wrote: Sent by matt donovan: FreeBSD 7.1 should work with flash9 myself I had no luck so far but nox- does say it should work I'm using 7.1-PRERELEASE as of Sep 23 and it does not work (yet?) Juergen, please, confirm, that your fixes (actually its not _my_ fixes, I only merged one of them for 6...) were committed after Sep 23 -- I'll be happy to rebuild/reboot in that case. Thank you very much! Yours, Yes, as I said, http://svn.freebsd.org/viewvc/base?view=revisionrevision=184075 was committed Oct 20 11:15:57 2008. HTH, Juergen ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
flash9 checklist (was: flash-9, 10 on FreeBSD)
On Tue, Oct 28, 2008 at 08:59:23AM -0400, Mikhail Teterin wrote: Hello! I'm having serious problems with Adobe's Flash 9 and 10 on my FreeBSD-7/amd64 system. If I try to use it directly with linux-firefox, the entire browser crashes quickly. If I try www/nspluginwrapper with a native browser, the wrapper-launched npviewer.bin seg-faults instead. Either way, the plugin does not work... It appears, there was some activity recently in trying to fix these problems (is it all in linprocfs/?) What is the current status? Thanks, -mi Preliminary checklist for getting flash9 to work in native firefox: (flash10 needs more ports work, I shall post about that seperately on -emulation...) If you have additions to this please post a followup to this thread, keeping the Cc: (I'm not on -questions...) 1. You need RELENG_7 from at least Mon Oct 20 11:15:57 2008 UTC (the relevant MFC commits are: http://svn.freebsd.org/viewvc/base?view=revisionrevision=183819 http://svn.freebsd.org/viewvc/base?view=revisionrevision=184075 - a recent HEAD should also work of course.) There are linprocfs patches for RELENG_6 too (merging the former commit), but the latter commit can't be merged to 6 (and 7.0) since they lack the cpuset bits, so flash9 probably won't work on SMP there. (Although if you have SMP you probably should be running 7 anyway. :) Oh and if you do have SMP you also need to use the ULE scheduler, the cpuset syscalls are not supported with 4BSD. linprocfs patches for 6: http://people.freebsd.org/~nox/linprocfs-6.3.patch http://people.freebsd.org/~nox/linprocfs-6.4.patch 2. Your portstree needs to be from at least Sun Oct 19 17:37:28 2008 UTC (the last www/linux-flashplugin9 commit is: http://lists.freebsd.org/pipermail/cvs-ports/2008-October/158404.html ) 3. Make sure linprocfs is mounted to /compat/linux/proc . 4. Make sure www/nspluginwrapper, www/linux-flashplugin9 and dependencies are installed and up to date(!). (the default emulators/linux_base-fc4 should work, if you want to use a later one don't forget to set compat.linux.osrelease=2.6.16 in sysctl.conf and OVERRIDE_LINUX_BASE_PORT to whichever version you use in make.conf. Note however that on 6, only the default compat.linux.osrelease=2.4.2 really works.) 5. If the plugin doesnt show up in firefox' about:plugins, run nspluginwrapper -i /usr/local/lib/npapi/linux-flashplugin/libflashplayer.so and restart firefox. 6. And remember there's a security advisory for the current version of flash9, http://www.FreeBSD.org/ports/portaudit/78f456fd-9c87-11dd-a55e-00163e16.html (if you use portaudit you need to `make -DDISABLE_VULNERABILITIES ...' to be able to install the port), and fc4 seems to be eol'd too, so you probably want to install something like the noscript firefox extension, https://addons.mozilla.org/en-US/firefox/addon/722 and only allow plugins (and scripts, tho thats a different problem) on sites you trust... And finally, if you still get crashes after following the above even on pages that are reported to work now (like youtube) you probably want to run `ktrace -di firefox...' and look at the output using linux_kdump (thats the devel/linux_kdump port, you want to use a package), paying specific attention to the lines above `PSIG SIGSEGV' (or whichever signal you got), maybe there are still shlibs missing that the plugin needs (NAMI ...something.so...), and if this is the case tell us about it so the appropriate dependencies can be added to the relevant ports. If you can't figure it out I guess it doesn't hurt to post the last few 100 lines of the dump up to the relevant PSIG on -emulation... You may also want to check linked shlibs like this: /compat/linux/bin/sh /compat/linux/usr/bin/ldd /usr/local/lib/npapi/linux-flashplugin/libflashplayer.so and /compat/linux/bin/sh /compat/linux/usr/bin/ldd /usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin (if you see `not found' in there you know something is wrong) - although that doesn't show libs that may be dlopen()d at runtime. Good luck, Juergen ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: flash-9, 10 on FreeBSD
On Tue, 2008-10-28 at 14:08 -0400, Mikhail Teterin wrote: Sent by Glyn Millington: My solution was to install Wine and run the MS port of Firefox. So far it works flawlessly for me. This has two problems: 1. It requires a (licensed) Windows install handy. 2. The solution is only suitable for i386 -- not for amd64, which is what I'm using. -mi ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] The way forwards has to be to jump onto the gnash band wagon I think that project is moving leaps and bounds. Why be tied into proprietary closed sourced drivel that the people who write it aren't prepared to support a decent Operating System ?? gnash all the way for me.. Regards Craig B ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: gnash (Re: flash-9, 10 on FreeBSD)
On Tue, 2008-10-28 at 14:34 -0400, Mikhail Teterin wrote: Sent by Craig Butler: gnash all the way for me.. Does it work with YouTube? -mi Some of the video's work on youtube with the gnash-devel I think there is an issue with the videos that use the On2 VP62 codec... (again another closed sourced codec no suprise there !) It is a work in progress, but it works good enough for me. I am sure the developers will work the little niggles out. I am not overly concerned about the VP62 tho, we should have a choice ! Go on give it a try see if it works for you... No loss if it doesn't. Regards Craig B ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: NFS Help
AWESOME this worked like a charm, I added -r=1024 to it and BAM works! :) Thank you everybody! Manolis Kiagias wrote: Victor Farah wrote: Hello I have about 10 machines that are NFS clients, 5 are new and 5 are older. Anyway the new machine mount from the NFS server just fine. The older machines mount; and I can ls /mnt/data/; BUT when I ls /mnt/data/sc/ on the older machines this happens: nfs server 192.168.10.162:/data: not responding nfs server 192.168.10.162:/data: not responding nfs server 192.168.10.162:/data: not responding nfs server 192.168.10.162:/data: not responding But on the new machines they work perfectly fine? As well the old machines mount it as i stated before I can even ls the parent directory /mnt/data/ and it shows me all the directories on the mount, but anytime I ls or do anything inside there it does that or freezes. Any idea's? How old are these old systems? Do you have any ISA type ethernet cards? Read Handbook's section 30.3.6: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-nfs.html I actually had this kind of trouble once, and it was due to an ISA network card. I doubt you are really using an ISA card in a production system, but some of the remedies described in the section may give you a hint of what is going on. -- Victor Farah - Systems Administrator netmediaservices.net ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: flash-9, 10 on FreeBSD
Craig Butler writes: The way forwards has to be to jump onto the gnash band wagon I think that project is moving leaps and bounds. The last time I tried it (2-3 months ago) gnash was no more funnctional than Flash 9. Why be tied into proprietary closed sourced drivel that the people who write it aren't prepared to support a decent Operating System ?? I have read - some place that made me give it credence - that while Flash 10 /in se/ will not necessarily be more non-(Windows/ OS X) friendly, Actionscript (which as I understand it is the link between the broswer and Flash) was being developed in ... consultation if not necessaeily cooperation ... with the open source community and there was reasonable hope a formal spec might made freely available. Mind you, this was a year (maybe more) ago. I have no idea how that turned out, or even if it was accurate yo begin with. Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: flash-9, 10 on FreeBSD
On Tue, Oct 28, 2008 at 03:40:28PM -0200, User Lenzi wrote: Em Ter, 2008-10-28 às 07:41 -0700, Dánielisz László escreveu: Hello! I also had some fight with Adobe's Flash player, but unfortunately without success. I remaing curios about any solution. Laci Me too, I am using a market aproach, that is: I intend to persuade a notebook producer, to sell the machines with FreeBSD 7.x or FreeBSD 8.x about 3000 machines/month... and without the flash10 working. May be in a month they will start shipping... core 2, 2Gb memory, 250Gb disk, 12 display 1280x800, wireless, camera. for about US$800 As I show them the numbers (about 40k machines/year...) I hope they will make a FreeBSD port... Good. I hope you can pull it off. jerry I count on people from FreeBSD list to show the numbers to adobe Sergio ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: vlc not decoding certain DVDs
On Tue, Oct 28, 2008 at 2:49 PM, Joachim Rosenfeld [EMAIL PROTECTED]wrote: Why is vlc (the CSS library specifically) unable to decode certain CDs? Certain foreign film CDs work fine, but others, mostly US-based Hollywood films don't. I was under the impression that vlc was able to decode everything? I can hear audio on these DVDs, but the video is weird blocks of color. The weird thing is that if I run vlc under WINE, everything works fine. The movie plays, but fullscreen doesn't work and the interface is really horrible on vlc/wine. Any solutions on how to fix this? I am running 7.0-RELEASE on an x86 box. All ports are up to date as of 3 days ago. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] umm VLC hasn't been able to decode everything for quite a long time install libdvdcss ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
gnash (Re: flash-9, 10 on FreeBSD)
Sent by Craig Butler: gnash all the way for me.. Does it work with YouTube? -mi ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RTLD changes for non-native system (was: Re: Why does adding /usr/lib32 to LD_LIBRARY_PATH break 64-bit ?binaries?)
Quoting Daniel O'Connor [EMAIL PROTECTED] (from Tue, 28 Oct 2008 10:18:10 +1030): On Tuesday 28 October 2008 01:31:16 M. Warner Losh wrote: In message: [EMAIL PROTECTED] Oliver Fromme [EMAIL PROTECTED] writes: : Daniel O'Connor wrote: : On Friday 24 October 2008 23:20:59 Peter Jeremy wrote: : this will make system trying to bind 32-bit libs to 64-bit : program. it can't work : :rtld shouldn't attempt to bind 32-bit libs to 64-bit programs. : : The same problem happens with the Linux run time linker - it merrily : tries to link FreeBSD libraries to Linux binaries with predictable : results.. : : You *can* link Linux libraries with FreeBSD binaries (and : vice versa), if the library does not perform any syscalls, : e.g. it is a pure computation library or similar. : : That said it would be really nice if it ignored incompatible libraries : :) : : No. Please don't put such pseudo-cleverness into rtld. : It wouldn't be an improvement, in fact it might break some : working configurations. Yes. I have a bunch of printer drivers that I've used that link in linux shared libraries... They are in ports... Good point.. The problem is really the Linux linker - it will find a FreeBSD library and try and use it ahead of a Linux one later in the search path - this prevents stuff working :) I have this exact problem with libfontconfig and Xilinx ISE. Perhaps instead of ignore, use last.. But then it doesn't really matter for the FreeBSD linker - I imagine I would have to convince Linux folks it's a good idea. Please ignore for a moment that we are not talking about changing the FreeBSD RTLD anymore: Would it make sense (for us and/or for GNU) to first search for libs for the current system and if none are found to try the others? Bye, Alexander. -- There is hardly a thing in the world that some man can not make a little worse and sell a little cheaper. http://www.Leidinger.netAlexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: flash-9, 10 on FreeBSD
On Tuesday 28 October 2008 13:31:13 Craig Butler wrote: The way forwards has to be to jump onto the gnash band wagon I think that project is moving leaps and bounds. Any idea how to get the Firefox plugin working? I installed it with PLUGIN and GTK selected, and /usr/local/lib/browser_plugins/libgnashplugin.so is there, but about:plugins doesn't reflect it. -- Kirk Strauser ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: flash-9, 10 on FreeBSD
I'm having issue with flash10 (yet somehow it was working before) and my co-workers, they are able to run it just fine I'm running CentOS 5.2, I know it's not FreeBSD, but still maybe somehow would help... kernel: npviewer.bin[26449]: segfault at rip rsp ffa21f9c error 14 this is error message I get through messages On Tue, Oct 28, 2008 at 3:10 PM, Robert Huff [EMAIL PROTECTED] wrote: Craig Butler writes: The way forwards has to be to jump onto the gnash band wagon I think that project is moving leaps and bounds. The last time I tried it (2-3 months ago) gnash was no more funnctional than Flash 9. Why be tied into proprietary closed sourced drivel that the people who write it aren't prepared to support a decent Operating System ?? I have read - some place that made me give it credence - that while Flash 10 /in se/ will not necessarily be more non-(Windows/ OS X) friendly, Actionscript (which as I understand it is the link between the broswer and Flash) was being developed in ... consultation if not necessaeily cooperation ... with the open source community and there was reasonable hope a formal spec might made freely available. Mind you, this was a year (maybe more) ago. I have no idea how that turned out, or even if it was accurate yo begin with. Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- http://alexus.org/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: flash-9, 10 on FreeBSD
On Tue, Oct 28, 2008 at 02:08:43PM -0400, Mikhail Teterin wrote: Sent by Glyn Millington: My solution was to install Wine and run the MS port of Firefox. So far it works flawlessly for me. This has two problems: 1. It requires a (licensed) Windows install handy. 2. The solution is only suitable for i386 -- not for amd64, which is what I'm using. -mi Not having the ``*required*'' flash-NN that makes the latest animation or A/V apps is the biggest gripe I have relating to not being able to use the most stable OS around, FBSD. Prev'ly when I've asked why sites can't simply use JAVA, I hear that Java is more difficult to use than flash. I understand the basic of animation; that about it. But isn't a better solution to get gnash up to speed rather than begging Adobe to port flash-9 or -10 for us? any thoughts on freeing ourselves from this addiction to flash-* ? -- Gary Kline [EMAIL PROTECTED] http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: flash-9, 10 on FreeBSD
Kirk Strauser wrote: On Tuesday 28 October 2008 13:31:13 Craig Butler wrote: The way forwards has to be to jump onto the gnash band wagon I think that project is moving leaps and bounds. Any idea how to get the Firefox plugin working? I installed it with PLUGIN and GTK selected, and /usr/local/lib/browser_plugins/libgnashplugin.so is there, but about:plugins doesn't reflect it. If it is firefox3 you are talking about, create a symbolic link to the actual plugins directory: ln -s /usr/local/lib/browser_plugins/libgnashplugin.so /usr/local/lib/firefox3/plugins (repeat for any other plugins you need from browser_plugins that do not work. Bear in mind that your browser may crash if they happen to be incompatible with firefox3) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: reviving games/freebsd-games
On Tue, 28 Oct 2008 13:03:32 +0100 clemens fischer wrote: On Tue, 28 Oct 2008 11:57:15 +0100 Jurjen Middendorp wrote: If you do char *p = something, you can't write to that string (it's a pointer into some stringtable: easy way to look at it :). You have to use char p[] = something, then it's an array with enough storage to write to :) maybe try something like char scrollname[NUMSCROLLS][]; ? this type of declaration evokes array type has incomplete element type, which is seen as compliant behaviour by gcc experts. so this is a no go. I thought I'd clean up that code declaring a real struct like: struct scrollname_s { int active; char name[] = ...; }; this is what i actually did. it makes the code way more easier to read and keep. then name could stay read-only. OTOH I found numerous larn versions, so keeping ours compatible might keep maintenance costs down. I'd still be interested in what others did. -c ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: A gmirror question.
Stefan Moro wrote: Hi! I've got a question regarding the way that gmirror identifies what components (if that is the right term) are included in a mirror. I recently created a mirror over two disks, ad2 and ad4. After some bios changes (activating PATA) these devices were changed to ad6 and ad10 respectively. The magic thing (which probably isn't so magic =) ) here is that after reboot, gmirror still managed to identify the mirror, now using ad6 and ad10. If I have understood things correctly, gmirror stores all relevant information about the mirror in the last sector on the provider. So I guess one possible solution is that gmirror ,during startup, scans all disks/slices for this magic sector and then starts the mirror. But if this is the case, how does gmirror know that it should use (in my example above) ad10 and not ad4 as the additional disk in the mirror. Or does gmirror use something else than the /dev entries to address disks?? I'm just curious how gmirror does this. BR Stefan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] I don't know the technical details of the internal working of gmirror, but it likely uses the volume serial number or other such identifier. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: flash-9, 10 on FreeBSD
On Oct 28, 2008, at 4:00 PM, Manolis Kiagias wrote: If it is firefox3 you are talking about, create a symbolic link to the actual plugins directory: ln -s /usr/local/lib/browser_plugins/libgnashplugin.so /usr/local/ lib/firefox3/plugins Well, that seems pretty obvious now. It leads me to wonder, though: what browsers *do* look in /usr/local/lib/browser_plugins? Or is that just meant to be a convenient place to symlink into? -- Kirk Strauser ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: flash-9, 10 on FreeBSD
Kirk Strauser wrote: On Oct 28, 2008, at 4:00 PM, Manolis Kiagias wrote: If it is firefox3 you are talking about, create a symbolic link to the actual plugins directory: ln -s /usr/local/lib/browser_plugins/libgnashplugin.so /usr/local/lib/firefox3/plugins Well, that seems pretty obvious now. It leads me to wonder, though: what browsers *do* look in /usr/local/lib/browser_plugins? Or is that just meant to be a convenient place to symlink into? -- Kirk Strauser The following excerpt from /usr/ports/UPDATING will completely answer your question :) 20080727: AFFECTS: users of www/firefox3 AUTHOR: [EMAIL PROTECTED] Update to 3.0.1_1,1; it no longer seeks for plugins in lib/browser_plugins, because few plugins that built with Firefox 2 can cause Firefox 3 to crash. We are working on making some changes with plugins directory by using www/linux-mplayer-plugin/Makefile.npapi. If there are some other plugins that work with Firefox 3 and you would like to use, you can copy them to ~/.mozilla/plugins or /usr/local/lib/firefox3/plugins manually for now. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: flash-9, 10 on FreeBSD
On Oct 28, 2008, at 4:22 PM, Manolis Kiagias wrote: The following excerpt from /usr/ports/UPDATING will completely answer your question :) Sigh. And I get onto other people for not reading that. :-D -- Kirk Strauser ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: vlc not decoding certain DVDs
On Tue, Oct 28, 2008 at 4:39 PM, matt donovan [EMAIL PROTECTED] wrote: Why is vlc (the CSS library specifically) unable to decode certain CDs? umm VLC hasn't been able to decode everything for quite a long time install libdvdcss I'll have to go back to that box and check, but I was under the impression that, under FreeBSD ports at least, vlc installs libdvdcss. Is this not the case? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: flash-9, 10 on FreeBSD
On Tue, Oct 28, 2008 at 06:31:13PM +, Craig Butler wrote: The way forwards has to be to jump onto the gnash band wagon I think that project is moving leaps and bounds. Why be tied into proprietary closed sourced drivel that the people who write it aren't prepared to support a decent Operating System ?? gnash all the way for me.. I've had better luck with swfdec than gnash. -- Chad Perrin [ content licensed PDL: http://pdl.apotheon.org ] A: It reverses the normal flow of conversation. Q: What's wrong with top-posting? pgp1PjPV9LIHV.pgp Description: PGP signature
Re: collecting pv entries -- suggest increasing PMAP_SHPGPERPROC
Chuck Swiger a écrit : On Oct 28, 2008, at 9:49 AM, Francis Dubé wrote: Here's an example of top's output regarding our httpd process : 54326 apache1 960 156M 13108K select 1 0:00 0.15% httpd 54952 apache1 960 156M 12684K select 1 0:00 0.10% httpd 52343 apache1 40 155M 12280K select 0 0:01 0.10% httpd Most of our page are in HTML with a LOT of images. Few PHP pages, very light PHP processing. 156M x 450 process = way more RAM than what we have (same for RES). Concretely, how must I interpret these results? First, your Apache children are huge, at least for FreeBSD. :-) Also, they are mostly paged out, which suggests your system is under significant VM pressure, but the vmstat output would be helpful to confirm. I'll try to remove some useless modules. Here's the output of vmstat, i should've pasted it in the previous message, sorry about that. vmstat -s 3777275311 cpu context switches 2105577673 device interrupts 359873900 software interrupts 2670696893 traps 2635245695 system calls 43 kernel threads created 4271 fork() calls 824925 vfork() calls 0 rfork() calls 5130 swap pager pageins 7513 swap pager pages paged in 5266 swap pager pageouts 10722 swap pager pages paged out 518980 vnode pager pageins 1659001 vnode pager pages paged in 5717865 vnode pager pageouts 11193440 vnode pager pages paged out 5530 page daemon wakeups 140578661 pages examined by the page daemon 1701262 pages reactivated 2968698933 copy-on-write faults 3856240 copy-on-write optimized faults 4090371353 zero fill pages zeroed 3851399420 zero fill pages prezeroed 457318 intransit blocking page faults 1628587285 total VM faults taken 0 pages affected by kernel thread creation 3234876655 pages affected by fork() 88075637 pages affected by vfork() 0 pages affected by rfork() 1591911567 pages freed 2 pages freed by daemon 4139768534 pages freed by exiting processes 331854 pages active 367993 pages inactive 41103 pages in VM cache 118472 pages wired down 93794 pages free 4096 bytes per page 125580578352 total name lookups cache hits (98% pos + 0% neg) system 0% per-directory deletions 0%, falsehits 0%, toolong 0% It's as I expected -- you don't understand the difference between SIZE (SZ) and RES (RSS). The simple version: SIZE == amount of memory that's shared across all processes on the machine, e.g. shared libraries. It doesn't mean 156MB is being taken up per process. SIZE == the amount of VM address space allocated by the process. It includes things shared (copy-on-write) between many processes like the shared libraries; it also includes memory-mapped files (including .so's like apache modules being loaded into the process), VM allocated but not yet used by malloc()/brk(), the stack, and so forth. RES == amount of memory that's specifically allocated to that individual process. The three httpd processes above are taking up a total of ~38MBytes of memory (13108K + 12684K + 12280K). RES == the amount of process VM that is resident in actual physical RAM; the rest of the process is paged out to the swapfile or filesystem for memory-mapped files. As I said, even with RES the numbers dont seems to have any sense. Let's say 12500K x 450 = ~5500MBytes. Considering there's a lot of process other than Apache running on the server...there's something wrong. Is there something shared in RES too ? Yep. Quite probably a lot, but the amount of memory which is specific to just that process is not easily found from FreeBSD's top, regrettably. For the sake of example, and because the same explanation applies pretty closly to FreeBSD, consider an httpd running on a MacOSX system. Here's top output, which includes columns RPRVT for resident memory used by just this process, RSHRD which is resident, shared with other processes, RSIZE which is FreeBSD's RES, and VSIZE, which is FreeBSD's SIZE: Processes: 136 total, 4 running, 132 sleeping... 215 threads 11:06:40 Load Avg: 1.71, 1.66, 1.62 CPU usage: 12.5% user, 59.7% sys, 27.8% idle SharedLibs: num = 141, resident = 18.3M code, 2.92M data, 6.40M LinkEdit MemRegions: num = 10360, resident = 101M + 5.91M private, 159M shared PhysMem: 159M wired, 252M active, 99.0M inactive, 510M used, 1.50G free VM: 7.16G + 88.8M 1378510(0) pageins, 88743(0) pageouts PID COMMAND %CPU TIME #TH #PRTS #MREGS RPRVT RSHRD RSIZE VSIZE 2868 httpd0.0% 43:21.28 11292 1.82M 144M 72.9M 169M 2869 httpd0.0% 46:29.45 11292 1.95M 144M 73.2M 169M 2870 httpd0.0% 46:55.84 11292 1.89M 144M 73.0M 169M ...and the vmmap command, documented here: http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/vmmap.1.html ...provides detailed info about a single process' VM usage: # vmmap
Re: NFS Help
Sorry I forgot to mention, all machines are FREEBSD6.3 Sergio de Almeida Lenzi wrote: If your server is nfsv4 (freebsd 7.x) the nfs protocol used is tcp. The older machines (freebsd 5 or 6) the nfs prococol is udp... try to use the -T switch (mount_nfs option...) on the older machines so they will use tcp... hope this will help Sergio ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- Victor Farah - Systems Administrator netmediaservices.net ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Can't upgrade or deinstall phpMyAdmin
On Thursday 23 October 2008 10:36:15 Matthew Seaman wrote: The X dependencies come in via php5-gd and pecl-pdflib. php5-gd depends on gd, which depends on libXpm and t1lib which both depend on X libs. pecl-pdflib itself depends on php5-gd. Turning off those two options will keep you X free. More to the point, set WITHOUT_X11=yes in /etc/make.conf or on the command line when building php5-gd and t1lib. On headless servers, putting it in /etc/make.conf will save a few headaches. Sadly, php5-gd hides the WITHOUT_X11 from the OPTIONS dialog, but it's in the /usr/ports/lang/php5/Makefile.ext: .if ${PHP_MODNAME} == gd LIB_DEPENDS=freetype.9:${PORTSDIR}/print/freetype2 \ png.5:${PORTSDIR}/graphics/png \ jpeg.9:${PORTSDIR}/graphics/jpeg . if !defined(WITHOUT_X11) USE_XORG= xpm . endif So, if you need more finegrained control, put this in /etc/make.conf: .if !empty(${.CURDIR:M*/graphics/php5-gd/*}) || !empty(${.CURDIR:M*/devel/t1lib/*}) WITHOUT_X11=yes .endif Valentin Bud wrote: | | I am not that good in FBSD so i'm asking | The good (if not best) thing about the ports system is that Makefiles are readable, though the stuff in /usr/ports/Mk can be overwhelming, you can figure out what does what from a port's Makefile pretty well, even when you don't know much about make(1). And of course there's ports(7) and the elaborate comments at the start of /usr/ports/Mk/bsd.port.mk. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: flash9 checklist (was: flash-9, 10 on FreeBSD)
macromedia still doesn't support FreeBSD, while it's mostly matter of recompiling. if so - simply don't use it ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: A gmirror question.
If I have understood things correctly, gmirror stores all relevant information about the mirror in the last sector on the provider. exactly. it doesn't matter how the disks are connected. all data is in last sector. for non-mirrored drives it's useful to use glabel to get the same ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: VLAN filtering on FreeBSD 7.0 / 6.3
This change requires kernel changes that may not be compatible with 6.X, I am not sure, I am not the owner of that code. Some reason you can't use 7.1 which will have everything you need? I'm bound to 6.3 and 7.0 at the moment. Does the vlan ioctls exist only from 7.1 and fourth? If so, are there any kernel patches to make 6.3 / 7.0 support it as well? TSO is a hardware feature, I have never tested this, but my suspicion is that if its enabled on the hardware that it will transparently happen in the outbound TX stream, but I am not sure. My hardware works fine, I have TSO working on the regular interface. but it seems like vlan interfaces does not inherit the parent device capabilities. Jack On Tue, Oct 28, 2008 at 7:43 AM, Yony Yossef [EMAIL PROTECTED]wrote: Hi, I have two questions about VLANs on FreeBSD 6.3/7.0. 1. I'm trying to understand whether HW VLAN filtering can be supported. Looking at the code I can't find a proper ioctl that will inform the driver about a vlan creation/destruction. Is there a way of doing it? 2. Second issue - is there way of enabling TSO on vlan interfaces? Thanks Yony ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: A gmirror question.
On Tuesday 28 October 2008 17:53:20 Stefan Moro wrote: But if this is the case, how does gmirror know that it should use (in my example above) ad10 and not ad4 as the additional disk in the mirror. Or does gmirror use something else than the /dev entries to address disks?? I'm just curious how gmirror does this. It doesn't care about the device name. Geom modules that are loaded into the kernel, register a 'taste' function, with the geom(4) subsystem, that tastes if a provider is something they want to work with. Effectively, this taste function reads the last sector and checks if it has gmirror metadata. The geom system is the 'magician', which basically hands all providers to the loaded modules. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Security | Kernel message
On Tuesday 28 October 2008 17:32:36 Jeremy Chadwick wrote: On Tue, Oct 28, 2008 at 05:26:03PM +0100, Jos Chrispijn wrote: A prt of my daily security run: triton.xxx.xxx.xxx kernel log messages: +++ /tmp/security.VnqB8ZT6 2008-10-27 23:53:32.0 +0100 +em0: link state changed to DOWN +em0: link state changed to UP +em0: link state changed to DOWN +em0: link state changed to UP +em0: link state changed to DOWN +em0: link state changed to UP Is there a way of adding the time on every DOWN and UP line? No, because the messages are in the kernel log. The kernel itself does not print timestamps, because that's silly. Try doing this: 1) Edit /etc/syslog.conf and enable /var/log/all.log, Actually, these end up in /var/log/messages in a vanilla system (*.notice). You can modify /etc/periodic/security/700.kernelmsg, by using: fgrep 'kernel: ' /var/log/messages 2/dev/null | where it says: dmesg 2/dev/null Or more prescise: fgrep 'your.host.name kernel: ' /var/log/messages This will give you timestamps with the output. I can't really think of anything that does end up in dmesg and not in /var/log/messages, but I'm sure there are some. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
libexpat is missing
Hi there, Under FreeBsd 6.2 version, while I was trying to install Krang software this is an error message below. I set up compat5 and expat2 in /usr/ports to get libexpat. But it is still not working. Does anyone know how to get libexpat? -- Error - SeaAd# bin/krang_build ATTEMPTING: Mandrake9_2 ATTEMPTING: Fedora9 ATTEMPTING: Debian ATTEMPTING: MacOSX ATTEMPTING: FreeBSD Building for platform 'FreeBSD'. libexpat is missing from your system, Krang could not find it or we couldn't include it. This library is required by Krang. -- View this message in context: http://www.nabble.com/libexpat-is-missing-tp20218788p20218788.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: VLAN filtering on FreeBSD 7.0 / 6.3
Yony Yossef wrote: Hi, I have two questions about VLANs on FreeBSD 6.3/7.0. 1. I'm trying to understand whether HW VLAN filtering can be supported. Looking at the code I can't find a proper ioctl that will inform the driver about a vlan creation/destruction. Is there a way of doing it? If you're asking how to support vlans in FreeBSD, add lines like these to rc.conf: cloned_interfaces=vlan0 ifconfig_bce1=inet 0.0.0.0 ifconfig_vlan0=vlan 250 vlandev bce1 ifconfig_vlan0_alias0=inet 161.53.72.23 netmask 255.255.255.0 This has worked for me in 6.2 and 6.3. Hardware VLAN filtering is supported in both 6.x and 7.x (at least in bce driver; look for VLAN_HWTAGGING flag in ifconfig). 2. Second issue - is there way of enabling TSO on vlan interfaces? I've asked that question about a week ago on network developers mailing list and the answer was that it could be done but it's not yet implemented (i.e. using VLANs in any way effectively disables TSO). signature.asc Description: OpenPGP digital signature
Newbie question about pkg_add
Hi, good day all. I am new to FreeBSD. I tried to pkg_add -r a package (py-networkx), which tell me that: Error: FTP Unable to get ftp://ftp.freebsd.org/pub/ FreeBSD/ports/i386/packages-7.0-release/Latest/py-networkx.tbz: File unavailable (e.g., file not found, no access) although I know that py-network does exist in /usr/ports. Actually I could go to /usr/ports/math/py-networkx and make install using ports means. Then I could learn from this that there are softwares that could be install from ports while not able to be added from package system? Am I right? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: gmirror slice insertion, FAILURE - READ_DMA status=51READY, DSC, ERROR
Jeremy Chadwick said: ad6: FAILURE - READ_DMA status=51READY,DSC,ERROR error=40UNCORRECTABLE LBA=134802751 Are you sure you don't have a bad hard disk? This looks to be like a classic block/sector failure. I hadn't realized that a bad block would manifest itself with a message about DMA. Seems like such semantics would be a little obscure to most users, apparently including me. So you're saying that the *exact* same READ_DMA error, at the *exact* same LBA, is reported on ad4? If so, that's very bizarre. No, perhaps I wasn't clear enough. Both instances were on ad6, so far. Can you please provide the output from the following commands? See end of message. Let me know if you then want more (in- or out-of-band). Having now installed smartmontools, you can see below that I ran it for both ad4 and ad6. Sure enough, ad6 has logged 2 READ DMA errors - does that make this a definitive bad disk then? Should I not be worried about ad4 too? Those Raw_Read_Error_Rate and Seek_Error_Rate numbers should be zero or very close to it, shouldn't they? I don't know how to interpret what I'm seeing in that output, so I'd appreciate any insight. Should I be returning both disks for warranty claims (they're both very recently purchased)? Wojciech Puchar said: boot from some kind of live CD, then make another mirror (single disk now) on other drive, then do dd if=/dev/ad6s1 of=/dev/mirror/newmirror bs=2k conv=noerror,sync i intentionally did bs=2k instead of larger, to minimize amount of lost data. then change your system to boot from newmirror, take out /dev/ad6 and have it replaced on warranty (or buy new), put new ad6, insert it to the mirror. I think you're describing a method to help me save as much data from ad6 as possible. Fortunately, this is all about constructing a new system, so there's no data yet to lose. Is there anything I should know about this model of hard disk with regards to being known for problems? Also, is there a good test I can perform to hopefully flush out any problems before I put this thing into service? Carl / K0802647 Additional Information # vmstat -i interrupt total rate irq1: atkbd0 4 0 irq4: sio0125724 16 irq19: uhci3 5 0 irq21: uhci1+ 478364 63 irq23: uhci2 ehci1 1 0 cpu0: timer 14517071 1923 irq256: em0 109568 14 cpu1: timer 14514956 1922 Total 29745693 3940 # atacontrol list | grep -v no device present ATA channel 0: ATA channel 1: ATA channel 2: Master: ad4 ST31000340AS/SD15 Serial ATA II ATA channel 3: Master: ad6 ST31000340AS/SD15 Serial ATA II ATA channel 4: Master: acd0 HL-DT-ST DVDRAM GH20NS10/EL00 Serial ATA v1.0 ATA channel 5: ATA channel 6: ATA channel 7: # atacontrol cap ad4 Protocol Serial ATA II device model ST31000340AS serial number xxxH firmware revision SD15 cylinders 16383 heads 16 sectors/track 63 lba supported 268435455 sectors lba48 supported 1953525168 sectors dma supported overlap not supported Feature Support EnableValue Vendor write cacheyes yes read ahead yes yes Native Command Queuing (NCQ) yes - 31/0x1F Tagged Command Queuing (TCQ) no no 31/0x1F SMART yes yes microcode download yes yes security yes no power management yes yes advanced power management no no 65278/0xFEFE automatic acoustic management no no 0/0x00 254/0xFE # atacontrol cap ad6 Protocol Serial ATA II device model ST31000340AS serial number xxxA firmware revision SD15 cylinders 16383 heads 16 sectors/track 63 lba supported 268435455 sectors lba48 supported 1953525168 sectors dma supported overlap not supported Feature Support EnableValue Vendor write cacheyes yes read ahead yes yes Native Command Queuing (NCQ) yes - 31/0x1F Tagged Command Queuing (TCQ) no no 31/0x1F SMART yes yes microcode download yes yes security yes no power management yes yes advanced power management no no 65278/0xFEFE automatic acoustic management no no 0/0x00 254/0xFE # smartctl -a /dev/ad4 smartctl version 5.38 [i386-portbld-freebsd7.0] Copyright (C) 2002-8
RE: vlc not decoding certain DVDs
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of matt donovan Sent: Tuesday, October 28, 2008 12:39 PM To: Joachim Rosenfeld Cc: freebsd-questions@freebsd.org Subject: Re: vlc not decoding certain DVDs On Tue, Oct 28, 2008 at 2:49 PM, Joachim Rosenfeld [EMAIL PROTECTED]wrote: Why is vlc (the CSS library specifically) unable to decode certain CDs? Certain foreign film CDs work fine, but others, mostly US-based Hollywood films don't. I was under the impression that vlc was able to decode everything? I can hear audio on these DVDs, but the video is weird blocks of color. The weird thing is that if I run vlc under WINE, everything works fine. The movie plays, but fullscreen doesn't work and the interface is really horrible on vlc/wine. Any solutions on how to fix this? I am running 7.0-RELEASE on an x86 box. All ports are up to date as of 3 days ago. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] umm VLC hasn't been able to decode everything for quite a long time install libdvdcss I have found personally that the movie studios have been going all out recently in various copy protection standards that break the DVD standard but are still playable on most of the hardware DVD players out there. As a result I've had to resort in some cases to running varous Windows versions of DVD rippers to get the movies into video files and off the DVD. Your going to have to experiment since this is also dependent on the DVD drive itself. Once you get the DVD ripped to a video file it's generally no problem to play it. Ted ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Newbie question about pkg_add
On Wed, Oct 29, 2008 at 11:14:34AM +0800, Canhua wrote: Hi, good day all. I am new to FreeBSD. I tried to pkg_add -r a package (py-networkx), which tell me that: Error: FTP Unable to get ftp://ftp.freebsd.org/pub/ FreeBSD/ports/i386/packages-7.0-release/Latest/py-networkx.tbz: File unavailable (e.g., file not found, no access) although I know that py-network does exist in /usr/ports. Actually I could go to /usr/ports/math/py-networkx and make install using ports means. Then I could learn from this that there are softwares that could be install from ports while not able to be added from package system? Am I right? Correct -- not every port has a package. -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Newbie question about pkg_add
Jeremy Chadwick wrote: On Wed, Oct 29, 2008 at 11:14:34AM +0800, Canhua wrote: Hi, good day all. I am new to FreeBSD. I tried to pkg_add -r a package (py-networkx), which tell me that: Error: FTP Unable to get ftp://ftp.freebsd.org/pub/ FreeBSD/ports/i386/packages-7.0-release/Latest/py-networkx.tbz: File unavailable (e.g., file not found, no access) although I know that py-network does exist in /usr/ports. Actually I could go to /usr/ports/math/py-networkx and make install using ports means. Then I could learn from this that there are softwares that could be install from ports while not able to be added from package system? Am I right? Correct -- not every port has a package. ports-mgmt/portupgrade is a useful tool for easily getting packages and ports, it includes the tool portinstall which does what it says it does. By running portinstall -P pkgname, it will install a port and dependencies with packages if available, otherwise they are built from source. portsman and portmanager are some other frontend tools that can help with package administration, it's really up to your own tastes. -Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]