Re: FreeBSD MySQL Performance Tunning suggestions???
Hi, FreeBSD 7 should offer much better performance for MySQL. The FreeBSD kernel developers have found ways to relieve some of the kernel bottlenecks which permit multithreaded applications to operate much better. Regards, Antony. On 3 Jun 2008, at 03:43, VeeJay wrote: Hi Guys I need some performance tuning suggestions/help from you. At my job, I am going to build a Web Server with 1. FreeBSD 7.0-RELEASE amd64 2. Apache 2.2.8 3. PHP 4.4.8 (or may be PHP5, what do you suggest?) Server's hardware configuration is as follow: 2 x Quad Core Xeon E5450 3.0GHz,2x6MB,1333FSB 16GB (8x2GB Dual Rank DIMMs) 667MHz FBD 6 x 450GB SAS 15k 3.5 HD Hot Plug PERC 6/i, Integrated Controller Card x6 backplane PE2950 III C5 MSS R10 Add-in PERC 5/i / 6/i 1 S TCP/IP Offload Engine 2P Broadcom TCP/IP Offload Engine functionality (TOE) Not Enabled For FreeBSD 7.0-RELEASE amd64 Which MySQL 5.0 would be used ? 1. FreeBSD 7.x (x86_64) or 2. FreeBSD 6.x (x86) I have done some googling and made these configuration files for Apache and MySQL? Apache: httpd.conf- start # = # Basic settings # = ServerType standalone ServerRoot /usr/local/apache PidFile /usr/local/apache/logs/httpd.pid ScoreBoardFile /usr/local/apache/logs/httpd.scoreboard ResourceConfig /dev/null AccessConfig /dev/null # = # Performance settings # = Timeout 300 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 15 MinSpareServers 5 MaxSpareServers 10 StartServers 5 MaxClients 256 MaxRequestsPerChild 0 # = # Apache modules # = ClearModuleList AddModule mod_log_config.c AddModule mod_mime.c AddModule mod_dir.c AddModule mod_access.c AddModule mod_auth.c AddModule mod_php4.c AddModule mod_rewrite.c AddModule mod_security.c AddModule mod_setenvif.c # = # General settings # = Port 80 User apache Group apache ServerAdmin [EMAIL PROTECTED] UseCanonicalName Off ServerSignature Off HostnameLookups Off ServerTokens Prod IfModule mod_dir.c DirectoryIndex index.html /IfModule DocumentRoot /home/apache/www # = # Access control # = Directory / Options None AllowOverride None Order deny,allow Deny from all /Directory Directory /home/apache/www Order allow,deny Allow from all /Directory Directory /home/apache/www/vhosts/mydomain.com/public_html Order allow,deny Allow from all /Directory # = # MIME encoding # = IfModule mod_mime.c TypesConfig /usr/local/apache/conf/mime.types /IfModule DefaultType text/plain IfModule mod_mime.c AddEncoding x-compress Z AddEncoding x-gzip gz tgz AddType application/x-tar .tgz AddType application/x-httpd-php .html /IfModule # = # Logs # = LogLevel warn LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i \ combined LogFormat %h %l %u %t \%r\ %s %b common LogFormat %{Referer}i - %U referer LogFormat %{User-agent}i agent ErrorLog /var/apache/logs/error_log CustomLog /var/apache/logs/access_log combined # = # Virtual hosts # = NameVirtualHost * VirtualHost * DocumentRoot /home/apache/www/vhosts/mydomain.com/public_html ServerName www.mydomain.com ServerAlias mydomain.com ErrorLog /var/apache/logs/vhosts/mydomain.com/error_log CustomLog /var/apache/logs/vhosts/mydomain.com/access_log combined IfModule mod_rewrite.c RewriteEngine on RewriteRule ^/([a-z]{2})/index.html$ /index.html?topicid=$1 /IfModule ErrorDocument 400 /page_error.html ErrorDocument 401 /page_error.html ErrorDocument 403 /page_error.html ErrorDocument 404 /page_error.html ErrorDocument 500 /page_error.html /VirtualHost # # Logging GET/POST requests, defending against # Cross-Site-Scripting (XSS) and SQL Injection attacks # IfModule mod_security.c AddHandler application/x-httpd-php .html #Turn the filtering engine On or Off SecAuditEngine On # Only log suspicious requests SecAuditEngine RelevantOnly SecAuditLog /var/apache/logs/audit_log SecFilterScanPOST On SecFilterEngine On SecFilterDefaultAction deny,log,status:500
Missing characters in /var/log/messages - hardware fault?
Hi, I'm seeing missing characters in /var/log/messages after kernel panics on a brand new box with a fresh install of 7.0-RELEASE. Typical lines are: May 30 0:14:53 odin2008 savecore: rebot after panic: age fault May 3 10:14:3 odin2008 savecore: wrting core to vmcore.0 Does this imply a hardware fault? Fsck is not showing any problems with the disks. Any help appreciated - I need to know whether I should just send the box back or not! Yours, Mark ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Query on kgdb output
Hi, I'm seeing regular kernel panics on my new box with a fresh install of 7.0-RELEASE. I'm trying to get some information out of kgdb by following the instructions in the handbook - however, I'm getting a 'cannot access memory' message when I try it: odin2008# kgdb kernel.debug /var/crash/vmcore.1 [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol ps_pglobal_lookup] GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as i386-marcel-freebsd. Cannot access memory at address 0x2fd9 (kgdb) where #0 0x in ?? () (kgdb) quit Am I doing something wrong, or does this point to a hardware failure? (I'm also seeing missing characters in /var/log/messages, which I addressed in a separate mail; not sure if it's related). Any help appreciated! Yours, Mark ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Effects of CPUTYPE
On Thu, June 5, 2008 00:24, Jonathan Chen wrote: In my personal opinion, the small gain you get is more than overwhelmed by the big pain you get from setting CPUTYPE. Thanks Jonathan. I think I'll reinstall my 7.0 system from scratch and install the apps from packages rather than build from ports and see if that solves the problems. The thing is that the main serious use for this box is managing my digital photos - over 12GB of them - and it is getting increasingly difficult with the apps I choose to use becoming unreliable. I've really got to the point where I'm considering switching to Linux as I've tried Mandriva and all the apps I use that I'm having problems with on FreeBSD work just fine under Linux. I don't want to switch - I've been using FreeBSD for ~13 years (since 2.0.5) but since I ditched Windows nearly 2 years ago I need reliability. Regards, Mark ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
BSDstats: May Statistics - 23 998 Hosts Reported In
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 As of June 5th, 2008, the project is seeing 23 998 hosts reporting in, with a break down as follows: PC-BSD 14 715 hosts FreeBSD 6 331 hosts DesktopBSD2 662 hosts NetBSD 108 hosts MirBSD 68 hosts OpenBSD 59 hosts DragonFly27 hosts MidnightBSD 22 hosts GNU/kFreeBSD 6 hosts We currently have hosts being reported in from 121 countries, with the top 10 being: United States 5 639 Russian Federation 1 653 Germany 1 489 Australia 1 314 Brazil 1 242 Japan 1 004 France823 United Kingdom822 Ukraine 790 Canada747 Project URL: http://www.bsdstats.org Project Objective: The mission of this site is to compile semi-accurate numbers for advocacy and marketing of the *BSD operating systems. PC-BSD, to the best of our knowledge, is the only one that defaults to enabled, while the rest have to be enabled manually. For FreeBSD users, you just need to install /usr/ports/sysutils/bsdstats to set things up. If you aren't participating, we very much encourage you to start ... the report script is a shell script, so you can scan it to figure out what, exactly, is being sent in .. and there is only one level of reporting that is required, and that is Operating System + Version ... Device and Ports reporting are 100% optional ... For those that are participating ... once more, thank you ... and spread the word, we need more ... Thanks to the folks at PC-BSD, we have a new PHP programmer that will be working with Antony Mawer towards cleaning up / finishing some of the outstanding areas of the web site, so expect to see some improvements in statistics reporting over the next few weeks. If you have any questions, please feel free to email me ... - -- Marc G. FournierHub.Org Hosting Solutions S.A. (http://www.hub.org) Email . [EMAIL PROTECTED] MSN . [EMAIL PROTECTED] Yahoo . yscrappy Skype: hub.orgICQ . 7615664 -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkhHeiAACgkQ4QvfyHIvDvN9RACcCcuRMnTeEhOz4XlJMcVRBm7U X1cAoOGk6ZvG3ab5DVpjKeIEokSEwlYY =cC+C -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Jails and IPv6
Hi everyone, Through all the information I've read (and after testing for myself), it appears as though IPv6 is still not possible inside of a jail. Is this correct? Is there any way that this can be accomplished? Regards, Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: vm.pmap.shpgperproc syslog messages
On Wed, 4 Jun 2008 at 18:46 -0500, [EMAIL PROTECTED] confabulated: I just noticed today I'm starting to get messages in ../messages stating: Approaching the limit on PV entries, consider increasing either the vm.pmap.shpgperproc or the vm.pmap.pv_entry_max sysctl. I did some searching and don't really know what is going on. I did a search using sysctl for all pmap knobs and this is what they are currently: vm.pmap.pmap_collect_active: 0 vm.pmap.pmap_collect_inactive: 0 vm.pmap.pv_entry_spare: 51310 vm.pmap.pv_entry_allocs: 67575721858 vm.pmap.pv_entry_frees: 67574088800 vm.pmap.pc_chunk_tryfail: 0 vm.pmap.pc_chunk_frees: 416252902 vm.pmap.pc_chunk_allocs: 416262928 vm.pmap.pc_chunk_count: 10026 vm.pmap.pv_entry_count: 1633059 vm.pmap.shpgperproc: 500 vm.pmap.pv_entry_max: 6125408 I did increased vm.pmap.shpgperproc to 500 from 200 and immediately saw vm.pmap.pv_entry_max increase as well. This server is a Dell PowerEdge 6850 with four 3.0Gz dual core Zeon processors and 12Gb ram. The server's only purpose is a spam filter. It is running SpamAssassin, ClamAV, Postfix and MySQL. The server is pretty memory intensive. Active memory usually doesn't drop below 8Gb. SpamAssassin usually has roughly 24 children running all the time consuming ~120Mb per child. MySQL is currently taking ~5.5Gb. Can someone shed light on what is going on or what needs to be tweaked? pv_entry are entries that are used to keep track of which processes are sharing a physical page. pv_entry are allocated in groups (chunks to fill a page) - 168 for the AMD64. The more RAM and processes that you have, the more probably that the pages are shared in multiple processes and more pv_entrys are needed. It looks like you are well below the pv_entry_max with shpgperproc at 500. I figured out what was going on when the messages hit the ../messages log. I have a cronjob that executes a MySQL script to optimize tables. It was during that time when the syslog messages were logged. Since increasing vm.pmap.shpgperproc yesterday, I haven't seen anything in the logs. Thanks for the response. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
size of executable - g95 vs gfortran42 - shared libs?
I use two different fortran90 compiler on a simple input file and get executables which differ in size by almost 3 orders of magnitude, see below. Is this something to do with the use of shared libraries? % gfortran42 tmp.f90 % ls -al a.out -rwxr-xr-x 1 xxx zzz9179 5 Jun 14:15 a.out % g95 tmp.f90 % ls -al a.out -rwxr-xr-x 1 xxx zzz 546413 5 Jun 14:15 a.out % The program results seem to be identical. 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: size of executable - g95 vs gfortran42 - shared libs?
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Anton Shterenlikht Sent: Thursday, June 05, 2008 7:21 AM To: freebsd-questions@freebsd.org Subject: size of executable - g95 vs gfortran42 - shared libs? I use two different fortran90 compiler on a simple input file and get executables which differ in size by almost 3 orders of magnitude, see below. Is this something to do with the use of shared libraries? % gfortran42 tmp.f90 % ls -al a.out -rwxr-xr-x 1 xxx zzz9179 5 Jun 14:15 a.out % g95 tmp.f90 % ls -al a.out -rwxr-xr-x 1 xxx zzz 546413 5 Jun 14:15 a.out % The program results seem to be identical. many thanks anton Run file and ldd on the executables to see the difference: [EMAIL PROTECTED] ~]# file `which ls` /bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 8.0 (800038), dynamically linked (uses shared libs), FreeBSD-style, stripped [EMAIL PROTECTED] ~]# ldd `which ls` /bin/ls: libutil.so.7 = /lib/libutil.so.7 (0x28082000) libncurses.so.7 = /lib/libncurses.so.7 (0x2809) libc.so.7 = /lib/libc.so.7 (0x280cf000) [EMAIL PROTECTED] ~]# Hope this helps Tobias ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: size of executable - g95 vs gfortran42 - shared libs?
Anton Shterenlikht wrote: I use two different fortran90 compiler on a simple input file and get executables which differ in size by almost 3 orders of magnitude, see below. Is this something to do with the use of shared libraries? You tell us :) What does file tell you? Kris % gfortran42 tmp.f90 % ls -al a.out -rwxr-xr-x 1 xxx zzz9179 5 Jun 14:15 a.out % g95 tmp.f90 % ls -al a.out -rwxr-xr-x 1 xxx zzz 546413 5 Jun 14:15 a.out % The program results seem to be identical. many thanks anton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
list files in FreeBSD ports tree package
Hi FreeBSD users I am searching for something similar to Red Hat's rpm -q -l package and Debian's dpkg -L package. cheers Simon -- XMPP: [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: list files in FreeBSD ports tree package
El día Thursday, June 05, 2008 a las 03:35:01PM +0200, Simon Jolle escribió: Hi FreeBSD users I am searching for something similar to Red Hat's rpm -q -l package and Debian's dpkg -L package. cheers Simon Don't know nothing about Red Hat or Debian, but how about $ pkg_info -L stardict-2.4.8_5 or even $ man pkg_info HIH matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e [EMAIL PROTECTED] - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ «...una sola vez, que es cuanto basta si se trata de verdades definitivas.» «...only once, which is enough if it has todo with definite truth.» José Saramago, Historia del Cerca de Lisboa ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: size of executable - g95 vs gfortran42 - shared libs?
On Thu, Jun 05, 2008 at 06:29:35AM -0700, Tobias Hoellrich wrote: I use two different fortran90 compiler on a simple input file and get executables which differ in size by almost 3 orders of magnitude, see below. Is this something to do with the use of shared libraries? Run file and ldd on the executables to see the difference: [EMAIL PROTECTED] ~]# file `which ls` /bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 8.0 (800038), dynamically linked (uses shared libs), FreeBSD-style, stripped [EMAIL PROTECTED] ~]# ldd `which ls` /bin/ls: libutil.so.7 = /lib/libutil.so.7 (0x28082000) libncurses.so.7 = /lib/libncurses.so.7 (0x2809) libc.so.7 = /lib/libc.so.7 (0x280cf000) [EMAIL PROTECTED] ~]# Many thanks, the ldd resuts differ, but how does this translate into size? % ls -al *out -rwxr-xr-x 1 mexas wheel 546413 5 Jun 14:39 g95.out -rwxr-xr-x 1 mexas wheel9179 5 Jun 14:39 gf42.out % file *out g95.out: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 7.0 (700109), dynamically linked (uses shared libs), FreeBSD-style, not stripped gf42.out: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 7.0 (700109), dynamically linked (uses shared libs), FreeBSD-style, not stripped % ldd *.out g95.out: libm.so.5 = /lib/libm.so.5 (0x280c5000) libc.so.7 = /lib/libc.so.7 (0x280db000) gf42.out: libgfortran.so.2 = /usr/local/lib/gcc-4.2.4/libgfortran.so.2 (0x2807e000) libm.so.5 = /lib/libm.so.5 (0x28103000) libgcc_s.so.1 = /lib/libgcc_s.so.1 (0x28119000) libc.so.7 = /lib/libc.so.7 (0x28124000) % -- 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: size of executable - g95 vs gfortran42 - shared libs?
% ldd *.out g95.out: libm.so.5 = /lib/libm.so.5 (0x280c5000) libc.so.7 = /lib/libc.so.7 (0x280db000) gf42.out: libgfortran.so.2 = /usr/local/lib/gcc-4.2.4/libgfortran.so.2 (0x2807e000) libm.so.5 = /lib/libm.so.5 (0x28103000) libgcc_s.so.1 = /lib/libgcc_s.so.1 (0x28119000) libc.so.7 = /lib/libc.so.7 (0x28124000) % In the first one the library fortran is directly included in your exec file, so the file is bigger. It looks like you have only a static version of the g95 installed, and then the library is included in the final program ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: size of executable - g95 vs gfortran42 - shared libs?
Anton Shterenlikht wrote: On Thu, Jun 05, 2008 at 06:29:35AM -0700, Tobias Hoellrich wrote: I use two different fortran90 compiler on a simple input file and get executables which differ in size by almost 3 orders of magnitude, see below. Is this something to do with the use of shared libraries? Run file and ldd on the executables to see the difference: [EMAIL PROTECTED] ~]# file `which ls` /bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 8.0 (800038), dynamically linked (uses shared libs), FreeBSD-style, stripped [EMAIL PROTECTED] ~]# ldd `which ls` /bin/ls: libutil.so.7 = /lib/libutil.so.7 (0x28082000) libncurses.so.7 = /lib/libncurses.so.7 (0x2809) libc.so.7 = /lib/libc.so.7 (0x280cf000) [EMAIL PROTECTED] ~]# Many thanks, the ldd resuts differ, but how does this translate into size? % ls -al *out -rwxr-xr-x 1 mexas wheel 546413 5 Jun 14:39 g95.out -rwxr-xr-x 1 mexas wheel9179 5 Jun 14:39 gf42.out % file *out g95.out: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 7.0 (700109), dynamically linked (uses shared libs), FreeBSD-style, not stripped gf42.out: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 7.0 (700109), dynamically linked (uses shared libs), FreeBSD-style, not stripped Both files have debugging symbols enabled. You can remove these with strip, at the cost of not being able to use gdb to obtain backtraces if you run into a bug. % ldd *.out g95.out: libm.so.5 = /lib/libm.so.5 (0x280c5000) libc.so.7 = /lib/libc.so.7 (0x280db000) ^-- this one doesn't link to a dynamic fortran library, so it is presumably statically linked, explaining the size. Look into how the file was constructed (e.g. the command used to link the binary). gf42.out: libgfortran.so.2 = /usr/local/lib/gcc-4.2.4/libgfortran.so.2 (0x2807e000) libm.so.5 = /lib/libm.so.5 (0x28103000) libgcc_s.so.1 = /lib/libgcc_s.so.1 (0x28119000) libc.so.7 = /lib/libc.so.7 (0x28124000) % Kris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: list files in FreeBSD ports tree package
On 6/5/08, Matthias Apitz [EMAIL PROTECTED] wrote: Don't know nothing about Red Hat or Debian, but how about $ pkg_info -L stardict-2.4.8_5 or even $ man pkg_info HIH matthias Thank you Matthias -- XMPP: [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: freebsd-questions Digest, Vol 218, Issue 8
Simply upgrade your kernel. I believe there is an upgrade guide on the release notes: http://freebsd.org/releases/6.3R/announce.html Camilo Bono Vince Malum -- Message: 23 Date: Wed, 04 Jun 2008 09:28:29 +0100 From: Vince Hoffman Subject: Re: any news? 3945 ABG driver! To: Long Story Cc: freebsd-questions@freebsd.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=windows-1252 Long Story wrote: Hi Vince! The (rtfm) advice it might exist in 7.0R which I didnot install or upgrade to Yet, Im using PC-BSD which is 6.3-R and I think i need to do the driver manualy, any info ? or i _have_ to go for 7.0-R for this driver to work ? As its not in 6.3 (sorry didnt think to check if it was before answering,) you could give it a go manually. http://www.clearchain.com/wiki/Wpi is the maintainers website for it but as its down at the moment, I'm not sure what the status of it on 6.x In 7.x its in the distro though. Vince Thanks. Marwan. Date: Tue, 3 Jun 2008 16:42:40 +0100 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: freebsd-questions@freebsd.org Subject: Re: any news? 3945 ABG driver! Long Story wrote: Hello Gurus,Well, any good news or working drivers for wireless 3945ABG ? for 7.0-R or 6.3-R ? Can anyone kindly provide any useful information ?man wpi ;) (sorry to rtfm you but the man page explains it better than I could) Vince THANK YOU Marwan. _ It’s easy to add contacts from Facebook and other social sites through Windows Live™ Messenger. Learn how. https://www.invite2messenger.net/im/?source=TXT_EML_WLH_LearnHow___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] _ Instantly invite friends from Facebook and other social networks to join you on Windows Live™ Messenger. https://www.invite2messenger.net/im/?source=TXT_EML_WLH_InviteFriends___ 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: intrusion? find is thrashing my disk every time I boot.
Steve Franks [EMAIL PROTECTED] writes: I'm really no security expert. I don't leave the system up 24/7, and I'm on a US DSL connection with a bunch of windows boxes. Seems to be a recent phenomena, I've started experiencing disk thrashing I can hear across the room. ps and top report cvslockd has been responsible for the thrashing (which usually occurs at a specific time of day (~1 am MST)), but now, find is doing the thrashing at boot every time (within the last week at least). Needless to say, I haven't changed the system in any way during that week. On windows, I'd just assume this to be normal behavior, but on FreeBSD, it's got me worried... I presume the security section of the manual has a good into to detecting intruders, but first I'm interested if there is a legitimate reason for find to be torturing my disk. I don't run much on my system - apache, cvs, portsnap, ssh, that's about it. That's not really so little. I would tend to doubt it's a security issue, but tracking it down is still a good idea. You should be able to see what user is running the find, using ps(1), and that might give a clue to what the purpose is (but probably not; it'll probably turn out to be root). Once you've tried that, you could use sockstat(1) to track down what file the find operation is dumping into. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ ___ 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 gurus willing to help write Freebsd tutorials
On Wed, Jun 04, 2008 at 10:18:26PM -0700, Ted Mittelstaedt wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jeffrey Goldberg Sent: Wednesday, June 04, 2008 1:34 PM To: Jerry McAllister Cc: FreeBSD List Subject: Re: Looking for gurus willing to help write Freebsd tutorials that I made the right decision. In the same way that when I volunteer at the school, I don't where wear controversial T-Shirts. (Though who would have thought that my Friends don't let friends use Windows shirt would cause complaints!) They'd probably shit bricks if you wore this T-shirt ;-) http://www.cafepress.com/landoverbaptist.165261422 I've seen that one around - I think at church, actually. Then again, my congregation is in Michigan, not Alabama or Mississippi. I'd get one for myself, but they are too expensive. jerry (Yes, I know) Ted ___ 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: Errors with pkg_add
Phusion [EMAIL PROTECTED] writes: I am running FreeBSD 7.0-STABLE i386 and am having problems with pkg_add. I can install packages as the root user without problems. - pkg_add -r packages, works when running as root - pkg_add -r packages, errors out when using sudo % sudo pkg_add -r openssl Error: FTP Unable to get ftp://ftp4.us.freebsd.org/pub/FreeBSD/ports/i386/packages-7-stable/Latest/openssl.tbz: Syntax error, command unrecognized pkg_add: unable to fetch 'ftp://ftp4.us.freebsd.org/pub/FreeBSD/ports/i386/packages-7-stable/Latest/openssl.tbz' by URL % cat /usr/local/etc/sudoers Defaultsenv_keep += PKG_PATH PKG_DBDIR PKG_TMPDIR TMPDIR PACKAGEROOT PACKAGESITE PKGDIR Defaultsenv_keep += PORTSDIR PORTS_INDEX PORTS_DBDIR PACKAGES PKGTOOLS_CONF rootALL=(ALL) ALL %wheel ALL=(ALL) NOPASSWD: ALL This user is a member of the wheel group so no password is required. Both this user and root user are using the csh with the following in .cshrc. setenv PACKAGESITE ftp://ftp4.us.freebsd.org/pub/FreeBSD/ports/i386/packages-7-stable/Latest/ Let me know if you have any ideas. Thanks. sudo may not be setting up the environment correctly. I seem to recall it recently changed defaults to wiping out more of the caller's environment than had previously been the case. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: intrusion? find is thrashing my disk every time I boot.
2008/6/4 Steve Franks [EMAIL PROTECTED]: I'm really no security expert. I don't leave the system up 24/7, and I'm on a US DSL connection with a bunch of windows boxes. Seems to be a recent phenomena, I've started experiencing disk thrashing I can hear across the room. ps and top report cvslockd has been responsible for the thrashing (which usually occurs at a specific time of day (~1 am MST)), but now, find is doing the thrashing at boot every time (within the last week at least). Needless to say, I haven't changed the system in any way during that week. On windows, I'd just assume this to be normal behavior, but on FreeBSD, it's got me worried... I doubt that this is a security issue, but I think you've a silent filesystem corruption. Best thing to do would be to boot to single user and check all filesystems manually to make sure that there isn't anything that goes unnoticed. HTH Christian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Upgrading Kernel on a Remote Server
Hey, I recently ordered a FreeBSD server from a hosting company. This would be the first time I do not have physical access to a FreeBSD system. I'm looking for any hints/tricks/suggestions for managing and upgrading it safely (as in, not locking myself out or having boot errors). The host does not offer KVM/IP or serial port access. The host is installing 6.3-RELEASE. I'd like to upgrade to 7.0-RELEASE, as well as compile in some kernel options for various things. What's the best way to do this on a remote system, minimizing compiling a bad kernel and causing it not to boot? I wouldn't have access to single user mode or anything. Thanks for any suggestions/help/etc, ~Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Example uses of bsnmp-ucd?
Hello, I have discovered that bsnmp-ucd provides the ability to monitor FreeBSD by gathering memory, load average, cpu usage and other system statistics. I wonder if anyone else have any examples of how they graph those statistics? I am currently using cacti and it seems difficult for me to create a template to gather those gathered data. I am looking for help. Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
problems compiling Abiword and almost any Gtk app to FreeBSD 6.2: fusefs-kmod
Hello I am running FreeBSD 6.2-release on a Thinkpad600. I am trying to build a decent workstation for my work (text editing and minor plain web browsing). I do cvs updates weekly of the ports. However recently I found that I can't build abiword or gnumeric or any other gtk2 app, because I get the following an error compiling fusefs-kmod. == fusefs-kmod-0.3.9.p1.20080208_1 requires the userland sources to be installed. Set SRC_BASE if it not in /usr/src. Well I have source files installed (sysinstall-Distribution-source-sys base.). However no change ... I get always the same error using MAKE INSTALL CLEAN or PORTINSTALL. Can some one provide an easy to understand method to sold this annoying problem. Thanks. PS: I am an newbie user of FreeBSD. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Upgrading Kernel on a Remote Server
Date: Thu, 5 Jun 2008 12:15:44 -0400 From: [EMAIL PROTECTED] To: Freebsd-questions@freebsd.org CC: Subject: Upgrading Kernel on a Remote Server Hey, I recently ordered a FreeBSD server from a hosting company. This would be the first time I do not have physical access to a FreeBSD system. I'm looking for any hints/tricks/suggestions for managing and upgrading it safely (as in, not locking myself out or having boot errors). The host does not offer KVM/IP or serial port access. The host is installing 6.3-RELEASE. I'd like to upgrade to 7.0-RELEASE, as well as compile in some kernel options for various things. What's the best way to do this on a remote system, minimizing compiling a bad kernel and causing it not to boot? I wouldn't have access to single user mode or anything. Thanks for any suggestions/help/etc, ~Steve do you have control of the whole box? most places I know that have online hosting like that run you inside a jail as a VPS style system. to answer your original comments, I would say to contact their tech support department and see if you can coordinate with them to have it upgraded to 7.0. If they dont support it, then you are going to be on your own with the install and may have to have them reimage it if you get a bad install. Some places will be willing to do a local base install for your or at least help get over any hurdles with upgrading. -Sean ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Upgrading Kernel on a Remote Server
On Thu, Jun 05, 2008 at 12:15:44PM -0400, Schiz0 wrote: Hey, I recently ordered a FreeBSD server from a hosting company. This would be the first time I do not have physical access to a FreeBSD system. I'm looking for any hints/tricks/suggestions for managing and upgrading it safely (as in, not locking myself out or having boot errors). The host does not offer KVM/IP or serial port access. The host is installing 6.3-RELEASE. I'd like to upgrade to 7.0-RELEASE, as well as compile in some kernel options for various things. What's the best way to do this on a remote system, minimizing compiling a bad kernel and causing it not to boot? I wouldn't have access to single user mode or anything. If you want 7.0, why not just ask the host to install that instead of 6.3. It can't cost them any more - may $0.50 for a CD blank. That way, you are starting off on the desired foot anyway. Of course, you should still csup to the latest source and build it and install it and csup to the latest ports and docs before you do any ports installation. I don't know about wrinkles in doing it remotely because I have always had the servers available to touch. But, as long as you don't do something to lock yourself out, then you should be OK. Hopefully others with remote experience will respond to that. jerry Thanks for any suggestions/help/etc, ~Steve ___ 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: problems compiling Abiword and almost any Gtk app to FreeBSD 6.2: fusefs-kmod
On Mon, Jun 02, 2008 at 09:15:09AM -0400, pedro alves wrote: Hello I am running FreeBSD 6.2-release on a Thinkpad600. I am trying to build a decent workstation for my work (text editing and minor plain web browsing). I do cvs updates weekly of the ports. However recently I found that I can't build abiword or gnumeric or any other gtk2 app, because I get the following an error compiling fusefs-kmod. == fusefs-kmod-0.3.9.p1.20080208_1 requires the userland sources to be installed. Set SRC_BASE if it not in /usr/src. Well I have source files installed (sysinstall-Distribution-source-sys base.). Try installing *all* sources, not just sys and base ones. However no change ... I get always the same error using MAKE INSTALL CLEAN or PORTINSTALL. Can some one provide an easy to understand method to sold this annoying problem. Thanks. PS: I am an newbie user of FreeBSD. HTH, Yuri ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
6.3 to 7.0 STABLE upgrade buildworld failures
Can we no longer use make buildworld to upgrade from source builds? Everytime I've tried, I get build errors. I've gotten the impression from a few things I've read that freebsd-update is suppose to be used. I don't want a binary install/upgrade though. I've just sync from CVS with this in the config: *default host=cvsup15.FreeBSD.org *default base=/var/db *default prefix=/usr *default release=cvs tag=RELENG_7 *default delete use-rel-suffix *default compress src-all Pretty much the same config I've always used, except the RELENG_7. I continually get errors when make buildworld. I went back to the 6.3 source, and successfully make buildworld. My current attempt at buildword with the 7.0 died like this: * === usr.bin/awk (obj,build-tools) yacc -d -o awkgram.c /usr/src/usr.bin/awk/../../contrib/one-true-awk/awkgram.y yacc: 43 shift/reduce conflicts yacc: 85 reduce/reduce conflicts ln -sf awkgram.h ytab.h cc -O -pipe -DHAS_ISBLANK -I. -I/usr/src/usr.bin/awk/../../contrib/one-true-awk -DFOPEN_MAX=64 -I/usr/obj/usr/src/tmp/legacy/usr/include -L/usr/obj/usr/src/tmp/legacy/usr/lib /usr/src/usr.bin/awk/../../contrib/one-true-awk/maketab.c -o maketab === lib/libmagic (obj,build-tools) cc -DHAVE_CONFIG_H -DCOMPILE_ONLY -I/usr/src/lib/libmagic -I/usr/src/lib/libmagic/../../contrib/file -o mkmagic /usr/src/lib/libmagic/../../contrib/file/apprentice.c /usr/src/lib/libmagic/../../contrib/file/funcs.c /usr/src/lib/libmagic/../../contrib/file/magic.c /usr/src/lib/libmagic/../../contrib/file/print.c === usr.sbin/sysinstall (obj,build-tools) cc -o rtermcap /usr/src/usr.sbin/sysinstall/rtermcap.c -ltermcap === gnu/usr.bin/cc/cc_tools (obj,depend,all) make: don't know how to make /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/ansidecl.h. Stop *** Error code 2 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. * The previous attempt died due to a missing tconfig.h. Can anyone shed some light on this please? I can't remember ever having trouble with a buildworld before!! TIA, Casey ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RTL8168/8111 PCI express support
Hi all, I got a computer with a RTL8168/8111 PCI Express nic. It is shown in pciconf but it is not seen by FreeBSD 7. I'm using i386 arch. I have re and rl drivers compiled in the kernel (stock GENERIC kernel, actually). What do I need to make the NIC work properly? I tried to compile the Realtek modified driver but I got a bunch of errors when I tried to compile it (tested up to FreeBSD 6.0 only) Does this[1] anything to do with my problem? Thanks in advance. [1]http://groups.google.com/group/mailing.freebsd.stable/browse_thread/thread/aa93c58a9353ea1c ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
HylaFAX in FreeBSD jail?
Hello, anyone tried running HylaFAX in a FreeBSD jail? Does it work? Thanks, Nejc ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: mfi freebsd7
hi vince... thank you for the advice. i did update my ports and install the 1.01.40 version... i have the linux-base installed and the linprocfs and linsysfs mounted.. but still nothing substantial happening: # megacli -adpCount Controller Count: 0. any other ideas?! thanks... Vince Hoffman wrote: kalin m wrote: sorry for the double posting just to update: i installed also the linux-megamgr same result: Failed to open driver node /dev/megadev0 after linking megadev0 to mfi0 it can not see the version... it gets more and more pathetic by the minute... odd that it wouldnt install as it did for me just now. Is your ports tree up to date? I'm guessing not since the latest version reference in ports is 1.01.40 and you found and got the 1.01.09 rpm/zip try updating your ports to the latest tree (portsnap is my method of choice but csup works fine too :) then try cd /usr/ports/sysutils/linux-megacli make install clean Be sure to pay attention to the post-install message as it tells you about whats needed in the way of kernel modules and sysctl variables as well as what periodic config is available. We do have a server at work using the LSI Logic / Symbios Logic MegaRAID SAS 1078 which hosts 40 VPS's running quite happily in a RAID 1+0 config, each VPS running web/mail/ftp for a number between 1 and 100 websites, so they seem to perform well enough, this is a linux server though. If you've been sold a RAID1 array i'd imagine thats what you have unless you have reason to believe otherwise. It will appear as a singe block device (/dev/mfid0) to the operating system though as you have see. Vince kalin m wrote: thanks Vince... i didnt wanted to install the linux base because a lot of kids will be running some 'cool' boards or blogs that probably have cool linux holes too. but just for the hell of it and for he purpose to get to the controller i did. it took a while to find the Linux_MegaCli_1.01.09.zip. it's not on the freebsd site and not on the LSI site (anymore) either.. anyway after a lot of rpm downloads and patching and variable changing and fs mountings i get this: # /usr/local/sbin/megacli -adpCount ERROR:Could not detect controller. Controller Count: 0. pretty neat system... now what?! Vince Hoffman wrote: kalin m wrote: megarc, right... read about it.. here: # megarc -AllAdpInfo help usage : cmd -AllAdpInfo : prints info of all cards . ok . # megarc -AllAdpInfo ** MEGARC MegaRAID Configuration Utility(FreeBSD)-1.04(03-02-2005) By LSI Logic Corp.,USA ** [Note: For SATA-2, 4 and 6 channel controllers, please specify Ch=0 Id=0..15 for specifying physical drive(Ch=channel, Id=Target)] Type ? as command line arg for help No Adapters Found Error: No MegaRaid Found ?!?!?! does that mean that there is no raid? why then the df output? the machine is supposed to have 4 250gig SAS drives. Its more likely that megarc doesnt support the newer controllers which is a shame. you might have more luck with sysutils/linux-megacli since that explicitly mentions LSI MegaRAID SAS, I wish they would make the util open source though. Will mean you need the linux-base port installed and linux.ko loaded. A RAID1 config shoudl suit a busy webserver well. Vicne thanks... Vince Hoffman wrote: kalin m wrote: hi all... a hosting facility build a new dedicated server for me and looking at the dmesg i see: mfi0: LSI MegaSAS 1078 port 0xec00-0xecff mem 0xfc48-0xfc4b,0xfc44-0xfc47 irq 16 at device 0.0 on pci1 mfi0: Megaraid SAS driver Ver 2.00 for df i get: Filesystem SizeUsed Avail Capacity Mounted on /dev/mfid0s1a496M197M259M43%/ devfs1.0K1.0K 0B 100%/dev /dev/mfid0s1e496M 12K456M 0%/tmp /dev/mfid0s1f661G636M608G 0%/usr /dev/mfid0s1d8.7G1.4M8.0G 0%/var i asked for raid1. i cant find too much information about the mfi driver. just that it works with freebsd 7. you might want to look at sysutils/megarc and possibly sysutils/linux-megamgr so you can more closely monitor/investigate your array. Vince i'll keep looking but - has anybody successfully deployed production servers using the LSI MegaSAS 1078 in RAID1 on a very busy web server? is there any loss in performance using that hardware in RAID1? any performance loss in RAID1 at all? thanks... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL
Re: 6.3 to 7.0 STABLE upgrade buildworld failures
Hi, On Thu, Jun 5, 2008 at 7:20 PM, Casey Scott [EMAIL PROTECTED] wrote: Can we no longer use make buildworld to upgrade from source builds? Everytime I've tried, I get build errors. I've gotten the impression from a few things I've read that freebsd-update is suppose to be used. I don't want a binary install/upgrade though. I've just sync from CVS with this in the config: *default host=cvsup15.FreeBSD.org *default base=/var/db *default prefix=/usr *default release=cvs tag=RELENG_7 *default delete use-rel-suffix *default compress src-all Pretty much the same config I've always used, except the RELENG_7. I continually get errors when make buildworld. I went back to the 6.3 source, and successfully make buildworld. My current attempt at buildword with the 7.0 died like this: * === usr.bin/awk (obj,build-tools) yacc -d -o awkgram.c /usr/src/usr.bin/awk/../../contrib/one-true-awk/awkgram.y yacc: 43 shift/reduce conflicts yacc: 85 reduce/reduce conflicts ln -sf awkgram.h ytab.h cc -O -pipe -DHAS_ISBLANK -I. -I/usr/src/usr.bin/awk/../../contrib/one-true-awk -DFOPEN_MAX=64 -I/usr/obj/usr/src/tmp/legacy/usr/include -L/usr/obj/usr/src/tmp/legacy/usr/lib /usr/src/usr.bin/awk/../../contrib/one-true-awk/maketab.c -o maketab === lib/libmagic (obj,build-tools) cc -DHAVE_CONFIG_H -DCOMPILE_ONLY -I/usr/src/lib/libmagic -I/usr/src/lib/libmagic/../../contrib/file -o mkmagic /usr/src/lib/libmagic/../../contrib/file/apprentice.c /usr/src/lib/libmagic/../../contrib/file/funcs.c /usr/src/lib/libmagic/../../contrib/file/magic.c /usr/src/lib/libmagic/../../contrib/file/print.c === usr.sbin/sysinstall (obj,build-tools) cc -o rtermcap /usr/src/usr.sbin/sysinstall/rtermcap.c -ltermcap === gnu/usr.bin/cc/cc_tools (obj,depend,all) make: don't know how to make /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/ansidecl.h. Stop *** Error code 2 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. * The previous attempt died due to a missing tconfig.h. Can anyone shed some light on this please? I can't remember ever having trouble with a buildworld before!! TIA, Casey ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Try to remove /usr/obj, if it still does not work run # make cleandir ; make cleandir (yes twice) And don't use -j with make when doing a major upgrade (6.x - 7.x) Hope this helps Regards. -- There's this old saying: Give a man a fish, feed him for a day. Teach a man to fish, feed him for life. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Poor read() performance, and I can't profile it
I'm running a command (dumprecspg from my XBaseToPg project) on a FreeBSD 7 server. I've noticed that throughput on that program is a lot lower than I would have expected, and further investigation found it spending most of its time in the kernel, presumably in read() [1]. I was testing the same software on my desktop PC when I noticed that it ran *much* faster, and found that it was spending only about 1% as much time in the kernel on Linux as it was on FreeBSD. I ran a quick-and-dirty comparison of the same software on two different machines, the FreeBSD server being by far the more powerful of the two. I ran the same command on both machines from various filesystems (to rule out differences in drive performance), and posted the output of zsh's time command for the fastest run in each setting. The results are below. Any ideas what could be causing this horrible performance? I'm willing to try just about anything. FreeBSD on a Dell Poweredge 1600SC server: 7-STABLE from 2008-03-09 2x 2.4GHz P4 Xeon 3GB RAM Changes to /etc/make.conf: CPUTYPE?=pentium4 Kernel config: include GENERIC ident JAIL1 options PMAP_SHPGPERPROC=301 nooptionSCHED_4BSD option SCHED_ULE root : Fujitsu 36GB, 10k RPM Best time: 6.37s user 9.68s system 99% cpu 16.068 total /tmp : tmpfs Best time: 6.29s user 10.88s system 99% cpu 17.194 total /fast : 4 Seagate Cheetah 36GB, 15k RPM SCSI320 drives in RAID-0 with gstripe, 128KB stripe size with kern.geom.stripe.fast enabled and stripe.fast_failed=0 Best time: 6.60s user 9.46s system 99% cpu 16.088 total Conclusion: Since gstat showed all drives as idle through most of all the tests, it looks like the rest is running entirely from buffers. Linux on a Dell Dimension 4600 desktop: Ubuntu 8.04 2.4GHz P4 1GB RAM root: WD 250GB SATA Best time: 7.60s user 0.92s system 97% cpu 8.722 total Conclusion: I don't know if there's an equivalent to gstat in Linux, but the system overhead is about one-hundredth as much as in FreeBSD. [1] I can't run gprof on FreeBSD because if I build the binary with -pg, then it segfaults on startup: $ gdb /tmp/xbase/bin/dumprecspg /tmp/dumprecspg.core GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as i386-marcel-freebsd... Core was generated by `dumprecspg'. Program terminated with signal 11, Segmentation fault. Reading symbols from /tmp/xbase/lib/libxbase64.so.1.0...done. Loaded symbols for /tmp/xbase/lib/libxbase64.so.1.0 Reading symbols from /lib/libgcc_s.so.1...done. Loaded symbols for /lib/libgcc_s.so.1 Reading symbols from /lib/libc.so.7...done. Loaded symbols for /lib/libc.so.7 Reading symbols from /libexec/ld-elf.so.1...done. Loaded symbols for /libexec/ld-elf.so.1 #0 0x0807110c in main (ac=Cannot access memory at address 0x18 ) at dumprecspg.cpp:63 63 int main(int ac,char** av) (gdb) -- Kirk Strauser ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Instant Article Wizard, boost Your Writing
In need to Create multiple niche web sites and continually post new content to them! Create articles to submit to fr'ee article sites and get hundreds of back links to your web sites! Get into the business of writing articles for other webmasters on any topic they want! IAW Pro is the answer. [1]https://paydotcom.com/r/47145/Gregg_la1/18390454/ Don't just take my word for it Best-selling Christian author loves IAWPro ... Jon, I was one of the first to get Instant Article Wizard. Immediately I learned the sheer power of the program. Now I'm loving IAWPro. I use your program to research and write articles, chapters of books, special reports, lesson plans, and more. How a guy with A.D.D. ever learned to write books is another story. But IAWPro is 'a sure cure.' Thanks for your investment in my success. I recommend it to all those who take my 'How to Write Your Book and Get it Published' seminars. 2008-04-08 Eddie Smith [2]www.EddieAndAlice.com [3]Go PRO today with IAWPro Your Email: freebsd-questions@freebsd.org If you would like to be added to our Marketing Newsletter suppression list, please send us an email with UNSUBSCRIBE in the subject line References 1. https://paydotcom.com/r/47145/Gregg_la1/18390454/ 2. http://www.eddieandalice.com/ 3. https://paydotcom.com/r/47145/Gregg_la1/18390454/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Poor read() performance, and I can't profile it
Kirk Strauser wrote: I'm running a command (dumprecspg from my XBaseToPg project) on a FreeBSD 7 server. I've noticed that throughput on that program is a lot lower than I would have expected, and further investigation found it spending most of its time in the kernel, presumably in read() [1]. I was testing the same software on my desktop PC when I noticed that it ran *much* faster, and found that it was spending only about 1% as much time in the kernel on Linux as it was on FreeBSD. I ran a quick-and-dirty comparison of the same software on two different machines, the FreeBSD server being by far the more powerful of the two. I ran the same command on both machines from various filesystems (to rule out differences in drive performance), and posted the output of zsh's time command for the fastest run in each setting. The results are below. Any ideas what could be causing this horrible performance? I'm willing to try just about anything. ktrace(1) and check for the buffer size in use. It is probably too small. Kris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
could you resend? was: regarding OT website templates...
Yesterday, someone sent me a file with a couple URLs to frree sites with (i think) xhtml webpages ... free examples of templates. sorry, but ican't find the mail (erp) please resend?? gary -- Gary Kline [EMAIL PROTECTED] 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: 6.3 to 7.0 STABLE upgrade buildworld failures
Various parts of the FreeBSD base system are interdependent on each other. It's likely that one of the NO_* lines is breaking it. Since libgcc is what is failing I'd suspect NO_TOOLCHAIN mergemaster is normally done after installworld, but the -p mode is for pre-buildworld. See the man page for details. Casey Scott wrote: I thought mergemaster was done after installworld? I've tried 3 different cvs sources, same result. Maybe its my make.conf? Here's what I've got: CPUTYPE?=p4 CFLAGS= -O -pipe NO_BLUETOOTH= true# do not build Bluetooth related stuff NO_I4B= true# do not build isdn4bsd package NO_LPR= true# do not build lpr and related programs NO_SENDMAIL=true# do not build sendmail and related programs NO_SHAREDOCS= true# do not build the 4.4BSD legacy docs NO_TOOLCHAIN= true# do not build programs for program development NO_USB= true# do not build usbd(8) and related programs NO_VINUM= true# do not build Vinum utilities NO_ATM= true# do not build ATM related programs and libraries NO_GAMES= true# do not build games (games/ subdir) NO_INET6= true# do not build IPv6 related programs and libraries NO_PROFILE= true# Avoid compiling profiled libraries SENDMAIL_MAP_PERMS= WITHOUT_X11=yes PERL_VER=5.8.8 PERL_VERSION=5.8.8 # make buildworld dies here. ln -sf /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-generic.h unwind.h make -f /usr/src/gnu/lib/libgcc/../../usr.bin/cc/cc_tools/Makefile MFILE=/usr/src/gnu/lib/libgcc/../../usr.bin/cc/cc_tools/Makefile GCCDIR=/usr/src/gnu/lib/libgcc/../../../contrib/gcc gthr-default.h ln -sf /usr/src/gnu/lib/libgcc/../../../contrib/gcc/gthr-posix.h gthr-default.h cc -c -O -pipe -march=pentium4 -DIN_GCC -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -DHAVE_GTHR_DEFAULT -I/usr/src/gnu/lib/libgcc/../../../contrib/gcclibs/include -I/usr/src/gnu/lib/libgcc/../../../contrib/gcc/config -I/usr/src/gnu/lib/libgcc/../../../contrib/gcc -I. -I/usr/src/gnu/lib/libgcc/../../usr.bin/cc/cc_tools -fvisibility=hidden -DHIDE_EXPORTS -fPIC -fexceptions -D__GLIBC__=3 -DElfW=__ElfN -o unwind-dw2.o /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c In file included from /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:32: /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:47:20: error: stddef.h: No such file or directory /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:48:19: error: float.h: No such file or directory /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:87:20: error: stdarg.h: No such file or directory /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:90:19: error: stdio.h: No such file or directory /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:96:19: error: errno.h: No such file or directory /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:103:20: error: string.h: No such file or directory /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:104:20: error: stdlib.h: No such file or directory /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:105:20: error: unistd.h: No such file or directory /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:108:20: error: limits.h: No such file or directory /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:111:18: error: time.h: No such file or directory In file included from /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:40: /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-pe.h: In function 'size_of_encoded_value': /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-pe.h:90: warning: incompatible implicit declaration of built-in function 'abort' /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-pe.h: In function 'base_of_encoded_value': /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-pe.h:122: warning: incompatible implicit declaration of built-in function 'abort' /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-pe.h: In function 'read_encoded_value_with_base': /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-pe.h:259: warning: incompatible implicit declaration of built-in function 'abort' In file included from /usr/src/gnu/lib/libgcc/../../../contrib/gcc/gthr.h:114, from /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:42: ./gthr-default.h:43:21: error: pthread.h: No such file or directory In file included from /usr/src/gnu/lib/libgcc/../../../contrib/gcc/gthr.h:114, from /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:42: ./gthr-default.h: At top level: ./gthr-default.h:92: error: 'pthread_once' undeclared here (not in a function) ./gthr-default.h:93: error: 'pthread_getspecific' undeclared
Re: Poor read() performance, and I can't profile it
On Thursday 05 June 2008, Kris Kennaway wrote: Kirk Strauser wrote: ktrace(1) and check for the buffer size in use. It is probably too small. Kris It seems to be doing a lot of read()s with 4096-byte buffers. Is that what you mean? It's also doing a lot of lseek()s to what is likely the current position anyway (example: seek to 0x00, read 16 bytes, seek to 0x10, etc.). Would that make a difference, or should that be a NOP? -- 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: BSDstats: May Statistics - 23 998 Hosts Reported In
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 - --On Thursday, June 05, 2008 16:31:30 +0300 Odhiambo Washington [EMAIL PROTECTED] wrote: Anyway, I am surprised at how fast PC-BSD is picking up. I know that during installation, it prompts the installer to enable the submission of stats. Could this explain why there are more PC-BSD that there are FreeBSD? For FreeBSD, the owner must know about the stats and configure them to be submitted. That is why we're working on both improving the site itself (fixing issues with the sub-release areas), as well as trying to a more regular monthly notice up ... I find a jump in stats each time I do so as more ppl find out about it ... Report I did a few months back shows only 85 Countries reporting in, so although its just one host here and there, adding 40 new countries is cool ... - -- Marc G. FournierHub.Org Hosting Solutions S.A. (http://www.hub.org) Email . [EMAIL PROTECTED] MSN . [EMAIL PROTECTED] Yahoo . yscrappy Skype: hub.orgICQ . 7615664 -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkhITOwACgkQ4QvfyHIvDvO/yACg7Ph15XYty0J1tP+jXNs4Fzp3 CFwAoI/AgvbWotWJAUZJZ23aAhiyK993 =9QMv -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Best solution - mobile wifi hotspot
On Fri, May 30, 2008 at 1:52 PM, Chris Whitehouse [EMAIL PROTECTED] wrote: Jim Stapleton wrote: My dad makes instruments and goes to a lot of festivals. They are typically in the middle of nowhere, without internet. Many vendors still bring notebooks as they provide quick easy access to many things, but there is no internet. For credit cards, many use their cell phones to make the transaction. My dad wants to get a satellite connection (pure sattelite, no phone), and set up something to offer a wireless hotspot. - Some shows will just pay a flat fee, and have the hotspot open. - Some shows won't pay a fee, and so he'll want to charge to recover some of the cost. For the open hotspots, a simple wireless router will do. For the charge hotspots, we'd want something a little more flexible. My first thought was 'FreeBSD can do that!'. The trick is that we will be using battery power most of the time. Low power is the key. I'm thinknig sub-20W max power drain worst case, SUB 10-15W is ideal. With that background info, my questions are: 1) Is building a low power computer based on FreeBSD the right way to go? Or would you all recommend something else? What? 2) Does anyone have experience with the GeodeNX or VIA C7 boards available on NewEgg? Heads ups and pointers? 3) Does anyone have experiences with these and a given wireless adaptor, How good/bad is/was it? Thanks, -Jim Stapleton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] This particular wheel has already been invented several ways :) http://psand.net/ https://en.wiki.aktivix.org/SquatTelecoms Well, my dad wants to provide something for cheaper than hiring a third-party vendor to come out into the middle of nowhere and do this (amongst other things, since he's out there, he doesn't have to use hundreds of miles of gas + extra man hours). As for the second, that seems to be 'how to get an ISP', which he already has researched, he is more looking to /be/ the ISP. To keep power down you probably want to opt for a dedicated wireless router box not a computer (unless you are also saving bandwidth with squid etc). And to generate electricity use wind or solar. Do you know of a wireless router that can provide individual user authentication, without requiring a complex setup? Some places may not want to pay for the internet connection, so he'll need to 'rent out' connection bandwidth to other vendors. Thanks, -Jim Stapleton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Denyhost
Anyone using this? I've used it for a long time on a 6.x box and it worked fine. Recently I had to deactivate it since it seems to lock away every IP which is listed in the logs. Any hint? bye Thanks av. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: 6.3 to 7.0 STABLE upgrade buildworld failures
commenting NO_TOOLCHAIN did the trick. Thanks, Casey - Chris St Denis [EMAIL PROTECTED] wrote: Various parts of the FreeBSD base system are interdependent on each other. It's likely that one of the NO_* lines is breaking it. Since libgcc is what is failing I'd suspect NO_TOOLCHAIN mergemaster is normally done after installworld, but the -p mode is for pre-buildworld. See the man page for details. Casey Scott wrote: I thought mergemaster was done after installworld? I've tried 3 different cvs sources, same result. Maybe its my make.conf? Here's what I've got: CPUTYPE?=p4 CFLAGS= -O -pipe NO_BLUETOOTH= true# do not build Bluetooth related stuff NO_I4B= true# do not build isdn4bsd package NO_LPR= true# do not build lpr and related programs NO_SENDMAIL=true# do not build sendmail and related programs NO_SHAREDOCS= true# do not build the 4.4BSD legacy docs NO_TOOLCHAIN= true# do not build programs for program development NO_USB= true# do not build usbd(8) and related programs NO_VINUM= true# do not build Vinum utilities NO_ATM= true# do not build ATM related programs and libraries NO_GAMES= true# do not build games (games/ subdir) NO_INET6= true# do not build IPv6 related programs and libraries NO_PROFILE= true# Avoid compiling profiled libraries SENDMAIL_MAP_PERMS= WITHOUT_X11=yes PERL_VER=5.8.8 PERL_VERSION=5.8.8 # make buildworld dies here. ln -sf /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-generic.h unwind.h make -f /usr/src/gnu/lib/libgcc/../../usr.bin/cc/cc_tools/Makefile MFILE=/usr/src/gnu/lib/libgcc/../../usr.bin/cc/cc_tools/Makefile GCCDIR=/usr/src/gnu/lib/libgcc/../../../contrib/gcc gthr-default.h ln -sf /usr/src/gnu/lib/libgcc/../../../contrib/gcc/gthr-posix.h gthr-default.h cc -c -O -pipe -march=pentium4 -DIN_GCC -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -DHAVE_GTHR_DEFAULT -I/usr/src/gnu/lib/libgcc/../../../contrib/gcclibs/include -I/usr/src/gnu/lib/libgcc/../../../contrib/gcc/config -I/usr/src/gnu/lib/libgcc/../../../contrib/gcc -I. -I/usr/src/gnu/lib/libgcc/../../usr.bin/cc/cc_tools -fvisibility=hidden -DHIDE_EXPORTS -fPIC -fexceptions -D__GLIBC__=3 -DElfW=__ElfN -o unwind-dw2.o /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c In file included from /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:32: /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:47:20: error: stddef.h: No such file or directory /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:48:19: error: float.h: No such file or directory /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:87:20: error: stdarg.h: No such file or directory /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:90:19: error: stdio.h: No such file or directory /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:96:19: error: errno.h: No such file or directory /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:103:20: error: string.h: No such file or directory /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:104:20: error: stdlib.h: No such file or directory /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:105:20: error: unistd.h: No such file or directory /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:108:20: error: limits.h: No such file or directory /usr/src/gnu/lib/libgcc/../../../contrib/gcc/tsystem.h:111:18: error: time.h: No such file or directory In file included from /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:40: /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-pe.h: In function 'size_of_encoded_value': /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-pe.h:90: warning: incompatible implicit declaration of built-in function 'abort' /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-pe.h: In function 'base_of_encoded_value': /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-pe.h:122: warning: incompatible implicit declaration of built-in function 'abort' /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-pe.h: In function 'read_encoded_value_with_base': /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-pe.h:259: warning: incompatible implicit declaration of built-in function 'abort' In file included from /usr/src/gnu/lib/libgcc/../../../contrib/gcc/gthr.h:114, from /usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:42: ./gthr-default.h:43:21: error: pthread.h: No such file or directory In file included from /usr/src/gnu/lib/libgcc/../../../contrib/gcc/gthr.h:114, from
Re: Poor read() performance, and I can't profile it
Kirk Strauser wrote: On Thursday 05 June 2008, Kris Kennaway wrote: Kirk Strauser wrote: ktrace(1) and check for the buffer size in use. It is probably too small. Kris It seems to be doing a lot of read()s with 4096-byte buffers. Is that what you mean? It's also doing a lot of lseek()s to what is likely the current position anyway (example: seek to 0x00, read 16 bytes, seek to 0x10, etc.). Would that make a difference, or should that be a NOP? No, if it's reading in 16 byte units it will explain the terrible performance. Kris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: mfi freebsd7
ok... i guess i've had it with the mfi according to the hardware list on the freebsd site there are only 3 cards supported by the mfi driver on freebsd7 and the LSI MegaSAS 1078 ain't one of them. and lsi appears to be a remote company in singapore which apparently doesn't like to support anything that has bsd in it's name. i'll be asking the hosting company to replace the card. would like to hear from the list which SAS ones would be recommended - fully supported and have usable control/stats interfaces - and which ones to stay away from. would appreciate any advice... thanks kalin m wrote: hi vince... thank you for the advice. i did update my ports and install the 1.01.40 version... i have the linux-base installed and the linprocfs and linsysfs mounted.. but still nothing substantial happening: # megacli -adpCount Controller Count: 0. any other ideas?! thanks... Vince Hoffman wrote: kalin m wrote: sorry for the double posting just to update: i installed also the linux-megamgr same result: Failed to open driver node /dev/megadev0 after linking megadev0 to mfi0 it can not see the version... it gets more and more pathetic by the minute... odd that it wouldnt install as it did for me just now. Is your ports tree up to date? I'm guessing not since the latest version reference in ports is 1.01.40 and you found and got the 1.01.09 rpm/zip try updating your ports to the latest tree (portsnap is my method of choice but csup works fine too :) then try cd /usr/ports/sysutils/linux-megacli make install clean Be sure to pay attention to the post-install message as it tells you about whats needed in the way of kernel modules and sysctl variables as well as what periodic config is available. We do have a server at work using the LSI Logic / Symbios Logic MegaRAID SAS 1078 which hosts 40 VPS's running quite happily in a RAID 1+0 config, each VPS running web/mail/ftp for a number between 1 and 100 websites, so they seem to perform well enough, this is a linux server though. If you've been sold a RAID1 array i'd imagine thats what you have unless you have reason to believe otherwise. It will appear as a singe block device (/dev/mfid0) to the operating system though as you have see. Vince kalin m wrote: thanks Vince... i didnt wanted to install the linux base because a lot of kids will be running some 'cool' boards or blogs that probably have cool linux holes too. but just for the hell of it and for he purpose to get to the controller i did. it took a while to find the Linux_MegaCli_1.01.09.zip. it's not on the freebsd site and not on the LSI site (anymore) either.. anyway after a lot of rpm downloads and patching and variable changing and fs mountings i get this: # /usr/local/sbin/megacli -adpCount ERROR:Could not detect controller. Controller Count: 0. pretty neat system... now what?! Vince Hoffman wrote: kalin m wrote: megarc, right... read about it.. here: # megarc -AllAdpInfo help usage : cmd -AllAdpInfo : prints info of all cards . ok . # megarc -AllAdpInfo ** MEGARC MegaRAID Configuration Utility(FreeBSD)-1.04(03-02-2005) By LSI Logic Corp.,USA ** [Note: For SATA-2, 4 and 6 channel controllers, please specify Ch=0 Id=0..15 for specifying physical drive(Ch=channel, Id=Target)] Type ? as command line arg for help No Adapters Found Error: No MegaRaid Found ?!?!?! does that mean that there is no raid? why then the df output? the machine is supposed to have 4 250gig SAS drives. Its more likely that megarc doesnt support the newer controllers which is a shame. you might have more luck with sysutils/linux-megacli since that explicitly mentions LSI MegaRAID SAS, I wish they would make the util open source though. Will mean you need the linux-base port installed and linux.ko loaded. A RAID1 config shoudl suit a busy webserver well. Vicne thanks... Vince Hoffman wrote: kalin m wrote: hi all... a hosting facility build a new dedicated server for me and looking at the dmesg i see: mfi0: LSI MegaSAS 1078 port 0xec00-0xecff mem 0xfc48-0xfc4b,0xfc44-0xfc47 irq 16 at device 0.0 on pci1 mfi0: Megaraid SAS driver Ver 2.00 for df i get: Filesystem SizeUsed Avail Capacity Mounted on /dev/mfid0s1a496M197M259M43%/ devfs1.0K1.0K 0B 100%/dev /dev/mfid0s1e496M 12K456M 0%/tmp /dev/mfid0s1f661G636M608G 0%/usr /dev/mfid0s1d8.7G1.4M8.0G 0%/var i asked for raid1. i cant find too much information about the mfi driver. just that it works with freebsd 7.
Re: BSDstats: May Statistics - 23 998 Hosts Reported In
Hi Marc, can you please post these individually to different lists next time rather than one massive cross-post? On Thu, Jun 5, 2008 at 6:31 AM, Odhiambo Washington [EMAIL PROTECTED] wrote: Anyway, I am surprised at how fast PC-BSD is picking up. I know that during installation, it prompts the installer to enable the submission of stats. Could this explain why there are more PC-BSD that there are FreeBSD? Yes I should think that is pretty obvious. =) I would expect that Yahoo! alone has ~2 orders of magnitude more FreeBSD servers than what is represented there. These numbers have basically no correlation with the number of installed instances of these operating systems. Anyone interested in this effort should submit patches to optionally install/enable this functionality in the installer of the various operating systems - Murray ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Denyhost
At 04:36 PM 6/5/2008, Andrea Venturoli wrote: Anyone using this? I've used it for a long time on a 6.x box and it worked fine. Recently I had to deactivate it since it seems to lock away every IP which is listed in the logs. Any hint? bye Thanks av. I believe denyhost has been deprecated. I use /etc/hosts.allow which works fine and combines both allow and deny functions in one configuration file. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Poor read() performance, and I can't profile it
Kris Kennaway wrote: No, if it's reading in 16 byte units it will explain the terrible performance. No, it's actually doing 4096-byte reads. That was just an example of what I meant. Since I wrote that, though, I wrote a program to do 1,000,000 seeks to position 0, and it ran immeasurably fast. I'm guessing that lseek() is optimized to not do anything if you ask it to move to the position you're already at. Any other thoughts? There definitely aren't any setbuf() calls, and no matter what it still takes 100 times more kernel overhead on Linux than FreeBSD. Speaking of which, I think my next experiment will be to try the Linux binaries on FreeBSD and see if it behaves similarly. -- 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: Best solution - mobile wifi hotspot
Jim Stapleton writes: [...] Do you know of a wireless router that can provide individual user authentication, without requiring a complex setup? Some places may not want to pay for the internet connection, so he'll need to 'rent out' connection bandwidth to other vendors. Nocatsplash might do what you want: http://nocat.net/ which can run on a linksys wrt54gl that's running openwrt http://openwrt.org/ or ChilliSpot (can also run on openwrt, and others) http://en.wikipedia.org/wiki/ChilliSpot or Wifidog http://dev.wifidog.org/ Googling up places that are discussing those releases should give you pointers to others. I haven't run any of them, but have had good luck using openwrt running on various little wireless routers as openvpn endpoints. g. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Queuing and Prioritization with PF
Hey, I have pf running as the firewall on a web and IRC box. I'd like to setup a bit of prioritization. I want ssh to be a higher priority than any other traffic. I've read up on Class Based Queuing and Priority Queuing. If I understand it correctly, priority queuing will transfer ALL packets with higher priority before ANY of the lower-priority packets. So if I'm transferring a file via SCP, all other traffic will stop until the transfer is complete? I don't want other traffic to stop completely, I just want ssh to have a higher priority. Should I use class-based then? Thanks for suggestions/help. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Poor read() performance, and I can't profile it
Kirk Strauser wrote: Kris Kennaway wrote: No, if it's reading in 16 byte units it will explain the terrible performance. No, it's actually doing 4096-byte reads. That was just an example of what I meant. I don't understand what you meant by It's also doing a lot of lseek()s to what is likely the current position anyway (example: seek to 0x00, read 16 bytes, seek to 0x10, etc.). then. Please show a typical part of the ktrace output. Kris Since I wrote that, though, I wrote a program to do 1,000,000 seeks to position 0, and it ran immeasurably fast. I'm guessing that lseek() is optimized to not do anything if you ask it to move to the position you're already at. Any other thoughts? There definitely aren't any setbuf() calls, and no matter what it still takes 100 times more kernel overhead on Linux than FreeBSD. Speaking of which, I think my next experiment will be to try the Linux binaries on FreeBSD and see if it behaves similarly. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: list files in FreeBSD ports tree package
The best way to do searches on a BSD system is to use good old 'locate,' or even 'find / -name package.' This will give you a result based on the ports package which you can then add using 'pkg_add -r package name.' Camilo Bono Vince Malum -- Message: 6 Date: Thu, 5 Jun 2008 15:35:01 +0200 From: Simon Jolle Subject: list files in FreeBSD ports tree package To: freebsd-questions@freebsd.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=UTF-8 Hi FreeBSD users I am searching for something similar to Red Hat's rpm -q -l package and Debian's dpkg -L package. cheers Simon -- XMPP: [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: list files in FreeBSD ports tree package
On Thu, 5 Jun 2008 19:37:42 -0700 (PDT) Camilo Reyes [EMAIL PROTECTED] wrote: The best way to do searches on a BSD system is to use good old 'locate,' or even 'find / -name package.' i think you can also look in /var/db/pkg or do pkg_info | grep WHATEVER if i understood the original post correctly. -- In friendship, prad ... with you on your journey Towards Freedom http://www.towardsfreedom.com (website) Information, Inspiration, Imagination - truly a site for soaring I's ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Upgrading Kernel on a Remote Server
I don't have much experience with this other than once I ran a server from home and remotely ssh'ed to it to do maintenance. One of the things I learned from that experience was that you can easily patch your services any time there is a new threat, all you have to do is patch your code, recompile, and restart service. If you are not sure it will ever come back up when you restart, you can leave it patched and restart it when you are more comfortable. When it comes to the kernel, don't upgrade it unless it's ABSOLUTELY necessary because you have to reboot each time; unless of course, some genius out there has figured out a way to do it without a reboot. Just my two cents, Camilo Bono Vince Malum Date: Thu, 5 Jun 2008 12:35:43 -0400 From: Sean Cavanaugh Subject: RE: Upgrading Kernel on a Remote Server To: Message-ID: Content-Type: text/plain; charset=iso-8859-1 Date: Thu, 5 Jun 2008 12:15:44 -0400 From: [EMAIL PROTECTED] To: Freebsd-questions@freebsd.org CC: Subject: Upgrading Kernel on a Remote Server Hey, I recently ordered a FreeBSD server from a hosting company. This would be the first time I do not have physical access to a FreeBSD system. I'm looking for any hints/tricks/suggestions for managing and upgrading it safely (as in, not locking myself out or having boot errors). The host does not offer KVM/IP or serial port access. The host is installing 6.3-RELEASE. I'd like to upgrade to 7.0-RELEASE, as well as compile in some kernel options for various things. What's the best way to do this on a remote system, minimizing compiling a bad kernel and causing it not to boot? I wouldn't have access to single user mode or anything. Thanks for any suggestions/help/etc, ~Steve do you have control of the whole box? most places I know that have online hosting like that run you inside a jail as a VPS style system. to answer your original comments, I would say to contact their tech support department and see if you can coordinate with them to have it upgraded to 7.0. If they dont support it, then you are going to be on your own with the install and may have to have them reimage it if you get a bad install. Some places will be willing to do a local base install for your or at least help get over any hurdles with upgrading. -Sean ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Poor read() performance, and I can't profile it
Kris Kennaway wrote: I don't understand what you meant by It's also doing a lot of lseek()s to what is likely the current position anyway (example: seek to 0x00, read 16 bytes, seek to 0x10, etc.). then. I just meant that 16 was a smaller number than 4096 to use in an example. :-) But anyway, it looks like I was wrong. Each record in this test file is 144 bytes long, but instead of reading 144 bytes, it's reading 4096 bytes then seeking backward 3952 (4096-144) bytes to the start of the next record. For instance: 99823 dumprecspg CALL lseek(0x3,0x1c8,SEEK_SET,0) 99823 dumprecspg CALL read(0x3,0x8106000,0x1000) 99823 dumprecspg CALL lseek(0x3,0x258,SEEK_SET,0) 99823 dumprecspg CALL read(0x3,0x8106000,0x1000) 99823 dumprecspg CALL lseek(0x3,0x2e8,SEEK_SET,0) 99823 dumprecspg CALL read(0x3,0x8106000,0x1000) 99823 dumprecspg CALL lseek(0x3,0x378,SEEK_SET,0) 99823 dumprecspg CALL read(0x3,0x8106000,0x1000) Now, I know this is suboptimal. My code is a patch on another, longer-established project that I wasn't a part of, and I probably can't do a lot about it without a pretty major rewrite. Still, I can't believe the same code is *so* much faster on Linux. I'd also swear that this is a regression and that it used to run much faster on the same FreeBSD machine back when it was running 6.x, but I never bothered to benchmark it then because it didn't seem to be an issue. -- 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: Denyhost
On Thu, Jun 05, 2008 at 06:19:26PM -0500, Derek Ragona wrote: At 04:36 PM 6/5/2008, Andrea Venturoli wrote: Anyone using this? I've used it for a long time on a 6.x box and it worked fine. Recently I had to deactivate it since it seems to lock away every IP which is listed in the logs. Any hint? bye Thanks av. I believe denyhost has been deprecated. I use /etc/hosts.allow which works fine and combines both allow and deny functions in one configuration file. -Derek Derek, I think Andrea meant the port security/denyhosts which monitors your ssh port and adds dodgy IPs which attack 22 to hosts.allow (I think - I haven't used it yet). Are you thinking of hosts.deny? I guess you can configure it as to how it blocks the IPs. Andrea, have a look at hosts.allow to see how it's blocking those IPs and you should be able to remove them or relax the rules. You have to give inetd a HUP to reread hosts.allow. HTH. 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 [EMAIL PROTECTED]
Re: Upgrading Kernel on a Remote Server
Camilo Reyes wrote: I don't have much experience with this other than once I ran a server from home and remotely ssh'ed to it to do maintenance. One of the things I learned from that experience was that you can easily patch your services any time there is a new threat, all you have to do is patch your code, recompile, and restart service. If you are not sure it will ever come back up when you restart, you can leave it patched and restart it when you are more comfortable. When it comes to the kernel, don't upgrade it unless it's ABSOLUTELY necessary because you have to reboot each time; unless of course, some genius out there has figured out a way to do it without a reboot. Just my two cents, Camilo Bono Vince Malum A nice trick for easily recovering from unbootable kernels is nextboot(8). Try man nextboot ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Upgrading Kernel on a Remote Server
A nice trick for easily recovering from unbootable kernels is nextboot(8). Try man nextboot I certainly concur with Sean on the co-ordinate a time theory, especially if it includes them being on standby for a clean recovery, but this nextboot(8) tactic that I never knew about before seems *very* worthwhile looking into! Thanks, Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Denyhost
Andrea Venturoli [EMAIL PROTECTED] wrote: Anyone using this? I've used it for a long time on a 6.x box and it worked fine. Recently I had to deactivate it since it seems to lock away every IP which is listed in the logs. Any hint? Give more information. Which logs? Give an example. Show relevant excerpts from your denyhosts configuration. Which version of denyhosts are you running? How and where in /etc/hosts.allow is the denyhosts list being referenced? -- Sahil Tandon [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: DVD Writer problems
On 05/06/2008, at 3:14 AM, Julien Cigar wrote: I have also this problem on almost all my machines .. the only solution I found is to disable DMA (atapi_dma), but then performances are very poor .. If you find a solution please let us know :) I tried disabling DMA 'atacontrol mode acd0 nodma' and re-initialized the channel, but it doesn't work in PIO mode either.. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]