Re: Swap and memory optimization
I would just bump the ram to 2gigs or 4 if it supports it and call it good. You should be fine. On Thu, Oct 1, 2009 at 8:58 AM, Bill Moran wmo...@potentialtech.com wrote: In response to Dan Nelson dnel...@allantgroup.com: In the last episode (Oct 01), Bill Moran said: bsd b...@todoo.biz wrote: I have a FBSD 6.4p7 box that I use as a mail server - 1Go RAM - RAID1 Works quite well. As I plan to put 100 more mail accounts soon on the server I was wondering if the memory swap was ok on the server considering these figures: last pid: 18956; load averages: 0.04, 0.11, 0.05 up 19+08:36:23 09:53:38 125 processes: 1 running, 124 sleeping CPU: 0.0% user, 0.0% nice, 1.5% system, 0.4% interrupt, 98.1% idle Mem: 499M Active, 70M Inact, 362M Wired, 41M Cache, 111M Buf, 20M Free Swap: 2000M Total, 160M Used, 1840M Free, 8% Inuse Though It looks good to me - the server swaps a bit (between 8 to 14%) and there is not much memory left. Looks like the server would run more smoothly with a bit more RAM. At least an additional 256M, I would think, but considering the price of RAM, you might as well just up it to 2G. The amount of used swap is much less important than whether you are actively swapping (if there are In/Out values on the Swap line in top, or if vmstat 1 shows nonzero values in the pi/po columns). 160MB of used swap is fine if it's just unused daemons (getty, idle webserver, etc). More memory can never hurt, but it doesn't seem like it's urgently needed here. I don't know about that, Dan. Especially considering it's a mail server he's talking about, there's no RAM left for disk cache on that machine. We've seen performance gains on our mail server by putting obscene amounts of RAM into it. After a bit of use, FreeBSD ends up having 6.5G of inactive RAM, which I assume is cache of mailboxes. The result is that while watching gstat, the amount of disk reads is very low (since a lot of data is already in RAM) and the IO is available to do fast writes when new mail comes in. -- Bill Moran http://www.potentialtech.com http://people.collaborativefusion.com/~wmoran/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org -- Who knew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: filesystem size after newfs
On Mon, Aug 10, 2009 at 3:55 PM, Naeem Afzal naf...@hotmail.com wrote: I created this small partition of 512K bytes on disk, I am noticing about 24% is used up before system can be mounted and used. My assumption was about 4% is supposed to be used if minfree is set to 0. #newfs -U -l -m 0 -n -o space /dev/ad1d /dev/ad1d: 0.5MB (1024 sectors) block size 16384, fragment size 2048 using 1 cylinder groups of 0.50MB, 32 blks, 64 inodes with soft updates super-block backups (for fsck -b #) at: 160 #mount /dev/ad1d /test #df -H /test FilesystemSizeUsed Avail Capacity Mounted on /dev/ad1d 391k2.0k389k1%/test Could someone explain where the 512-391=121K of disk space went to? What is the relation between this used of space and total paritition size or is it some fixed ratio? Thanks Regards Naeem _ Express your personality in color! Preview and select themes for Hotmail®. http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=PID23391::T:WLMTAGL:ON:WL:en-US:WM_HYGN_express:082009___ freebsd-questions@freebsd.orghttp://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=PID23391::T:WLMTAGL:ON:WL:en-US:WM_HYGN_express:082009___%0afreebsd-questi...@freebsd.orgmailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org 5% to root, and the rest i am assuming file system blocks. Try making the 512k partition bigger accounting for those things and you should be able to get it really close to 512k available. -- Who knew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Windows 2008 + AD + PF + bridge = problems?
On Mon, Aug 3, 2009 at 5:15 PM, Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.netmel.flynn%2bfbsd.questi...@mailing.thruhere.net wrote: On Friday 31 July 2009 10:15:56 markham roan wrote: A packet capture revealed a number of anomalies. Once the server starts trying to join the domain, we get all sorts of TCP transmission errors, retries, duplicate ACKs etc. In some cases, the public side of the firewall will send an ICMP host-unreachable message for a host which is clearly being BINAT. I've tinkered with net.inet.ip.intr_queue_maxlen, but it doesn't seem to help. net.inet.ip.intr_queue_drops isn't increasing at a noticeable rate, anyway. Does anyone have any thoughts and/or advice on where I can go from here? No experience with the case at hand, but I do see that Vista started to use IGMP protocol even when there's no obvious need to do so. Given that allow all does in fact only allow a handful of IP protocols, excluding IGMP, you may want to investigate if you're not silently blocking (or not translating) one of the more obscure IP protocols. -- Mel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org This might be way off base but I had a server that had issues like that and it ended up being the network cable going bad. It would send an ack but if you captured the ack and other packets at the destination server it would be missing bits. I have personally not had an issue with a pf firewall and server 2008 joining a 2003 domain but network card or cable could cause an issue like that. What does tcpdump tell you on the firewall when monitoring PF while it joins, what rule(s) is it using when it joins? -- Who knew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: NFS- SAN - FreeBSD
You would be better off at least having the SAN on 1gb ethernet or even better tripple 1gb (on a 100mb switch should be fine but you need failover for higher avaliability) ethernet for latency and failover reasons with a hot backup on the network controller. I dont see why you could not do this, its just iscsi connection normally so there is not a big issue getting freebsd to connect to it. We run 2 of the 16tb powervault which does pretty well for storage, one runs everything and the other is a replicated offsite backup. Performance wise, it really depends on how many servers you have pulling data from the SAN and how hard the IO works on the current servers. If you have 100 servers you might push the IO a bit but but it should be fine if your not serving more than 2Mb/s out to everyone, the servers and disks are going to cache a fair amount of always used data. On Mon, Jul 20, 2009 at 11:52 AM, Grant Peel gp...@thenetnow.com wrote: Hi all, I am assuming by the lack of response, my question to too long winded, let me re-phrase: What kind of performance might I expect if I load FreeBSD 7.2 on a 24 disk, Dell PowerVault when its only mission is to serve as a local area storage unit (/home). Obviously, to store all users /home data. Throug an NFS connection via fast (100m/b) ethernet. Each connecting server (6) contain about 200 domains? -Grant - Original Message - From: Grant Peel gp...@thenetnow.com To: freebsd-questions@freebsd.org Sent: Saturday, July 18, 2009 10:35 AM Subject: NFS- SAN - FreeBSD Hi all, Up to this point, all of our servers are standalone, i.e. all services and software required are installed on each local server. Apache, Exim, vm-pop3d, Mysql, etc etc. Each local server is connected to the Inet via a VLAN (WAN), to our colo's switch. Each server contains about 300 domains, each domain has its own IP. Each sever is also connected to a VLAN (LAN) via the same (Dell 48 Port managed switch). We have been considering consolidating all users data from each server to a central (local), storage unit. While I do have active nfs's running (for backups etc), on the LAN only, I have never attempted to create 1 mass storage unit. So I suppose the questions are: 1) Is there any specific hardware that anyone might reccommend? I want to stick with FreeBSD as the OS as I am quite comfortable admining it, 2) Would anyone reccomend NOT using FreeBSD? Why? 3) Assuming I am using FreeBSD as the storage systems OS, could NFS simply be used? 4) Considering out whole Inet traffic runs about 2 Mb/s, is there any reason the port to the Storage unit should be more than 100 M/b (would it be imparative to use 1 G/b transfer)? TIA, -Grant ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org -- Who knew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
acpi HD spin down and CPU sleep
How would I configure freebsd 7.1 (7.2 upgrade in the future) to sleep the HD's and maybe sleep the CPU after an idle time out? I am trying to save power and I would like it to wake on network requests and HD needs. I read the handbook and looked at the acpiconf man page and such but I have not seen anything about doing this really. Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: 7.0 - 7.1 crash every two day
Have you tried: freebsd-update IDS ? I am assuming you did the freebsd-update to update the machine but if not maybe run through mergemaster and another rebuild of the world and kernel to make sure that none of the files got an error from the build. On Sun, May 10, 2009 at 11:51 AM, mailingl...@modernbiztonsag.org wrote: Dear List, I've upgraded from source my 7.0-RELEASE to 7.1-RELEASE. It's a general purpose server for a small company and it's clients, running web, sql, mail and recursive dns. The machine is a Compaq ML350 G2. Version 7.0 was running on it for a year now without any problem. After 30 of April I've upgraded to 7.1 (I've followed the handbook) and since then nearly every two day the machine becomes unreachable except for echorequest. If i try to log in in the terminal it just hangs after i give my password. I'm out of any ideas. Please feel free to ask any more info that I've forgotten to provide. Thank You for your help in advance. Here's the dmesg: Copyright (c) 1992-2009 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 7.1-RELEASE-p5 #2: Fri Apr 24 18:44:13 CEST 2009 r...@lildevil.datawlan:/usr/obj/usr/src/sys/FIREWALL Timecounter i8254 frequency 1193182 Hz quality 0 CPU: Intel Pentium III (996.85-MHz 686-class CPU) Origin = GenuineIntel Id = 0x686 Stepping = 6 Features=0x383f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE real memory = 536854528 (511 MB) avail memory = 511340544 (487 MB) kbd1 at kbdmux0 ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) ACPI Warning (tbfadt-0505): Optional field Gpe1Block has zero address or length:0 0/2 [20070320] acpi0: COMPAQ RACEBAIT on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) unknown: I/O range not supported Timecounter ACPI-safe frequency 3579545 Hz quality 850 acpi_timer0: 24-bit timer at 3.579545MHz port 0x240-0x243 on acpi0 pcib0: ACPI Host-PCI bridge on acpi0 pci_link0: apparently invalid index 0 pci0: ACPI PCI bus on pcib0 sym0: 1510d port 0x2000-0x20ff mem 0xc6effc00-0xc6ef,0xc6efe000-0xc6efefff irq 10 at device 1.0 on pci0 sym0: No NVRAM, ID 7, Fast-40, LVD, parity checking sym0: [ITHREAD] sym1: 1510d port 0x2400-0x24ff mem 0xc6efdc00-0xc6efdfff,0xc6efc000-0xc6efcfff irq 11 at device 1.1 on pci0 sym1: No NVRAM, ID 7, Fast-40, LVD, parity checking sym1: [ITHREAD] fxp0: Intel 82559 Pro/100 Ethernet port 0x2800-0x283f mem 0xc6efb000-0xc6efbfff,0xc6d0-0xc6df irq 15 at device 2.0 on pci0 miibus0: MII bus on fxp0 inphy0: i82555 10/100 media interface PHY 1 on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp0: Ethernet address: 00:50:8b:ee:d2:d6 fxp0: [ITHREAD] vgapci0: VGA-compatible display port 0x2c00-0x2cff mem 0xc500-0xc5ff,0xc6cff000-0xc6cf at device 3.0 on pci0 pci0: base peripheral at device 4.0 (no driver attached) isab0: PCI-ISA bridge at device 15.0 on pci0 isa0: ISA bus on isab0 atapci0: ServerWorks ROSB4 UDMA33 controller port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x3000-0x300f at device 15.1 on pci0 ata0: ATA channel 0 on atapci0 ata0: [ITHREAD] ata1: ATA channel 1 on atapci0 ata1: [ITHREAD] pcib1: ACPI Host-PCI bridge on acpi0 pci3: ACPI PCI bus on pcib1 ida0: Compaq Smart Array 431 controller port 0x4000-0x40ff mem 0xc6fff000-0xc6ff irq 5 at device 3.0 on pci3 ida0: [GIANT-LOCKED] ida0: [ITHREAD] ida0: drives=1 firm_rev=1.22 idad0: Compaq Logical Drive on ida0 idad0: 34727MB (71122560 sectors), blocksize=512 acpi_tz0: Thermal Zone on acpi0 atkbdc0: Keyboard controller (i8042) port 0x60,0x64 irq 1 on acpi0 atkbd0: AT Keyboard irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] fdc0: floppy drive controller port 0x3f2-0x3f5 irq 6 drq 2 on acpi0 fdc0: [FILTER] fd0: 1440-KB 3.5 drive on fdc0 drive 0 sio0: Standard PC COM port port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A sio0: [FILTER] sio1: Standard PC COM port port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A sio1: [FILTER] cpu0: ACPI CPU on acpi0 pmtimer0 on isa0 orm0: ISA Option ROMs at iomem 0xc-0xc7fff,0xc8000-0xcbfff,0xe8000-0xedfff,0xee000-0xe pnpid ORM on isa0 ppc0: Parallel port at port 0x378-0x37f irq 7 on isa0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode ppbus0: Parallel port bus on ppc0 ppbus0: [ITHREAD] plip0: PLIP network interface on ppbus0 plip0: WARNING: using obsoleted IFF_NEEDSGIANT flag lpt0: Printer on ppbus0 lpt0: Interrupt-driven port ppi0: Parallel I/O on ppbus0 ppc0: [GIANT-LOCKED] ppc0: [ITHREAD] sc0: System console at flags 0x100 on isa0 sc0: VGA 16 virtual consoles, flags=0x300 vga0: Generic ISA VGA at port 0x3c0-0x3df iomem 0xa-0xb on isa0
Re: Apache 1.3.41
I had a problem similar to this when I first built a 7.1 server a few weeks ago. I tried to install php5 with apache and gallery and httpd would not start. It was segfaulting every time, php5's module was causing it but I never narrowed it down to exactly why. I ended up uninstalling php5, cleaning the work dir and the downloaded files and rebuilt and installed it. I also ended up rebuilding apache to be on the safe side and it started working again. On Fri, Mar 6, 2009 at 11:01 AM, Jos Chrispijn j...@webrz.net wrote: For some reason, Apache isn't starting anymore after having my ports upgraded today. That was a major php5 upgrade and I think it might have to do something with it. httpd-error.log is empty on this if I give the command triton# apachectl restart /usr/local/sbin/apachectl restart: httpd not running, trying to start /usr/local/sbin/apachectl restart: httpd started and look with 'top' it isn't started and I can give the command again: triton# apachectl restart /usr/local/sbin/apachectl restart: httpd not running, trying to start /usr/local/sbin/apachectl restart: httpd started without having it started. Looks like half way the start Apache is stopping and bypassing every log output. Can some tell me what I am overlooking here? Does it have something to do with the php-5 portupgrade? my httpd.conf: ## ## httpd.conf ## ### Section 1: Global Environment ServerRoot /usr/local/ #LockFile/var/run/httpd.lock PidFile /var/run/httpd.pid ScoreBoardFile /var/run/httpd.scoreboard Timeout 300 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 15 MinSpareServers 5 MaxSpareServers 10 StartServers 5 MaxClients 150 MaxRequestsPerChild 0 LoadModule mmap_static_module libexec/apache/mod_mmap_static.so LoadModule vhost_alias_module libexec/apache/mod_vhost_alias.so LoadModule env_module libexec/apache/mod_env.so LoadModule config_log_module libexec/apache/mod_log_config.so LoadModule mime_magic_module libexec/apache/mod_mime_magic.so LoadModule mime_modulelibexec/apache/mod_mime.so LoadModule negotiation_module libexec/apache/mod_negotiation.so LoadModule status_module libexec/apache/mod_status.so LoadModule info_modulelibexec/apache/mod_info.so LoadModule includes_modulelibexec/apache/mod_include.so LoadModule autoindex_module libexec/apache/mod_autoindex.so LoadModule dir_module libexec/apache/mod_dir.so LoadModule cgi_module libexec/apache/mod_cgi.so LoadModule asis_modulelibexec/apache/mod_asis.so LoadModule imap_modulelibexec/apache/mod_imap.so LoadModule action_module libexec/apache/mod_actions.so LoadModule speling_module libexec/apache/mod_speling.so LoadModule userdir_module libexec/apache/mod_userdir.so LoadModule alias_module libexec/apache/mod_alias.so LoadModule rewrite_module libexec/apache/mod_rewrite.so LoadModule access_module libexec/apache/mod_access.so LoadModule auth_modulelibexec/apache/mod_auth.so LoadModule anon_auth_module libexec/apache/mod_auth_anon.so LoadModule db_auth_module libexec/apache/mod_auth_db.so LoadModule digest_module libexec/apache/mod_digest.so LoadModule proxy_module libexec/apache/libproxy.so LoadModule cern_meta_module libexec/apache/mod_cern_meta.so LoadModule expires_module libexec/apache/mod_expires.so LoadModule headers_module libexec/apache/mod_headers.so LoadModule usertrack_module libexec/apache/mod_usertrack.so LoadModule unique_id_module libexec/apache/mod_unique_id.so LoadModule setenvif_modulelibexec/apache/mod_setenvif.so LoadModule php5_modulelibexec/apache/libphp5.so ClearModuleList AddModule mod_mmap_static.c AddModule mod_vhost_alias.c AddModule mod_env.c AddModule mod_log_config.c AddModule mod_mime_magic.c AddModule mod_mime.c AddModule mod_negotiation.c AddModule mod_status.c AddModule mod_info.c AddModule mod_include.c AddModule mod_autoindex.c AddModule mod_dir.c AddModule mod_cgi.c AddModule mod_asis.c AddModule mod_imap.c AddModule mod_actions.c AddModule mod_speling.c AddModule mod_userdir.c AddModule mod_alias.c AddModule mod_rewrite.c AddModule mod_access.c AddModule mod_auth.c AddModule mod_auth_anon.c AddModule mod_auth_db.c AddModule mod_digest.c AddModule mod_proxy.c AddModule mod_cern_meta.c AddModule mod_expires.c AddModule mod_headers.c AddModule mod_usertrack.c AddModule mod_unique_id.c AddModule mod_so.c AddModule mod_setenvif.c AddModule mod_php5.c ### Section 2: 'Main' server configuration Port 80 User www Group www ServerAdmin x...@.xxx ServerName ..xxx DocumentRoot /usr/local/www Directory / Options FollowSymLinks AllowOverride None /Directory Directory /usr/www Options Indexes FollowSymLinks MultiViews
Re: Top returning 0.0% cpu usage
On Tue, Feb 24, 2009 at 3:59 PM, Frank Shute fr...@shute.org.uk wrote: On Mon, Feb 23, 2009 at 03:21:28PM -0800, mojo fms wrote: last pid: 11406; load averages: 0.07, 0.02, 0.00 up 2+20:54:15 15:36:35 23 processes: 1 running, 22 sleeping CPU: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 0.0% idle That is what it is displaying, the load adverage isnt it, its just the CPU stats. It always displays 0.0% all the way across the board with the machine idle or doing any kind of work. Ummm, that's not right. You could try: # cd /usr/src/usr.bin/top/ # make obj make depend make make install You obviously need the source files for that. There's a section in the handbook on how to install them if they're not installed already: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/updating-upgrading.html You want to use cvsup/csup(1) The problem suggests that your world and kernel might not be in sync and a rebuild might be in order. How did you build/install your system? Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html Same issue after the rebuild and install of top. Any other suggestions? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Top returning 0.0% cpu usage
last pid: 11406; load averages: 0.07, 0.02, 0.00 up 2+20:54:15 15:36:35 23 processes: 1 running, 22 sleeping CPU: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 0.0% idle That is what it is displaying, the load adverage isnt it, its just the CPU stats. It always displays 0.0% all the way across the board with the machine idle or doing any kind of work. On Sat, Feb 21, 2009 at 10:03 AM, Frank Shute fr...@shute.org.uk wrote: On Fri, Feb 20, 2009 at 01:07:54PM -0800, mojo fms wrote: What would cause top to report back 0.0% cpu usage across the top row? It shows the minmal adverage and max correctly and seems to show the correct amount for the processes. How about showing us the lines of top that seem to be a problem? I think you are reading the load averages which have a different meaning than current cpu usage. They are the load averages over 1, 5 15 mins respectively. ie: the average number of processes *running* (processes spend most of their time idle. RUN in the State column of top shows when a process is actually using the cpu). If your machine is virtually idle then the 1 minute load average will be 0 or close to 0 and is normal. If you've just turned on your machine or it's been sitting idle for 15 mins then the other load averages will also be 0. E.g: On this machine doing not a lot: last pid: 96158; load averages: 0.00, 0.04, 0.05up 1+23:50:42 17:41:46 (7.1 RELEASE) Copyright (c) 1992-2009 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 7.1-RELEASE #0: Thu Jan 1 14:37:25 UTC 2009 r...@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC Timecounter i8254 frequency 1193182 Hz quality 0 CPU: Intel Pentium III (996.77-MHz 686-class CPU) Origin = GenuineIntel Id = 0x68a Stepping = 10 [snip] Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Top returning 0.0% cpu usage
What would cause top to report back 0.0% cpu usage across the top row? It shows the minmal adverage and max correctly and seems to show the correct amount for the processes. Copyright (c) 1992-2009 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 7.1-RELEASE #0: Thu Jan 1 14:37:25 UTC 2009 r...@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC Timecounter i8254 frequency 1193182 Hz quality 0 CPU: Intel Pentium III (996.77-MHz 686-class CPU) Origin = GenuineIntel Id = 0x68a Stepping = 10 Features=0x383fbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE real memory = 266301440 (253 MB) avail memory = 246513664 (235 MB) kbd1 at kbdmux0 ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) acpi0: DELL GX150 on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: reservation of 0, a (3) failed acpi0: reservation of 10, f0 (3) failed acpi0: reservation of 100, edf7000 (3) failed Timecounter ACPI-safe frequency 3579545 Hz quality 850 acpi_timer0: 24-bit timer at 3.579545MHz port 0x808-0x80b on acpi0 acpi_button0: Power Button on acpi0 pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0 pci0: ACPI PCI bus on pcib0 vgapci0: VGA-compatible display mem 0xf400-0xf7ff,0xff00-0xff07 irq 9 at device 2.0 on pci0 agp0: Intel 82815 (i815 GMCH) SVGA controller on vgapci0 pcib1: ACPI PCI-PCI bridge at device 30.0 on pci0 pci1: ACPI PCI bus on pcib1 pcib2: PCI-PCI bridge at device 7.0 on pci1 pci2: PCI bus on pcib2 pcib2: memory: end (f8001fff) start (fd00) pcib2: memory: end (f8000fff) start (fd00) fxp0: Intel 82558 Pro/100 Ethernet port 0xece0-0xecff mem 0xfdf0-0xfdff irq 9 at device 4.0 on pci2 miibus0: MII bus on fxp0 inphy0: i82555 10/100 media interface PHY 1 on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp0: Ethernet address: 00:d0:b7:b9:c1:9c fxp0: [ITHREAD] fxp1: Intel 82558 Pro/100 Ethernet port 0xecc0-0xecdf mem 0xfde0-0xfdef irq 10 at device 5.0 on pci2 miibus1: MII bus on fxp1 inphy1: i82555 10/100 media interface PHY 1 on miibus1 inphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp1: Ethernet address: 00:d0:b7:b9:c1:9d fxp1: [ITHREAD] xl0: 3Com 3c905C-TX Fast Etherlink XL port 0xdc80-0xdcff mem 0xfbfffc00-0xfbfffc7f irq 11 at device 12.0 on pci1 miibus2: MII bus on xl0 ukphy0: Generic IEEE 802.3u media interface PHY 24 on miibus2 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto xl0: Ethernet address: 00:06:5b:81:d2:82 xl0: [ITHREAD] isab0: PCI-ISA bridge at device 31.0 on pci0 isa0: ISA bus on isab0 atapci0: Intel ICH2 UDMA100 controller port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 31.1 on pci0 ata0: ATA channel 0 on atapci0 ata0: [ITHREAD] ata1: ATA channel 1 on atapci0 ata1: [ITHREAD] uhci0: Intel 82801BA/BAM (ICH2) USB controller USB-A port 0xff80-0xff9f irq 11 at device 31.2 on pci0 uhci0: [GIANT-LOCKED] uhci0: [ITHREAD] usb0: Intel 82801BA/BAM (ICH2) USB controller USB-A on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 on usb0 uhub0: 2 ports with 2 removable, self powered pci0: serial bus, SMBus at device 31.3 (no driver attached) uhci1: Intel 82801BA/BAM (ICH2) USB controller USB-B port 0xff60-0xff7f irq 11 at device 31.4 on pci0 uhci1: [GIANT-LOCKED] uhci1: [ITHREAD] usb1: Intel 82801BA/BAM (ICH2) USB controller USB-B on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 on usb1 uhub1: 2 ports with 2 removable, self powered pci0: multimedia, audio at device 31.5 (no driver attached) fdc0: floppy drive controller port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FILTER] fd0: 1440-KB 3.5 drive on fdc0 drive 0 atkbdc0: Keyboard controller (i8042) port 0x60,0x64 irq 1 on acpi0 atkbd0: AT Keyboard irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] psm0: PS/2 Mouse irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: [ITHREAD] psm0: model Generic PS/2 mouse, device ID 0 sio0: 16550A-compatible COM port port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A sio0: [FILTER] sio1: 16550A-compatible COM port port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A sio1: [FILTER] cpu0: ACPI CPU on acpi0 pmtimer0 on isa0 orm0: ISA Option ROMs at iomem 0xc-0xc9fff,0xca000-0xcbfff pnpid ORM on isa0 ppc0: Parallel port at port 0x378-0x37f irq 7 on isa0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/8 bytes threshold ppbus0: Parallel port bus on ppc0 ppbus0: [ITHREAD] plip0: PLIP network interface on ppbus0 plip0: WARNING: using obsoleted IFF_NEEDSGIANT flag lpt0: Printer on ppbus0 lpt0: Interrupt-driven port ppi0: Parallel I/O on ppbus0 ppc0: [GIANT-LOCKED] ppc0: [ITHREAD] sc0:
Re: Mounting a partition from freebsd 6.2?
It was /dev/ad2s1. I was able to do a force mount of the partition though and started recovering the information I was looking for. I am not sure why it is not allowing it in general but I have access to most of the files right now which is good. Has anybody had any problems with 6.2 formatted partitions not wanting to mount in 7? On Tue, Jan 13, 2009 at 7:45 AM, Jerry McAllister jerr...@msu.edu wrote: On Tue, Jan 13, 2009 at 12:06:25AM -0800, per...@pluto.rain.com wrote: is there anything specific I should look at for switches or just dump /dev/ad2s1 | restore? Use:dump 0af - | restore -rf - It would be advisable to read the dump and restore manpages first. In 6.1, and I suspect still in 6.2, restore -r should be used only when restoring onto an empty filesystem or loading an incremental on top of such a full restore. If the destination (current directory) is not the root of an empty filesystem, you want restore -x or restore -i instead. I think he was talking about a full filesystem restore in which case 'restore -rf' would be correct. The man page actually is a tiny bit misleading on the -r. You can use it to restore the whole filesystem in any dedicated space including any directory. But with -r you just cannot specify which part of the filesystem you want to restore, such as a particular directory or file. For that you will need -xf which will work for a full filesystem too in most cases. jerry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Blocking very many (tens of thousands) ip addresses in ipfw
Is this kind of thing doable with PF or really a ipfw thing more? On Wed, Jan 14, 2009 at 9:13 AM, Steve Bertrand st...@ibctech.ca wrote: Pieter de Goeje wrote: On Wednesday 14 January 2009 17:23:25 Artem Kuchin wrote: I need to block around 15 ip addreses from acccess the server at all at any port. The addesses are random, they are not nets. These are the spammer i want to block for 24 hours. The list is dynamically generated and regenerated every hour or so. What is the most efficient way to do it? At first i thought doing ipfw rules using 5 ips per rule, that would result in 3 rules! This will be too slow! I need to something really quick and smart. Like matching the first number from ip (195 from 192.1.2.3), if it does not match - skip, if it does - compare the next one and so on. Quoting ipfw(8): LOOKUP TABLES Lookup tables are useful to handle large sparse address sets, typically from a hundred to several thousands of entries. There may be up to 128 different lookup tables, numbered 0 to 127. net.inet.ip.fw.dyn_buckets should probably also be increased to efficiently handle 150k IPs. Please correct me if I'm wrong, but if the OP is going to drop all traffic immediately from the 150k IPs, then dyn_buckets shouldn't come into play, as there is no dynamic rule generated. Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Mounting a partition from freebsd 6.2?
I can run a check disk on it and it returned that the file system was previously mounted on /mnt/backup and returns that the file system is in good shape. I will have to wait until I get back in front of it to attempt the dump piped to restore. I have never had to recover a drive like that, is there anything specific I should look at for switches or just dump /dev/ad2s1 | restore? On Sun, Jan 11, 2009 at 7:13 PM, per...@pluto.rain.com wrote: mojo fms fbsdli...@gmail.com wrote: I was working on an upgrade to 6.3 from 6.2 and I lost power during the install which hosed most of my system. Instead of trying to really recover it I decided to just rebuild. I have a backup of my /etc and /usr/local/etc on a different drive that should be fine, it was just mounted under /mnt normally and used for backups. My problem is that I installed 7.1 and was careful not to erase any data on that drive, but my only options for a partition to mount is /dev/ad2s1. When I try to mount that it gives me mount: /dev/ad2s1 : Operation not permitted, what can I do to get the data off of it? I only really care about my /etc information but it would be nice to get all of the information off of it. Supposing ad2s1 is in fact the slice containing the filesystem in question, and the filesystem was originally made directly on that slice without partitioning it, it should be possible to run dump(8) against it and pipe the output to restore(8). This should work if the slice is readable, even if it cannot be mounted. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Mounting a partition from freebsd 6.2?
I was working on an upgrade to 6.3 from 6.2 and I lost power during the install which hosed most of my system. Instead of trying to really recover it I decided to just rebuild. I have a backup of my /etc and /usr/local/etc on a different drive that should be fine, it was just mounted under /mnt normally and used for backups. My problem is that I installed 7.1 and was careful not to erase any data on that drive, but my only options for a partition to mount is /dev/ad2s1. When I try to mount that it gives me mount: /dev/ad2s1 : Operation not permitted, what can I do to get the data off of it? I only really care about my /etc information but it would be nice to get all of the information off of it. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Php5 PCRE Compile error
I am working with an updated ports tree (as of july 14th 06 at 11:32PST) on freebsd 6.1 stable, I am installed the /usr/ports/devel/php5-pcre package to hopefully fix another error with apache trying to run squirrelmail. The Error from apache for SquirrelMail is this: [Fri Jul 14 15:42:20 2006] [error] PHP Fatal error: Call to undefined function preg_replace() in /usr/local/www/squirrelmail/functions/global.php on line 125 The error from trying to compile php5-pcre is this: cc -DEXPORT= -DNEWLINE=10 -DSUPPORT_UTF8 -DSUPPORT_UCP -DLINK_SIZE=2 -DPOSIX_MALLOC_THRESHOLD=10 -DMATCH_LIMIT=1000 -DMATCH_LIMIT_RECURSION=1000 -I/usr/ports/devel/php5-pcre/work/php-5.1.4/ext/pcre/pcrelib -I. -I/usr/ports/devel/php5-pcre/work/php-5.1.4/ext/pcre -DPHP_ATOM_INC -I/usr/ports/devel/php5-pcre/work/php-5.1.4/ext/pcre/include -I/usr/ports/devel/php5-pcre/work/php-5.1.4/ext/pcre/main -I/usr/ports/devel/php5-pcre/work/php-5.1.4/ext/pcre -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -DHAVE_CONFIG_H -O2 -pipe -c /usr/ports/devel/php5-pcre/work/php-5.1.4/ext/pcre/php_pcre.c -fPIC -DPIC -o .libs/php_pcre.o /usr/ports/devel/php5-pcre/work/php-5.1.4/ext/pcre/php_pcre.c:1630: error: `fifth_arg_force_ref' undeclared here (not in a function) /usr/ports/devel/php5-pcre/work/php-5.1.4/ext/pcre/php_pcre.c:1630: error: initializer element is not constant /usr/ports/devel/php5-pcre/work/php-5.1.4/ext/pcre/php_pcre.c:1630: error: (near initialization for `pcre_functions[2].arg_info') /usr/ports/devel/php5-pcre/work/php-5.1.4/ext/pcre/php_pcre.c:1630: error: initializer element is not constant /usr/ports/devel/php5-pcre/work/php-5.1.4/ext/pcre/php_pcre.c:1630: error: (near initialization for `pcre_functions[2]') /usr/ports/devel/php5-pcre/work/php-5.1.4/ext/pcre/php_pcre.c:1631: error: initializer element is not constant /usr/ports/devel/php5-pcre/work/php-5.1.4/ext/pcre/php_pcre.c:1631: error: (near initialization for `pcre_functions[3].arg_info') /usr/ports/devel/php5-pcre/work/php-5.1.4/ext/pcre/php_pcre.c:1631: error: initializer element is not constant /usr/ports/devel/php5-pcre/work/php-5.1.4/ext/pcre/php_pcre.c:1631: error: (near initialization for `pcre_functions[3]') /usr/ports/devel/php5-pcre/work/php-5.1.4/ext/pcre/php_pcre.c:1632: error: initializer element is not constant /usr/ports/devel/php5-pcre/work/php-5.1.4/ext/pcre/php_pcre.c:1632: error: (near initialization for `pcre_functions[4]') /usr/ports/devel/php5-pcre/work/php-5.1.4/ext/pcre/php_pcre.c:1633: error: initializer element is not constant /usr/ports/devel/php5-pcre/work/php-5.1.4/ext/pcre/php_pcre.c:1633: error: (near initialization for `pcre_functions[5]') /usr/ports/devel/php5-pcre/work/php-5.1.4/ext/pcre/php_pcre.c:1634: error: initializer element is not constant /usr/ports/devel/php5-pcre/work/php-5.1.4/ext/pcre/php_pcre.c:1634: error: (near initialization for `pcre_functions[6]') /usr/ports/devel/php5-pcre/work/php-5.1.4/ext/pcre/php_pcre.c:1635: error: initializer element is not constant /usr/ports/devel/php5-pcre/work/php-5.1.4/ext/pcre/php_pcre.c:1635: error: (near initialization for `pcre_functions[7]') *** Error code 1 Stop in /usr/ports/devel/php5-pcre/work/php-5.1.4/ext/pcre. *** Error code 1 Stop in /usr/ports/devel/php5-pcre. I ran a make clean and distclean on the php5-pcre, also a portsclean as well with no luck there. I tried installing from package but I could not figure out the name of the package to install it as. Any help in this area would be very helpful. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
question on the firefox port...
I am having an odd problem on the firefox port. This is a fresh install of Freebsd 6 and basicly what its doing ... === Generating temporary packing list === Checking if www/firefox already installed === firefox-1.5_5,1 is already installed You may wish to ``make deinstall'' and install this port again by ``make reinstall'' to upgrade it properly. If you really wish to overwrite the old port of www/firefox without deleting it first, set the variable FORCE_PKG_REGISTER in your environment or the make install command line. *** Error code 1 Stop in /usr/ports/www/firefox. *** Error code 1 Stop in /usr/ports/www/firefox. I have tried, make deinstall ; make reinstall same error. I am not sure of what i should set FORCE_PKG_REGISTER to but i tried, YES, www/firefox and NO for the settings on it. Running it like this : FORCE_PKG_REGISTER=NO make reinstall ... i did this on make reinstall and make install and nothing still.. make deinstall ... [EMAIL PROTECTED] make deinstall === Deinstalling for www/firefox === firefox not installed, skipping [EMAIL PROTECTED] any suggestions please. Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
A few quick questions, one on daily reports and one on Raid 5...
I know its doable, how would i go about adding another email that the daily reports get sent too? I would still like them to be stored on the system its self but also send to another email account. Raid 5 question, i know in MS Enviroments log files can not be stored on a striped raid array, is it the same for FBSD? And if so what about Mail (/var/mail/*) being stored in there? Any issues with that? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Fwd: ATI Cards...
-- Forwarded message -- From: mojo fms [EMAIL PROTECTED] Date: Jun 8, 2005 6:51 AM Subject: Re: ATI Cards... To: Björn König [EMAIL PROTECTED] That is kind of scary... Any other known working drivers? I know ATI supports one on their website for linux, but i dont think it will work with the Fbsd Kernel... On 6/7/05, Björn König [EMAIL PROTECTED] wrote: mojo fms wrote: I have a machine i just switched from Wiindows to Freebsd... This is the second Fbsd machine i have setup but the first with an ATI card.. I want to do some gaming on it and i was wondering where i could find drivers that will work with Fbsd. I am using the ATI 9600XT AGP 128M card.. Thanks The only suitable driver that I know is experimental. http://r300.sourceforge.net/ Björn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
ATI Cards...
I have a machine i just switched from Wiindows to Freebsd... This is the second Fbsd machine i have setup but the first with an ATI card.. I want to do some gaming on it and i was wondering where i could find drivers that will work with Fbsd. I am using the ATI 9600XT AGP 128M card.. Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
changing users default shell
i know you use to be able to change it in /etc/passwd but im kind of out of date on how it is done on newer versions of fbsd.. i cant find any real info execpt for adduser in the handbook.. I want to change a users shell from sh to bash.. thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: dhclient issue with 5.4... ACPI problem..
I tryed loading the system with ACPI disabled and it worked just fine. I have looked through the handbook but i cant seem to find a way to permently disable it or how to fix the problem through it. Any help on the issue would be great... From: Lowell Gilbert [EMAIL PROTECTED] Reply-To: freebsd-questions@freebsd.org To: mojo fms [EMAIL PROTECTED] CC: freebsd-questions@freebsd.org Subject: Re: dhclient issue with 5.4... Date: 13 May 2005 09:19:49 -0400 mojo fms [EMAIL PROTECTED] writes: I did a reinstall recently and since then i can not connect the internet using dhclient on that machine. I looked around on google for a bit but found nothing that fixed the problem. I checked the PnP OS option in the bios, it is already set to No, and i played around with new network cables and such. If i plug the cable modem in to my wifes windows computer it pops up with the new DHCP info almost right away. Thanks for any help anyone can provide. What happens when you try to run dhclient by hand? Use the '-v' flag so that you will get the maximum amount of information from dhclient. ___ 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]
cvsup for ports-dupfile
I was wondering if there is a setting in there under the tag like you have for the standard-supfile to where its set for 5.4? Or do you just keep it up-to-date with the current releases everyday? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
dhclient issue with 5.4...
I did a reinstall recently and since then i can not connect the internet using dhclient on that machine. I looked around on google for a bit but found nothing that fixed the problem. I checked the PnP OS option in the bios, it is already set to No, and i played around with new network cables and such. If i plug the cable modem in to my wifes windows computer it pops up with the new DHCP info almost right away. Thanks for any help anyone can provide. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]