Re: mbr loader

2010-12-09 Thread Martin Alejandro Paredes Sanchez
On Wednesday 08 December 2010 22:08:56 xinyou yan wrote:
> 1. when i install freebsd . I can write mbr and not write
> if i write mbr . freebsd can Identification  windows and load it

first, you are talking about boot loaders or boot managers; its different from 
MBR witch means master boot record

When you say "FreeBSD can identify windows and load it", you have wrong the 
concept of FreeBSD can identify, because FreeBSD its not loaded yet, a program 
called BootEasy its the one identifying windows (an others OS) and display F1: 
Windows etc..

> 
> 2 if i do not write  . How  windows load bsd

http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#NT-BOOTLOADER

> 
> 3. Can freebsd load linux  (fedora)? and how  ?

http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#BOOTEASY-
LOADER

Look in ports for boot loaders (manager)

http://www.freebsd.org/cgi/ports.cgi?query=boot+loader&stype=text&sektion=all
http://www.freebsd.org/cgi/ports.cgi?query=boot+manager&stype=text&sektion=all

Its a good idea to read Chapter 9 (Disks, File Systems, and Boot Loaders) of 
FAQ

http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html

HTH
___
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: What is loading my server so much?

2010-12-09 Thread Matthew Seaman
On 09/12/2010 11:31, Laszlo Nagy wrote:
> Today something happened. Number of http processes went up to 200. As a
> result, number of connections to database also went up to 200, and the
> web server is now refusing clients with "Cannot connect to database"
> messages (coming from PHP).

This is a classic scenario.  Some burst of traffic causes your apache to
spawn more child processes than will all fit in RAM at one time.
Consequently, the system starts to swap.  Swapping kills performance.
This slows everything down so much that there are always requests
waiting for apache to process, so apache will never find any idle
children to kill off.  Result misery.

The answer is to limit the number of child processes apache will spawn.
Decide how much of your available RAM you can devote to Apache.  Look at
top(1) to find the maximum size apache processes grow to.  The ratio of
those two sizes is the maximum number of apache processes your system
can support.

Limiting the total number of apache processes sounds counter-intuitive.
What happens when you get sufficient traffic that apache maxes out?  Web
queries will generally be queued up until there's an apache child free
to handle them.  Generally that will take from a few 10s of milliseconds
on up -- although if you're regularly getting into a state where your
webserver takes seconds to answer, then it's time to get more beefy
hardware.

Cheers,

Mstthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: Shopping cart other than OSCommerce? [LONG]

2010-12-09 Thread Gary Kline
On Wed, Dec 08, 2010 at 07:34:53PM -0500, Jerry wrote:
> On Thu, 09 Dec 2010 10:07:57 +1000
> Da Rock  articulated:
> 
> [snip]
> 
> > And thats why Facebook and all those social network sites are bad
> > news. What happened to anonymity on the internet? Everyone I know
> > worth their salt steers well clear of them...
> 
> "Nothing is foolproof to a sufficiently talented fool." Or as some
> say, "Make it idiot proof and someone will make a better idiot."
> 
> There is nothing inherently bad with Facebook or any of its imitators.
> The acronym "PEBKAC" accurately describes the true nature of problem.
> The inclusion of "anonymity" has nothing to do with the problem.
> 


My take on facebook--just joined--that it's an excellent way to
waste time if you want to.  Maybe reconnect with people you
haven't seen for years... .

> -- 
> Jerry ???
> freebsd.u...@seibercom.net
> 
> Disclaimer: off-list followups get on-list replies or get ignored.
> Please do not ignore the Reply-To header.
> __
> 
> Everyone is entitled to be stupid, but some abuse the privilege.
> ___
> 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"

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
   Journey Toward the Dawn, E-Book: http://www.thought.org
  The 7.97a release of Jottings: http://jottings.thought.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: Make gtk widgets use a larger font

2010-12-09 Thread Polytropon
On Thu, 9 Dec 2010 11:44:01 -0600 (CST), Lars Eighner 
 wrote:
> How do I make gtk widgets use larger fonts? I found an old linux FAQ on
> this, but it appears to have nothing to do with the way configuration works
> on FreeBSD.

I'm not sure if it will still work, but in the past,
you could create ~/.gtkrc and override settings as
you liked.

style "font_1"
{
font= "-b&h-lucida-medium-r-normal-*-12-*-*-*-p-*-iso8859-15"
}

class   "*" style "font_1"
widget  "*" style "font_1"

Then replace "iso8859-15" with the font encoding you
need, and of course "12" with any other font size
that fits your needs. In order to construct the font
determination string based on a visual impression and
attribute selection from lists, you can use the

% xfontsel

program.

Attention: Untested.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: 'Broadcom Wireless b/g (BCM4315/BCM22062000)'

2010-12-09 Thread Chris Brennan
On Sun, Nov 7, 2010 at 9:54 AM, Paul B Mahol  wrote:

>  Dear Sir/Madam,
>
> Your email was unable reach the intended person that you were sending it
> to.
> For more information on our business please click on the following link:
> Click here for our website 
> We look forward to your continued business in the future.
>
> Regards,
> Webmaster
>
Umm... what's the dea w/ this? More spam?
___
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: Kernel panic on power button

2010-12-09 Thread Da Rock

On 12/10/10 14:47, Eitan Adler wrote:

I just pressed the power button on my desktop computer - it seemed
like it was attempting to do an ACPI suspend instead of a power down
like I expected - but I'm not sure.

Either way:
When It got close to the end

I got

Kernel trap 12: page fault in kernel mode
followed by the fault address, instruction pointer, etc. I have the
information written it down if it would help.
At the end it said "unable to dump - device not configured"
uptime: 11d...

The current process was listed as 81250 (tmux) if that matter.

I then needed to perform a hard shutdown of the computer.

uname -a
FreeBSD voodoo 8.1-STABLE FreeBSD 8.1-STABLE #1 r213338: Fri Oct  1
22:11:41 UTC 2010 ei...@voodoo:/usr/obj/usr/src/sys/GENERIC  i386

What debugging data should I provide to help fix this issue?



   
I've seen that before just a few days ago. Difference was battmond shut 
it down, but it hasn't done it since so I was worried. I checked my 
disks and they were fine.


Maybe post dmesg and compare similarities? Did I mention mine's a laptop?

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 8.0-RELEASE-p4 #0: Mon Jul 12 20:55:11 UTC 2010
r...@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Core(TM)2 Duo CPU T7500  @ 2.20GHz (2194.51-MHz 
K8-class CPU)

  Origin = "GenuineIntel"  Id = 0x6fb  Stepping = 11
  
Features=0xbfebfbff

  Features2=0xe3bd
  AMD Features=0x20100800
  AMD Features2=0x1
  TSC: P-state invariant
real memory  = 1073741824 (1024 MB)
avail memory = 1009704960 (962 MB)
ACPI APIC Table: 
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
FreeBSD/SMP: 1 package(s) x 2 core(s)
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ioapic0  irqs 0-23 on motherboard
Cuse4BSD v0.1.13 @ /dev/cuse
kbd1 at kbdmux0
acpi0: <_ASUS_ Notebook> on motherboard
acpi0: [ITHREAD]
acpi_ec0:  port 0x62,0x66 on acpi0
acpi0: Power Button (fixed)
unknown: I/O range not supported
unknown: I/O range not supported
acpi0: reservation of 0, a (3) failed
acpi0: reservation of 10, 3f70 (3) failed
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
acpi_hpet0:  iomem 0xfed0-0xfed003ff on 
acpi0

Timecounter "HPET" frequency 14318180 Hz quality 900
pcib0:  port 0xcf8-0xcff on acpi0
pci0:  on pcib0
vgapci0:  port 0xec00-0xec07 mem 
0xfeb0-0xfebf,0xd000-0xdfff irq 16 at device 2.0 on pci0

agp0:  on vgapci0
agp0: detected 7676k stolen memory
agp0: aperture size is 256M
acpi_video0:  on vgapci0
vgapci1:  mem 0xfe90-0xfe9f at device 
2.1 on pci0
uhci0:  port 0xe000-0xe01f irq 
16 at device 26.0 on pci0

uhci0: [ITHREAD]
uhci0: LegSup = 0x0f30
usbus0:  on uhci0
uhci1:  port 0xdc00-0xdc1f irq 
21 at device 26.1 on pci0

uhci1: [ITHREAD]
uhci1: LegSup = 0x0f30
usbus1:  on uhci1
ehci0:  mem 
0xfeaff400-0xfeaff7ff irq 18 at device 26.7 on pci0

ehci0: [ITHREAD]
usbus2: EHCI version 1.0
usbus2:  on ehci0
hdac0:  mem 
0xfeaf8000-0xfeafbfff irq 22 at device 27.0 on pci0

hdac0: HDA Driver Revision: 20090624_0136
hdac0: [ITHREAD]
pcib1:  irq 16 at device 28.0 on pci0
pci1:  on pcib1
pcib2:  irq 17 at device 28.1 on pci0
pci2:  on pcib2
pcib3:  irq 18 at device 28.2 on pci0
pci3:  on pcib3
age0:  mem 
0xfdcc-0xfdcf irq 18 at device 0.0 on pci3

age0: 1280 Tx FIFO, 2364 Rx FIFO
age0: Using 1 MSI messages.
miibus0:  on age0
atphy0:  PHY 0 on miibus0
atphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, auto
age0: Ethernet address: 00:1f:c6:13:3d:30
age0: [FILTER]
pcib4:  irq 19 at device 28.3 on pci0
pci4:  on pcib4
pcib5:  irq 16 at device 28.4 on pci0
pci5:  on pcib5
pcib6:  irq 17 at device 28.5 on pci0
pci7:  on pcib6
iwn0:  mem 0xfe5fe000-0xfe5f irq 17 
at device 0.0 on pci7

iwn0: Reg Domain: MoW1, address 00:1f:3b:12:7d:6b
iwn0: [ITHREAD]
iwn0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
iwn0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
iwn0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 
24Mbps 36Mbps 48Mbps 54Mbps
iwn0: 11na MCS: 15Mbps 30Mbps 45Mbps 60Mbps 90Mbps 120Mbps 135Mbps 
150Mbps 30Mbps 60Mbps 90Mbps 120Mbps 180Mbps 240Mbps 270Mbps 300Mbps
iwn0: 11ng MCS: 15Mbps 30Mbps 45Mbps 60Mbps 90Mbps 120Mbps 135Mbps 
150Mbps 30Mbps 60Mbps 90Mbps 120Mbps 180Mbps 240Mbps 270Mbps 300Mbps
uhci2:  port 0xd880-0xd89f irq 
23 at device 29.0 on pci0

uhci2: [ITHREAD]
uhci2: LegSup = 0x0f30
usbus3:  on uhci2
uhci3:  port 0xd800-0xd81f irq 
19 at device 29.1 on pci0

uhci3: [ITHREAD]
uhci3: LegSup = 0x0f30
usbus4:  on uhci3
uhci4:  port 0xd480-0xd49f irq 
18 at device 29.2 on pci0

uhci4: [ITHREAD]
uhci4: LegSup = 0x0f30
usbus5:  on uhci4
ehci1:  mem 
0xfeaff000-0xf

Re: Shopping cart other than OSCommerce? [LONG]

2010-12-09 Thread Robert Bonomi
> From owner-freebsd-questi...@freebsd.org  Wed Dec  8 18:35:17 2010
> Date: Wed, 8 Dec 2010 19:34:53 -0500
> From: Jerry 
> To: FreeBSD 
> Subject: Re: Shopping cart other than OSCommerce? [LONG]
>
> On Thu, 09 Dec 2010 10:07:57 +1000
> Da Rock  articulated:
>
> [snip]
>
> > And thats why Facebook and all those social network sites are bad
> > news. What happened to anonymity on the internet? Everyone I know
> > worth their salt steers well clear of them...
>
> "Nothing is foolproof to a sufficiently talented fool." Or as some
> say, "Make it idiot proof and someone will make a better idiot."

The "formal" version is:
   "For any fool-proof system,
there exists a =sufficiently-determined= fool capable of breaking it."

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: dhclient doesn't work over wireless

2010-12-09 Thread Robert Bonomi
> From owner-freebsd-questi...@freebsd.org  Wed Dec  8 16:31:12 2010
> Date: Wed, 08 Dec 2010 23:01:30 +
> From: Michael 
> To: freebsd-questions@freebsd.org
> Subject: dhclient doesn't work over wireless
>
> Hello,
>
> My FreeBSD laptop is unable to get IP address over DHCP but the same 
> network works fine on Windows, Ubuntu and Android so I believe the 
> problem lies in my FreeBSD configuration and not on the router/access 
> point. Problem occurs only for wireless interface.
>
> FreeBSD 8.1 amd64 with Atheros interface. Wireless networking was 
> working fine on that system (the same config files) until I had to 
> replace my wireless router.

you replaced the "wireless router".   Presumably this is also the wireless
'Access point', to which the laptop connects.

What are the chances that it doesn't support WPA,  but *ONLY* supports WPA2?
May need to tweak the ifconfig params, and/or the supplicant 'key_mgmt' type.

>
> My rc.conf file:
>wlans_ath0="wlan0"
>ifconfig_wlan0="WPA SYNCDHCP"
>
> I'm using standard dhclient.conf file.
>
> My wpa_supplicant.conf file:
>network={
>ssid="wifi"
>scan_ssid=1
>bssid=XX:XX:XX:XX:XX:XX
>priority=9
>mode=0
>proto=RSN
>key_mgmt=WPA-PSK
>auth_alg=OPEN
>pairwise=CCMP
>group=CCMP
>psk="x"
> }
>
> Now after reboot I'm geting wlan0 connection (status associated):
> wlan0: flags=8843 metric 0 mtu 1500
>ether xx:xx:xx:xx:xx:xx
>inet 0.0.0.0 netmask 0xff00 broadcast 255.255.255.255
>media: IEEE 802.11 Wireless Ethernet DS/11Mbps mode 11g
>status: associated
>ssid wifi channel 9 (2452 MHz 11g) bssid d8:5d:4c:ea:cb:ee
>regdomain 103 indoor ecm authmode WPA2/802.11i privacy ON
>deftxkey UNDEF AES-CCM 2:128-bit txpower 20 bmiss 7 scanvalid 450
>bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5
>protmode CTS wme burst roaming MANUAL
>
> But for some reason it doesn't get the IP address!
> And whrn I manually try to: dhclient wlan0
>DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
>DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
>DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 16
>DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 21
>DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 5
>No DHCPOFFERS received.
>No working leases in persistent database - sleeping.
>
> Again, other systems doesn't seem to have any trouble with getting IP 
> from this DHCP server and wired interface (em0) works fine too.
>
> Any ideas please?
> ___
> 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"


Kernel panic on power button

2010-12-09 Thread Eitan Adler
I just pressed the power button on my desktop computer - it seemed
like it was attempting to do an ACPI suspend instead of a power down
like I expected - but I'm not sure.

Either way:
When It got close to the end

I got

Kernel trap 12: page fault in kernel mode
followed by the fault address, instruction pointer, etc. I have the
information written it down if it would help.
At the end it said "unable to dump - device not configured"
uptime: 11d...

The current process was listed as 81250 (tmux) if that matter.

I then needed to perform a hard shutdown of the computer.

uname -a
FreeBSD voodoo 8.1-STABLE FreeBSD 8.1-STABLE #1 r213338: Fri Oct  1
22:11:41 UTC 2010 ei...@voodoo:/usr/obj/usr/src/sys/GENERIC  i386

What debugging data should I provide to help fix this issue?



-- 
Eitan Adler
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: FreeBSD on Virtualbox: No network access

2010-12-09 Thread Weihang Wang

On Dec 9, 2010, at 5:48 PM, Chris Brennan wrote:

> On Thu, Dec 9, 2010 at 4:55 PM, Adam Vande More wrote:
> 
>> On Thu, Dec 9, 2010 at 12:48 PM, Weihang Wang  wrote:
>> 
> 
> 
> Clipped for brevity.
> 
> https://help.*ubuntu*.com/community/VirtualBox/Networking
> https://wiki.*ubuntu*.com/VirtualBox
> http://ubuntuforums.org/showthread.php?t=667952
> http://www.virtualbox.org/manual/ch06.html#id2741763
> 
> Here are the links that should help you, I *suggested* you read them this
> time and learn how to install, configure and use the bridging adapter.
> 

Hi,

I do read these documents already. Anyway, I have changed the mode the internal 
networking mode, it works fine.Thank you so much for your help.

Best,
W.W.___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: FreeBSD on Virtualbox: No network access

2010-12-09 Thread Weihang Wang

On Dec 9, 2010, at 4:55 PM, Adam Vande More wrote:

> On Thu, Dec 9, 2010 at 12:48 PM, Weihang Wang  wrote:
> 
>> I do not configure a DHCP server. When my FreeBSD 6.0 is booting, there are
>> several DHCPDISCOVERY messages, finally it shows no DHCPOFFER received. Do I
>> need to configure a DHCP server myself? If I need a DHCP server?
> 
> 
> Bridged networking makes the guest behave like another physical installation
> with respect to networking.  If your network doesn't have a DHCP server then
> for DHCP to work one is required.  You don't need DHCP for networking
> however, you could simply assign static addresses.
> 
> 
>> Where it should be? Now I only have one test machine, Ubuntu as the host
>> OS, two VMs (both are FreeBSD 6.0) on this machine. I want this two VMs
>> communicate with each other.
>> 
> 
> Why are you using such an old version of FreeBSD?
> 
> Just go back to the DHCP stuff, when I use NAT mode, the guest OS FreeBSD
>> 6.0 could get DHCPOFFER successfully. Who is the DHCP server then?
>> 
> 
> In NAT mode, VirtualBox provides it's internal DHCP server.
> 
> When running dhclien em0, the results are similar to the DHCPDISCOVER
>> results during booting. No DHCPOFFERS received.
>> 
> 
> 

Hi,

I have to use FreeBSD 6.0 because the network stack I will test is only based 
on 6.0. BTW, I am using internal networking mode now, these two VMs could 
communicate with each other now. This mode seems could satisfy my needs, 
because my VMs only need to communicate with each other, not with the outside 
world.
Thank you so much for help.

Best,
W.W.

___
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: What is loading my server so much?

2010-12-09 Thread Gary Gatten
Could there be a ulimit issue as well?

- Original Message -
From: owner-freebsd-questi...@freebsd.org 
To: Laszlo Nagy 
Cc: questi...@freebsd.org ; daniel...@gmail.com 

Sent: Thu Dec 09 18:55:26 2010
Subject: Re: What is loading my server so much?

On Fri, 10 Dec 2010 00:15:14 +0100
Laszlo Nagy  wrote:

> 
> > First off, you have 24G of RAM available and PostgreSQL only seems to
> > have access to 400M of it.  Bump shared_buffers up to 2 or 3 G at least,
> > and bump up work_mem to at least a few hundred meg, and
> > maintenance_work_mem up to at 1/2G or so.
> 
> All right. Here is what I did. I setup a new shmmax value this way:
> 
> sysctl kern.ipc.shmmax=8589934592
> 
> It is 8G.  (By the way I also have kern.ipc.shm_use_phys: 1 ) Then I 
> have changed shared_mem to 1024MB in postgresql.conf.
> Then I tried to start postgresql I got this message in the log:
> 
> Dec  9 17:53:59 shopzeus postgres[27247]: [1-4] The PostgreSQL 
> documentation contains more information about shared memory configuration.
> Dec  9 17:55:52 shopzeus postgres[27328]: [1-1] FATAL:  could not create 
> shared memory segment: Cannot allocate memory
> Dec  9 17:55:52 shopzeus postgres[27328]: [1-2] DETAIL:  Failed system 
> call was shmget(key=5432001, size=1105051648, 03600).
> Dec  9 17:55:52 shopzeus postgres[27328]: [1-3] HINT:  This error 
> usually means that PostgreSQL's request for a shared memory segment 
> exceeded available memory or swap space. To reduce the request size 
> (currently 1105051648 bytes), reduce PostgreSQL's shared_buffers 
> parameter (currently 131072) and/or its max_connections parameter 
> (currently 203).
> Dec  9 17:55:52 shopzeus postgres[27328]: [1-4] The PostgreSQL 
> documentation contains more information about shared memory configuration.
> 
> I do not understand.
> 
> Doc says these:
> 
> "max_connections cost ~ 400 bytes of shared memory slot, plus lock space 
> (see max_locks_per_transaction)."
> 
> Even if I had max_connections = 5000, total shared memory required would 
> be way below shmmax=8G.
> 
> What am I missing here?

Did you bump kern.ipc.shmall?  The one you bumped is the maximum size of
a single shared memory request, shmall is the maximum amount of shared
memory for the entire system.  They both have to be increased.  To make
it more confusing, shmall is in pages, not bytes, so you have to divide
by pagesize (sysctl hw.pagesize).

-Bill
___
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 email is intended to be reviewed by only the intended recipient
 and may contain information that is privileged and/or confidential.
 If you are not the intended recipient, you are hereby notified that
 any review, use, dissemination, disclosure or copying of this email
 and its attachments, if any, is strictly prohibited.  If you have
 received this email in error, please immediately notify the sender by
 return email and delete this email from your system."


___
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: What is loading my server so much?

2010-12-09 Thread Bill Moran
On Fri, 10 Dec 2010 00:15:14 +0100
Laszlo Nagy  wrote:

> 
> > First off, you have 24G of RAM available and PostgreSQL only seems to
> > have access to 400M of it.  Bump shared_buffers up to 2 or 3 G at least,
> > and bump up work_mem to at least a few hundred meg, and
> > maintenance_work_mem up to at 1/2G or so.
> 
> All right. Here is what I did. I setup a new shmmax value this way:
> 
> sysctl kern.ipc.shmmax=8589934592
> 
> It is 8G.  (By the way I also have kern.ipc.shm_use_phys: 1 ) Then I 
> have changed shared_mem to 1024MB in postgresql.conf.
> Then I tried to start postgresql I got this message in the log:
> 
> Dec  9 17:53:59 shopzeus postgres[27247]: [1-4] The PostgreSQL 
> documentation contains more information about shared memory configuration.
> Dec  9 17:55:52 shopzeus postgres[27328]: [1-1] FATAL:  could not create 
> shared memory segment: Cannot allocate memory
> Dec  9 17:55:52 shopzeus postgres[27328]: [1-2] DETAIL:  Failed system 
> call was shmget(key=5432001, size=1105051648, 03600).
> Dec  9 17:55:52 shopzeus postgres[27328]: [1-3] HINT:  This error 
> usually means that PostgreSQL's request for a shared memory segment 
> exceeded available memory or swap space. To reduce the request size 
> (currently 1105051648 bytes), reduce PostgreSQL's shared_buffers 
> parameter (currently 131072) and/or its max_connections parameter 
> (currently 203).
> Dec  9 17:55:52 shopzeus postgres[27328]: [1-4] The PostgreSQL 
> documentation contains more information about shared memory configuration.
> 
> I do not understand.
> 
> Doc says these:
> 
> "max_connections cost ~ 400 bytes of shared memory slot, plus lock space 
> (see max_locks_per_transaction)."
> 
> Even if I had max_connections = 5000, total shared memory required would 
> be way below shmmax=8G.
> 
> What am I missing here?

Did you bump kern.ipc.shmall?  The one you bumped is the maximum size of
a single shared memory request, shmall is the maximum amount of shared
memory for the entire system.  They both have to be increased.  To make
it more confusing, shmall is in pages, not bytes, so you have to divide
by pagesize (sysctl hw.pagesize).

-Bill
___
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: What is loading my server so much?

2010-12-09 Thread Chris Brennan
On Thu, Dec 9, 2010 at 6:15 PM, Laszlo Nagy  wrote:

> I do not understand.
>
> Doc says these:
>
> "max_connections cost ~ 400 bytes of shared memory slot, plus lock space
> (see max_locks_per_transaction)."
>
> Even if I had max_connections = 5000, total shared memory required would be
> way below shmmax=8G.
>
> What am I missing here?
>
> Thanks
>
>   Laszlo
>
>
After killing the process, did you give it time to flush itself from memory
before restarting it?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: What is loading my server so much?

2010-12-09 Thread Laszlo Nagy



First off, you have 24G of RAM available and PostgreSQL only seems to
have access to 400M of it.  Bump shared_buffers up to 2 or 3 G at least,
and bump up work_mem to at least a few hundred meg, and
maintenance_work_mem up to at 1/2G or so.


All right. Here is what I did. I setup a new shmmax value this way:

sysctl kern.ipc.shmmax=8589934592

It is 8G.  (By the way I also have kern.ipc.shm_use_phys: 1 ) Then I 
have changed shared_mem to 1024MB in postgresql.conf.

Then I tried to start postgresql I got this message in the log:

Dec  9 17:53:59 shopzeus postgres[27247]: [1-4] The PostgreSQL 
documentation contains more information about shared memory configuration.
Dec  9 17:55:52 shopzeus postgres[27328]: [1-1] FATAL:  could not create 
shared memory segment: Cannot allocate memory
Dec  9 17:55:52 shopzeus postgres[27328]: [1-2] DETAIL:  Failed system 
call was shmget(key=5432001, size=1105051648, 03600).
Dec  9 17:55:52 shopzeus postgres[27328]: [1-3] HINT:  This error 
usually means that PostgreSQL's request for a shared memory segment 
exceeded available memory or swap space. To reduce the request size 
(currently 1105051648 bytes), reduce PostgreSQL's shared_buffers 
parameter (currently 131072) and/or its max_connections parameter 
(currently 203).
Dec  9 17:55:52 shopzeus postgres[27328]: [1-4] The PostgreSQL 
documentation contains more information about shared memory configuration.


I do not understand.

Doc says these:

"max_connections cost ~ 400 bytes of shared memory slot, plus lock space 
(see max_locks_per_transaction)."


Even if I had max_connections = 5000, total shared memory required would 
be way below shmmax=8G.


What am I missing here?

Thanks

   Laszlo

___
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: more dns weirdness

2010-12-09 Thread pete wright
On Thu, Dec 9, 2010 at 2:15 PM, Paul Macdonald  wrote:
> On 09/12/2010 22:01, Andy Tornquist wrote:
>>
>> Have you tried a different server to query?
>>
>>
>
> the wider issue is that freebsd whois will use tld.whois-servers.net cnames
> to resolve appropriate whois servers and that whois-servers.net has
> nameservers from one sole provider (ultradns),  which is still having
> problems.
>
> I'm not overally bothered about amazons' whois, but i am concerned about
> freebsd's whois being tied to one NS provider (ultradns) which affects dig's
>

according to man 1 whois you can specify alternative hosts to query as
well as alternative databases.  specifically i think the -h switch
will be of interest.

-pete


-- 
pete wright
www.nycbug.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: more dns weirdness

2010-12-09 Thread Chris Brennan
On Thu, Dec 9, 2010 at 5:15 PM, Paul Macdonald  wrote:

> the wider issue is that freebsd whois will use tld.whois-servers.netcnames to 
> resolve appropriate whois servers and that
> whois-servers.net has nameservers from one sole provider (ultradns),
>  which is still having problems.
>
> I'm not overally bothered about amazons' whois, but i am concerned about
> freebsd's whois being tied to one NS provider (ultradns) which affects dig's
>

Indeed, whois on 2 freebsd boxes reports the faulty search but on my linux
box (gentoo) it worked fine.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: FreeBSD on Virtualbox: No network access

2010-12-09 Thread Chris Brennan
On Thu, Dec 9, 2010 at 4:55 PM, Adam Vande More wrote:

> On Thu, Dec 9, 2010 at 12:48 PM, Weihang Wang  wrote:
>


Clipped for brevity.

https://help.*ubuntu*.com/community/VirtualBox/Networking
https://wiki.*ubuntu*.com/VirtualBox
http://ubuntuforums.org/showthread.php?t=667952
http://www.virtualbox.org/manual/ch06.html#id2741763

Here are the links that should help you, I *suggested* you read them this
time and learn how to install, configure and use the bridging adapter.
___
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: What is loading my server so much?

2010-12-09 Thread Laszlo Nagy



Step 1, get them to define "server" and "too slow":

If you log in and do shell ops, is the system slow to respond?  Based on
what you've reported, I'd be willing to bet that shell ops are pretty
responsive.  I can't be 100% sure without more information, but I'm
willing to be that what your users are complaining about is your web
application being slow.  Since you don't say what that application is,
I can only provide general advice.
Shell response is fast. The application may be slow, but we should see 
why (high CPU load or high I/O?)

I'm guessing that PostgreSQL is the bottleneck.  I'm going to first make
a few general suggestions, then provide suggestions on how to isolate the
problem more specifically.

First off, you have 24G of RAM available and PostgreSQL only seems to
have access to 400M of it.  Bump shared_buffers up to 2 or 3 G at least,
and bump up work_mem to at least a few hundred meg, and
maintenance_work_mem up to at 1/2G or so.
Good point. Changed shared_buffers to 4G, work_mem to 512M and 
maintenance_work_mem to 2G

If the top and gstat outputs are typical, it looks like PostgreSQL is
doing mostly writes, but is not significantly blocked on writes.  It looks
like individual PostgreSQL processes are simply taking a long time to do
their work.

What's in your PostgreSQL log files?  If there's nothing, then bump up
the logging information in your postgresql.conf.  I particularly like
log_min_duration_statement at 500 ... any query that takes longer than
1/2 second to execute is suspect in the types applications I work with
most frequently.
Thanks for that hint also. We have some programs making huge queries 
(once in a day or so) so I set this to 3000 for now.

If your application is developed in-house, I'd be willing to bet a paycheck
that there are LOTS of indexes missing and that PostgreSQL is doing lots
of seq scans where it could run lots faster if it had indexes.

Check also your autovacuum settings and ensure that tables are not bloating
out of control due to insufficient vacuuming.  You may have to vacuum full/
reindex the entire database to get things back under control, which can take
a long time if it's badly bloated.
Well, we have tables with 5M+ rows (table size over 4G) and we have 500+ 
tables. This is probably something that is out of scope - probably you 
cannot help with that without knowing the structure of the database and 
how it is used, and it would take a long time to understand. But anyway, 
if there is a problem with the database (not having indexes), we see 
heavy I/O or CPU load of the postgresql processes right? I mean, if the 
bottleneck is postgresql, then we should be able to see it at the OS level.

Your application may also be suffering from lock contention if there are
lots of table locks used.  Looking at the pg_locks table while things are
slow can quickly identify if this is the case, and looking at
pg_stat_activity in conjunction with that table will usually narrow down
the problem pretty quickly.
We do not issue "lock" statements directly, but we use database 
transactions. We have a tool for checking the state of those. Most of 
the time, only a few open database transactions are opened, and usually 
we don't have locks that are not granted.

Finally, if you find that PostgreSQL is the bottleneck and you can't
narrow it down enough to fix, join the PostgreSQL general questions
mailing list and ask for help with the same level of detail you did
here.  You'll find that they're an equally helpful community.

I'll do that, but first let me test the new settings.

Yes, thank you very much for you help.


   Laszlo

___
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: more dns weirdness

2010-12-09 Thread Andy Tornquist
Have you tried a different server to query?


On 12/9/10, Paul Macdonald  wrote:
>
> still debugging dns issues that are no doubt to do with wider issues:
>
> someone here might know who to tell?
>
> #whois amazon.com
>
> Whois Server Version 2.0
>
> Domain names in the .com and .net domains can now be registered
> with many different competing registrars. Go to http://www.internic.net
> for detailed information.
>
> AMAZON.COM.Z.GET.LAID.AT.WWW.SWINGINGCOMMUNITY.COM
> AMAZON.COM.MORE.INFO.AT.WWW.BEYONDWHOIS.COM
> AMAZON.COM.IS.N0T.AS.1337.AS.WWW.GULLI.COM
> AMAZON.COM.BLACKSWANSBOOKS.COM
> AMAZON.COM
>
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
>

-- 
Sent from my mobile device
___
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: mountroot prompt in the middle of updating - can't get past it

2010-12-09 Thread Kurt Buff
On Thu, Dec 9, 2010 at 12:50, Chris Brennan  wrote:
> On Thu, Dec 9, 2010 at 2:38 PM, Kurt Buff  wrote:
>>
>> That worked...
>>
>> I think I'll try the update process again.
>>
>> Anything else you can recommend?
>>
>> Thanks,
>>
>
>
> Did you read /usr/src/UPDATING ?

Why, yes I did.

Didn't see anything in there that looked like it might cause this
problem, though.

Kurt
___
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: more dns weirdness

2010-12-09 Thread Paul Macdonald

On 09/12/2010 22:01, Andy Tornquist wrote:

Have you tried a different server to query?




the wider issue is that freebsd whois will use tld.whois-servers.net 
cnames to resolve appropriate whois servers and that whois-servers.net 
has nameservers from one sole provider (ultradns),  which is still 
having problems.


I'm not overally bothered about amazons' whois, but i am concerned about 
freebsd's whois being tied to one NS provider (ultradns) which affects dig's


Paul.


___
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: more dns weirdness

2010-12-09 Thread Gary Kline
On Thu, Dec 09, 2010 at 09:24:56PM +, Paul Macdonald wrote:
> On 09/12/2010 21:10, Gary Gatten wrote:
> >Probably Wikileaks supporters fighting back against the DDoS.  Interesting 
> >issue, anyone else seeing similar problems?
> >
> i came across the amazon whois hack as a result of debugging failed
> whois lookups (on freebsd obv)
> given the freebsd method of choosing whois via cnames via from this
> one domain, it's poss a good idea to at least have some seperate
> name servers for whois-servers.net.  Not great that the whois
> service is down as a result of 'redundant' dns services in the same
> place.
> 
>Name Server: UDNS1.ULTRADNS.NET
>Name Server: UDNS2.ULTRADNS.NET
> 
> both down at time of writing,
> 
> Paul.

This may/may not mean anything. Some days ago I got a brief mail
from  reminding me to "re-up".  I quit them months ago when they
wanted to slam me for some absurb amount-- $153.00--to be my
secondary.  

I deleted their email; then in October my ~/Maildir got wiped.
(I-done -it[?])  FWIW, I had an Amazona glitch around 16:00
localtime yesterday.  Amazon couldn't verify my Visa card.  I
retried hours later and the DDoS seems to have resolved itself.

gary

PS:  Time to bring back USENET:-)

> 
> 
> 
> ___
> 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"

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
   Journey Toward the Dawn, E-Book: http://www.thought.org
  The 7.97a release of Jottings: http://jottings.thought.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: FreeBSD on Virtualbox: No network access

2010-12-09 Thread Adam Vande More
On Thu, Dec 9, 2010 at 12:48 PM, Weihang Wang  wrote:

> I do not configure a DHCP server. When my FreeBSD 6.0 is booting, there are
> several DHCPDISCOVERY messages, finally it shows no DHCPOFFER received. Do I
> need to configure a DHCP server myself? If I need a DHCP server?


Bridged networking makes the guest behave like another physical installation
with respect to networking.  If your network doesn't have a DHCP server then
for DHCP to work one is required.  You don't need DHCP for networking
however, you could simply assign static addresses.


> Where it should be? Now I only have one test machine, Ubuntu as the host
> OS, two VMs (both are FreeBSD 6.0) on this machine. I want this two VMs
> communicate with each other.
>

Why are you using such an old version of FreeBSD?

Just go back to the DHCP stuff, when I use NAT mode, the guest OS FreeBSD
> 6.0 could get DHCPOFFER successfully. Who is the DHCP server then?
>

In NAT mode, VirtualBox provides it's internal DHCP server.

When running dhclien em0, the results are similar to the DHCPDISCOVER
> results during booting. No DHCPOFFERS received.
>



-- 
Adam Vande More
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: more dns weirdness

2010-12-09 Thread Gary Gatten
Probably Wikileaks supporters fighting back against the DDoS.  Interesting 
issue, anyone else seeing similar problems?

- Original Message -
From: owner-freebsd-questi...@freebsd.org 
To: FreeBSD Questions 
Sent: Thu Dec 09 14:40:45 2010
Subject: more dns weirdness


still debugging dns issues that are no doubt to do with wider issues:

someone here might know who to tell?

#whois amazon.com

Whois Server Version 2.0

Domain names in the .com and .net domains can now be registered
with many different competing registrars. Go to http://www.internic.net
for detailed information.

AMAZON.COM.Z.GET.LAID.AT.WWW.SWINGINGCOMMUNITY.COM
AMAZON.COM.MORE.INFO.AT.WWW.BEYONDWHOIS.COM
AMAZON.COM.IS.N0T.AS.1337.AS.WWW.GULLI.COM
AMAZON.COM.BLACKSWANSBOOKS.COM
AMAZON.COM


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"








"This email is intended to be reviewed by only the intended recipient
 and may contain information that is privileged and/or confidential.
 If you are not the intended recipient, you are hereby notified that
 any review, use, dissemination, disclosure or copying of this email
 and its attachments, if any, is strictly prohibited.  If you have
 received this email in error, please immediately notify the sender by
 return email and delete this email from your system."


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Re: FreeBSD on Virtualbox: No network access

2010-12-09 Thread Weihang Wang

On Dec 9, 2010, at 3:40 PM, Chris Brennan wrote:

> On Thu, Dec 9, 2010 at 1:48 PM, Weihang Wang  wrote:
> 
>> Hi,
>> 
>> I do not configure a DHCP server. When my FreeBSD 6.0 is booting, there are
>> several DHCPDISCOVERY messages, finally it shows no DHCPOFFER received. Do I
>> need to configure a DHCP server myself? If I need a DHCP server? Where it
>> should be? Now I only have one test machine, Ubuntu as the host OS, two VMs
>> (both are FreeBSD 6.0) on this machine. I want this two VMs communicate with
>> each other.
>> 
>> Just go back to the DHCP stuff, when I use NAT mode, the guest OS FreeBSD
>> 6.0 could get DHCPOFFER successfully. Who is the DHCP server then?
>> 
>> When running dhclien em0, the results are similar to the DHCPDISCOVER
>> results during booting. No DHCPOFFERS received.
>> 
> 
> 
> It would appear that Ubuntu has not correctly installed the bridging
> adapter. Did you check out the links I provided on setting up a bridging
> device on Ubuntu w/ vBox? They worked for me, I set up an Ubuntu VM and in
> the VM setup a test VM of vBox to boot fbsd (8.1 in my case).
> 
> NOTE: I do not recoomend setting up a VM within a VM, I did it strictly as a
> test to boot and get network access. Which it did.
> __

Hi,

I am sorry I don't know which page you refer to... I am confusing now cause 
first, I don't know which mode could be best for my needs. What I need is two 
VMs on a real machine, these two VMs could communicate with each other. It 
seems bridged mode is suitable here. But there is no network access for bridged 
mode. 

BTW, when I use NAT mode, two VMs get the same IP address, and they could not 
get to each other.

Thanks,
W.W.

___
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"


Runaway ProFTP?

2010-12-09 Thread Ryan Coleman
Dear list,

Has anyone else had experience with ProFTP 1.3.3a running away with processes? 
I installed it about 2 months ago with a new server build and over the course 
of the last three weeks I've had to forcibly kill, wait and restart the service 
every one-to-three days and sucking up between 20% and 80% of my system 
resources.

I've attempted to change the logging in hopes to track down what is causing the 
problems but I have not been successful. Additionally it won't connect after a 
restart through Filezilla but using Terminal on my MBP it will connect in the 
CLI.

It's not the end of the world (for me) but it is for my staff when they have to 
upload large numbers of photos.

Thanks,
Ryan

___
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: more dns weirdness

2010-12-09 Thread Paul Macdonald

On 09/12/2010 21:10, Gary Gatten wrote:

Probably Wikileaks supporters fighting back against the DDoS.  Interesting 
issue, anyone else seeing similar problems?

i came across the amazon whois hack as a result of debugging failed 
whois lookups (on freebsd obv)
given the freebsd method of choosing whois via cnames via from this one 
domain, it's poss a good idea to at least have some seperate name 
servers for whois-servers.net.  Not great that the whois service is down 
as a result of 'redundant' dns services in the same place.


   Name Server: UDNS1.ULTRADNS.NET
   Name Server: UDNS2.ULTRADNS.NET

both down at time of writing,

Paul.



___
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: more dns weirdness

2010-12-09 Thread Chris Brennan
On Thu, Dec 9, 2010 at 3:40 PM, Paul Macdonald  wrote:

>
> still debugging dns issues that are no doubt to do with wider issues:
>
> someone here might know who to tell?
>
> #whois amazon.com
>
> Whois Server Version 2.0
>
> Domain names in the .com and .net domains can now be registered
> with many different competing registrars. Go to http://www.internic.net
> for detailed information.
>
> AMAZON.COM.Z.GET.LAID.AT.WWW.SWINGINGCOMMUNITY.COM
> AMAZON.COM.MORE.INFO.AT.WWW.BEYONDWHOIS.COM
> AMAZON.COM.IS.N0T.AS.1337.AS.WWW.GULLI.COM
> AMAZON.COM.BLACKSWANSBOOKS.COM
> AMAZON.COM
>
>

I'll take a stab in the dark as to the cause, but not to whom is
responsible. This looks like an erroneous DNS Injection. An attempt to
inject false/misleading dns entries into [or before] a valid dns server
serves a reply. This is usually contributed to a bad admin who improperly
secured his/her DNS server or a malicious admin with the intent to wreak
havoc.
___
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: mountroot prompt in the middle of updating - can't get past it

2010-12-09 Thread Chris Brennan
On Thu, Dec 9, 2010 at 2:38 PM, Kurt Buff  wrote:

>  That worked...
>
> I think I'll try the update process again.
>
> Anything else you can recommend?
>
> Thanks,
>
>

Did you read /usr/src/UPDATING ?
___
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: autoconf and automake

2010-12-09 Thread Chris Brennan
On Thu, Dec 9, 2010 at 2:23 PM, Tim Daneliuk  wrote:

> On 12/9/2010 12:54 PM, Steven Friedrich wrote:
>
>   pkgdb -L
>   pkgdb -Fa
>


-o replace the installed port with a port from a different origin (From
'portmaster')
-o, --origin=ORIGIN  Specify a port to upgrade the following pkg with
(from 'portupgrade')

It would appear that if the port is already installed, passing '-o' will
only update the source location (origin) to prevent breakage in the future.
___
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: sendmail and /etc/hosts

2010-12-09 Thread Nathan Vidican
On Thu, Dec 9, 2010 at 3:08 PM, Gabor Illo  wrote:

> Hello
>
> My problem: sendmail skipping /etc/host and use MX record. Somebody
> have any ide how use sendmail /etc/host file?
>
> Dec  9 20:58:23 www sm-mta[29438]: oB9Fxmx0027174:
> to=, delay=03:58:35, xdelay=00:00:00, mailer=esmtp,
> pri=1313137, relay=mail.mouseoleum.hu., dsn=4.0.0, stat=Deferred:
> Connection refused by mail.mouseoleum.hu.
> ___
> 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"
>

Could you clarify in regards to what you want sendmail to actually use
/etc/host for?

If your intent is to re-map where mail destined for a given host/domain goes
- (ie override DNS MX records) - then /etc/hosts is not going to do what you
want. Depending on where you intend to redirect to, you'll need either
mailer table, access table entries or to configure your local sendmail to
receive for that domain to accomplish that. You might try reading further
at:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mail-using.html

Specifically in regards to email and DNS relationships.

-- 
Nathan Vidican
nat...@vidican.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: FreeBSD on Virtualbox: No network access

2010-12-09 Thread Chris Brennan
On Thu, Dec 9, 2010 at 1:48 PM, Weihang Wang  wrote:

>  Hi,
>
> I do not configure a DHCP server. When my FreeBSD 6.0 is booting, there are
> several DHCPDISCOVERY messages, finally it shows no DHCPOFFER received. Do I
> need to configure a DHCP server myself? If I need a DHCP server? Where it
> should be? Now I only have one test machine, Ubuntu as the host OS, two VMs
> (both are FreeBSD 6.0) on this machine. I want this two VMs communicate with
> each other.
>
> Just go back to the DHCP stuff, when I use NAT mode, the guest OS FreeBSD
> 6.0 could get DHCPOFFER successfully. Who is the DHCP server then?
>
> When running dhclien em0, the results are similar to the DHCPDISCOVER
> results during booting. No DHCPOFFERS received.
>


It would appear that Ubuntu has not correctly installed the bridging
adapter. Did you check out the links I provided on setting up a bridging
device on Ubuntu w/ vBox? They worked for me, I set up an Ubuntu VM and in
the VM setup a test VM of vBox to boot fbsd (8.1 in my case).

NOTE: I do not recoomend setting up a VM within a VM, I did it strictly as a
test to boot and get network access. Which it did.
___
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"


more dns weirdness

2010-12-09 Thread Paul Macdonald


still debugging dns issues that are no doubt to do with wider issues:

someone here might know who to tell?

#whois amazon.com

Whois Server Version 2.0

Domain names in the .com and .net domains can now be registered
with many different competing registrars. Go to http://www.internic.net
for detailed information.

AMAZON.COM.Z.GET.LAID.AT.WWW.SWINGINGCOMMUNITY.COM
AMAZON.COM.MORE.INFO.AT.WWW.BEYONDWHOIS.COM
AMAZON.COM.IS.N0T.AS.1337.AS.WWW.GULLI.COM
AMAZON.COM.BLACKSWANSBOOKS.COM
AMAZON.COM


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: simple NAT for jails

2010-12-09 Thread Alejandro Imass
On Thu, Dec 9, 2010 at 12:23 PM, Eitan Adler  wrote:
> Hi,
> I want to throw together some jails for friends to play with. I'm not
> terribly concerned about security on this machine. My goal is to do
> something like
> ezjail create james 10.0.0.1
> ezjail create jared 10.0.0.2
> ezjail create joe 10.0.0.3
> ezjail create idaho 10.0.0.4
>
> I have a single IP address for my computer - so I would need some kind
> of nat to allow these jails to access the outside world - and allow
> the outside world to access them.
>
> I've looked into pf and I guess I would need something like
>
> nat on nfe0 from 10.0.0.1 to any -> $external_ip
>
> is this correct?
> Do I need anything in in /etc/pf.conf ?
>

you can use natd as well in rc.conf

  natd_enable="YES"
  natd_interface="rl1"
  natd_flags="-dynamic"

then as root in the base system

  kldload ipdivert
  natd -n rl1

or whatever your interface is

> --
> Eitan Adler
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
>
___
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"


ultradns issues?

2010-12-09 Thread Paul Macdonald


is anyone seeing dns problems with ultradns.net,

I'm seeing lookup problems for several big domains, plus as an 
impportant aside freebsd uses whois-servers.net cnames such as 
tld.whois-server.net to the correct whois server


many many other companies use them obv too.

Paul.


___
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"


sendmail and /etc/hosts

2010-12-09 Thread Gabor Illo
Hello

My problem: sendmail skipping /etc/host and use MX record. Somebody
have any ide how use sendmail /etc/host file?

Dec  9 20:58:23 www sm-mta[29438]: oB9Fxmx0027174:
to=, delay=03:58:35, xdelay=00:00:00, mailer=esmtp,
pri=1313137, relay=mail.mouseoleum.hu., dsn=4.0.0, stat=Deferred:
Connection refused by mail.mouseoleum.hu.
___
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: Make gtk widgets use a larger font

2010-12-09 Thread Chip Camden
Quoth Lars Eighner on Thursday, 09 December 2010:
> How do I make gtk widgets use larger fonts? I found an old linux FAQ on
> this, but it appears to have nothing to do with the way configuration works
> on FreeBSD.
> 
> -- 
> Lars Eighner
> http://www.larseighner.com/index.html
> 8800 N IH35 APT 1191 AUSTIN TX 78753-5266
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

I've been looking into this, although my intention was to make the fonts
smaller.  I have yet to be successful.  I think the answer should lie in
modifying your gtk theme file (.gtkrc-2.0 for GTK 2).

I started by copying a theme that I liked (http://www.cimitan.com/murrine/node/220";>Black Diamondhttp://camdensoftware.com | http://chipstips.com| http://chipsquips.com


pgp8Wntvr7c4u.pgp
Description: PGP signature


Re: mountroot prompt in the middle of updating - can't get past it

2010-12-09 Thread Kurt Buff
On Wed, Dec 8, 2010 at 22:50, Boris Samorodov  wrote:
> On Wed, 8 Dec 2010 11:49:41 -0800 Kurt Buff wrote:
>
>> All,
>
>> I have a Lenovo T61 with a 100g HD that I dual boot with FreeBSD
>> 8.0-STABLE amd64 and Windows XP.
>
>> FBSD is on ad0s2a, with ad0s2b as swap, and XP on ad0s1a.
>
>> Yesterday I booted up FBSD, started xfce4, started a terminal session,
>> su'ed to root and did the following - running a generic kernel:
>
>> # cd /usr/src
>> # make buildworld
>> # make buildkernel
>> # make installkernel
>
>> Then I exited xfce4, did sudo shutdown -r now, and got a mountroot
>> prompt that I now can't get past.
>
>> I can get to the loader prompt, and lsdev shows the following:
>
>>    cd devices:
>>    disk devices:
>>          disk0:     BIOS drive C:
>>             disk0s1: NTFS/HPFS
>>                 disk0s2a:  FFS
>>                 disk02sb:  swap
>
>> when I use '?' at the mountroot prompt I get:
>
>>    List of GEOM managed disk devices:
>>       acd0
>>    Loader variables:
>>    vfs.root.mountfrom=ufs:/dev/ad0s2a
>>    vfs.root.mountfrom.options=rw
>
>
>> I've tried entering the following at the mountroot prompt, with no success:
>>    ufs:/dev/ad0s2a
>>    ufs:/ad0s2a
>>    ufs:ad0s2a
>>    ffs:/dev/ad0s2a
>
>> and several other variations that I've found while googling, but no
>> success anywhere.
>
>> Does anyone have thoughts on how to remedy this?
>
> Just for the last question:
> Try to load an old kernel. (Type "boot /boot/kernel.old" at loader
> prompt.)

That worked...

I think I'll try the update process again.

Anything else you can recommend?

Thanks,

Kurt
___
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: autoconf and automake

2010-12-09 Thread Tim Daneliuk
On 12/9/2010 12:54 PM, Steven Friedrich wrote:
> I'm having trouble with the latest advice in ports/UPDATING:
> 
> 20101208:
>   AFFECTS: autotools
>   AUTHOR: autoto...@freebsd.org
> 
>

Here's how I did it:

1) Delete all the existing ports manually:

   pkg_delete -f portname

2) Install the new port manually:

   cd /usr/ports/devel/portname
   make install clean

When you've done them all, then ...

3) Fix the package database:

   pkgdb -L
   pkgdb -Fa



Tim Daneliuk
tun...@tundraware.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


autoconf and automake

2010-12-09 Thread Steven Friedrich
I'm having trouble with the latest advice in ports/UPDATING:

20101208:
  AFFECTS: autotools
  AUTHOR: autoto...@freebsd.org

  Another stage in the autotools cleanup that reduces tree churn whilst
  updating components, a number of ports have now moved to non-versioned
  locations since there is now only the concept of legacy and current
  versions.

  # portmaster -o devel/autoconf devel/autoconf268
  # portmaster -o devel/automake devel/automake111
  # portmaster -o devel/libtool devel/libtool22
  # portmaster -o devel/libltdl devel/libltdl22

  substitute 'portupgrade' for 'portmaster' accordingly if that's your
  your upgrade tool of choice.

If I invoke portupgrade -o devel/autoconf devel/autoconf268
portupgrade doesn't appear to do anything:

portupgrade -o devel/autoconf devel/autoconf268
--->  Session started at: Thu, 09 Dec 2010 13:52:08 -0500   
   
** None has been installed or upgraded.
--->  Saving the results to '/root/done'
--->  Session ended at: Thu, 09 Dec 2010 13:52:08 -0500 (consumed 00:00:00)

And pkg_info says there's still an old version of autoconf:

pkg_info|grep autoconf
autoconf-2.13.000227_6 Automatically configure source code on many Un*x 
platforms  
autoconf-2.68   Automatically configure source code on many Un*x platforms 
autoconf-wrapper-20101119 Wrapper script for GNU autoconf


Can anyone help me?  I'm thinking that I'm trying to upgrade all ports that 
depend on autoconf-2.13.000227_6 to depend on autoconf268.
-- 
System Name: laptop2.StevenFriedrich.org
Hardware:2.80GHz Intel Pentium 4 (HTT) with 2 GB memory
OS version:  FreeBSD 8.1-RELEASE-p2 i386 (5.1 MB kernel)
Window Manager(s):   kde4-4.5.4 
X Window System: xorg-7.5X.Org X Server 1.7.5
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: FreeBSD on Virtualbox: No network access

2010-12-09 Thread Weihang Wang

On Dec 8, 2010, at 11:47 PM, Adam Vande More wrote:

> On Wed, Dec 8, 2010 at 10:34 PM, Weihang Wang  wrote:
> 
>> Hi,
>> 
>> Could someone tell me how to enable Bridge mode?
>> 
> 
> Seems like you already know how since you do it below.
> 
> 
>> I just change the network settings of my virtual machine, change it to
>> bridged mode. I also select the eth0, which is the physical interface of my
>> system.
>> Then in my virtual machine, I add one line:
>> ifconfig_em0="DHCP" in /etc/rc.conf file.
>> I have changed each of the five virtual interfaces Intel and ..., but I
>> could not get network access.
>> 
> 
> ifconfig_em0="DHCP" would only work for the intel adapters, not amd ones.
> 
> 
>> If I use NAT mode, one of these five interfaces works fine. But now I do
>> need the Bridged mode because one of my machine would be a server in my
>> experiment.
>> 
> 
> You do have a DHCP server correct?  What happens when you do "dhclient
> em0"?  Does bridged networking work with a different guest OS as maybe it's
> some problem with your host.
> 
> -- 
> Adam Vande More
> 

Hi, 

I do not configure a DHCP server. When my FreeBSD 6.0 is booting, there are 
several DHCPDISCOVERY messages, finally it shows no DHCPOFFER received. Do I 
need to configure a DHCP server myself? If I need a DHCP server? Where it 
should be? Now I only have one test machine, Ubuntu as the host OS, two VMs 
(both are FreeBSD 6.0) on this machine. I want this two VMs communicate with 
each other. 

Just go back to the DHCP stuff, when I use NAT mode, the guest OS FreeBSD 6.0 
could get DHCPOFFER successfully. Who is the DHCP server then?

When running dhclien em0, the results are similar to the DHCPDISCOVER results 
during booting. No DHCPOFFERS received. 


Thanks,
W.W.


___
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.3 Get uart to grab modem instead of sio

2010-12-09 Thread Mike Tancsa
On 12/9/2010 12:10 PM, Lars Eighner wrote:
> I am running 7.3.  I would like uart to grab the modem, but sio does.  I
> don't want to upgrade to 8.x until I see that things will work with uart.
> 


Hi,
Take a look at /boot/device.hints.  Replace sio with uart and you can
remove sio from the kernel if you are not using it elsewhere.

---Mike
___
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"


simple NAT for jails

2010-12-09 Thread Eitan Adler
Hi,
I want to throw together some jails for friends to play with. I'm not
terribly concerned about security on this machine. My goal is to do
something like
ezjail create james 10.0.0.1
ezjail create jared 10.0.0.2
ezjail create joe 10.0.0.3
ezjail create idaho 10.0.0.4

I have a single IP address for my computer - so I would need some kind
of nat to allow these jails to access the outside world - and allow
the outside world to access them.

I've looked into pf and I guess I would need something like

nat on nfe0 from 10.0.0.1 to any -> $external_ip

is this correct?
Do I need anything in in /etc/pf.conf ?

-- 
Eitan Adler
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Make gtk widgets use a larger font

2010-12-09 Thread Lars Eighner

How do I make gtk widgets use larger fonts? I found an old linux FAQ on
this, but it appears to have nothing to do with the way configuration works
on FreeBSD.

--
Lars Eighner
http://www.larseighner.com/index.html
8800 N IH35 APT 1191 AUSTIN TX 78753-5266

___
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: libphp5.so

2010-12-09 Thread Chris Brennan
On Thu, Dec 9, 2010 at 11:51 AM, Ivan Frosty  wrote:

> yeah well ports cant download. i dont have internet, usually i
> download packages from a cyber then just do pkg_add when i get home.
> so really make doesnt work for me. however i installed php5,mysql and
> apache from a cd. but making php work,requires libphp5.so which my
> system doesnt have i386 pII.
> thanks for your time.
>
>
libphp5.so is built w/ any standard install of php. Lets try this:

What version of FreeBSD?
What version of PHP?
What version of Apache?
What version of MySQL?
Is this in a VM or not?

P.S. off-life replies and an on-list followup.
___
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"


7.3 Get uart to grab modem instead of sio

2010-12-09 Thread Lars Eighner

I am running 7.3.  I would like uart to grab the modem, but sio does.  I
don't want to upgrade to 8.x until I see that things will work with uart.

--
Lars Eighner
http://www.larseighner.com/index.html
8800 N IH35 APT 1191 AUSTIN TX 78753-5266

___
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: devel/gobject-introspection throws up because of python

2010-12-09 Thread Lowell Gilbert
Chris Brennan  writes:

> Sadly this didn't work for me. I for the same error.

Oh, well.  It's a bit confusing then, since you seem to be the only
person with this particular problem.

Have you checked whether the "missing" files are on your disk or not?

> -- Sent from my Droid
>
> On Dec 7, 2010 10:28 AM, "Lowell Gilbert" <
> freebsd-questions-lo...@be-well.ilk.org> wrote:
>> Chris Brennan  writes:
>>
>>> While trying to compile audio/tagtool on a FreeBSD7.3 (x86) machine
>>> devel/gobject-introspection decides to throw up and I got this: (the
> install
>>> was via portmaster -d)
>>
>> Looks like your python installation is broken.
>>
>> Try rebuilding that first.
> ___
> 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: Disk encryption on a headless box?

2010-12-09 Thread Julian H. Stacey
Andre Goree wrote:
> I was looking at encrypting my data on a headless server I have, and found a
> good tutorial using ZFS+geli.  Easy enough to setup, but one thing I just
> realized is that I wouldn't be able to enter the passphrase on the server
> since I keep it headless.
> 
> I wonder if there is some type of encryption I can use that does not require
> entering a passphrase.  For example, perhaps I can set it up in a way that
> it'll automatically read from certain files on a thumb drive?

I encrypt my data with gbde, it fetches the passphrase from another
host if running. 

(Mine has a head, but doesnt use it.
I don't use ZFS, but I don't see that's necessarily related)

Cheers,
Julian
-- 
Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com
Mail plain text;  Not quoted-printable, or HTML or base 64.
Avoid top posting, it cripples itemised cumulative responses.
___
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: vsftpd + SSL not working

2010-12-09 Thread Jerry
On Thu, 9 Dec 2010 14:46:11 +0100
Redd Vinylene  articulated:

> I tried installing OpenSSL 1.0.0b from ports over 0.9.8p that came
> with FreeBSD - and then recompiling vsftpd (commenting out the .if
> ${OSVERSION} < 70 and the .endif below it in the Makefile to
> force it to link to the port) - but it made no difference.

Did you try putting this in the "/etc/make.conf" file:

WITH_OPENSSL_PORT=yes

Then try doing an R&R on the ports and see what transpires. By the way,
the port version of openssl is 1.0.0c, so you might want to update your
ports tree before attempting to rebuild the afflicted ports. Also,
check the updating file. You will need to rebuild a few files before
continuing on with your project.

-- 
Jerry ✌
freebsd.u...@seibercom.net

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__
Virtue is not left to stand alone.
He who practices it will have neighbors.

Confucius
___
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: What is loading my server so much?

2010-12-09 Thread Michael Powell
Laszlo Nagy wrote:

> System is FreeBSD shopzeus.com 8.1-STABLE FreeBSD 8.1-STABLE #0: Sun Oct
> 31 02:55:28 EDT 2010 amd64
> It has two quad-core Xeon CPUs, 24GB memory, and a RAID 1+0 array with
> 10 disks + Areca 1680 controller with 2GB write back cache.
> 
> Server is running: mailscanner + apache multihost + PHP + postgresql.
> Main load on the server is usually postgresql.
> 
> Today something happened. Number of http processes went up to 200. As a
> result, number of connections to database also went up to 200, and the
> web server is now refusing clients with "Cannot connect to database"
> messages (coming from PHP).
> 
> This is a typical output from top:
> 
> last pid: 12789;  load averages:  7.77, 10.77,
> 13.46
> up 26+03:00:30  06:22:04
> 6637 processes: 7 running, 623 sleeping, 7 zombie
[snip] ^^^

First curiosity I would have is these 7 zombies. Which processes are they 
and how did they get into that state? Might give you a thread to pull on for 
unraveling. Also, there is some degree of discrepancy present wrt to 6 
thousand processes with only 7 running and 623 asleep. I suspect this is 
just top not getting it right. But it also looks like a forkbomb.

-Mike



___
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: What is loading my server so much?

2010-12-09 Thread Bill Moran
On Thu, 09 Dec 2010 12:31:04 +0100
Laszlo Nagy  wrote:

> System is FreeBSD shopzeus.com 8.1-STABLE FreeBSD 8.1-STABLE #0: Sun Oct 
> 31 02:55:28 EDT 2010 amd64
> It has two quad-core Xeon CPUs, 24GB memory, and a RAID 1+0 array with 
> 10 disks + Areca 1680 controller with 2GB write back cache.
> 
> Server is running: mailscanner + apache multihost + PHP + postgresql. 
> Main load on the server is usually postgresql.
> 
> Today something happened. Number of http processes went up to 200. As a 
> result, number of connections to database also went up to 200, and the 
> web server is now refusing clients with "Cannot connect to database" 
> messages (coming from PHP).
> 
> This is a typical output from top:
> 
> last pid: 12789;  load averages:  7.77, 10.77, 
> 13.46 
>
> up 26+03:00:30  06:22:04
> 6637 processes: 7 running, 623 sleeping, 7 zombie
> CPU: 32.9% user,  0.0% nice,  7.6% system,  0.6% interrupt, 58.9% idle
> Mem: 3885M Active, 15G Inact, 3236M Wired, 627M Cache, 2465M Buf, 656M Free
> Swap: 12G Total, 12M Used, 12G Free
> 
>PID USERNAME   THR PRI NICE   SIZERES STATE   C   TIME   WCPU 
> COMMAND
> 66834 pgsql1 1180   443M   417M CPU22  16:17 99.46% 
> postgres
> 11473 pgsql1  720   441M   242M sbwait  5   0:02  4.59% 
> postgres
> 11026 pgsql1  470   439M   249M sbwait  7   0:01  3.17% 
> postgres
>   6642 www  1  480   236M 42928K select  0   0:01  2.29% 
> httpd
> 10147 www  1  480   236M 44048K select  6   0:01  2.10% 
> httpd
>   3961 shopzeus29  440   208M 96364K uwait   4  18.4H  1.37% 
> python
> 
> 
> Here is what I don't understand. "last pid" is increasing relatively 
> slowly, e.g. there are no hidden processes. Only the first one or two 
> processes are showing CPU load > 10%.  The "CPU User%" value is about 
> 50%. We have lots of free memory. I/O load is almost nothing (see iostat 
> below).
> 
> However, server load is between 7 and 13! In fact sometimes it is above 
> 16. And everybody complains that the server is too slow.
> 
> How can I find out what is causing the problem?

Step 1, get them to define "server" and "too slow":

If you log in and do shell ops, is the system slow to respond?  Based on
what you've reported, I'd be willing to bet that shell ops are pretty
responsive.  I can't be 100% sure without more information, but I'm
willing to be that what your users are complaining about is your web
application being slow.  Since you don't say what that application is,
I can only provide general advice.

I'm guessing that PostgreSQL is the bottleneck.  I'm going to first make
a few general suggestions, then provide suggestions on how to isolate the
problem more specifically.

First off, you have 24G of RAM available and PostgreSQL only seems to
have access to 400M of it.  Bump shared_buffers up to 2 or 3 G at least,
and bump up work_mem to at least a few hundred meg, and
maintenance_work_mem up to at 1/2G or so.

If the top and gstat outputs are typical, it looks like PostgreSQL is
doing mostly writes, but is not significantly blocked on writes.  It looks
like individual PostgreSQL processes are simply taking a long time to do
their work.

What's in your PostgreSQL log files?  If there's nothing, then bump up
the logging information in your postgresql.conf.  I particularly like
log_min_duration_statement at 500 ... any query that takes longer than
1/2 second to execute is suspect in the types applications I work with
most frequently.

If your application is developed in-house, I'd be willing to bet a paycheck
that there are LOTS of indexes missing and that PostgreSQL is doing lots
of seq scans where it could run lots faster if it had indexes.

Check also your autovacuum settings and ensure that tables are not bloating
out of control due to insufficient vacuuming.  You may have to vacuum full/
reindex the entire database to get things back under control, which can take
a long time if it's badly bloated.

Your application may also be suffering from lock contention if there are
lots of table locks used.  Looking at the pg_locks table while things are
slow can quickly identify if this is the case, and looking at
pg_stat_activity in conjunction with that table will usually narrow down
the problem pretty quickly.

Finally, if you find that PostgreSQL is the bottleneck and you can't
narrow it down enough to fix, join the PostgreSQL general questions
mailing list and ask for help with the same level of detail you did
here.  You'll find that they're an equally helpful community.

Good luck.  Hope this helps.

-Bill
___
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: vsftpd + SSL not working

2010-12-09 Thread Redd Vinylene
On Thu, Dec 9, 2010 at 1:16 PM, Odhiambo Washington wrote:

>
>
> On Thu, Dec 9, 2010 at 3:10 PM, Redd Vinylene wrote:
>
>> I'm trying to set up a virtual vsftpd-ssl-2.3.2 server (FreeBSD
>> 8.2-PRERELEASE) so my band can share new tracks, production material and
>> what not, but my SSL certificate keeps messing it up:
>> http://pastie.org/1358536 - anybody know why? It works just fine when I
>> disable the SSL. I have no firewalls running.
>>
>> I hope this is not too off-topic. I just don't know where else to ask.
>>
>>
> Would it not be better if you posted your configuration and debug logs for
> those willing to help you out to see?
>

It's all in http://pastie.org/1358536, but incase you don't want to click
the link:

## /var/log/vsftpd.conf (FTPRush)

Wed Dec  8 11:21:07 2010 [pid 38781] CONNECT: Client "161.149.221.220"
Wed Dec  8 11:21:07 2010 [pid 38781] DEBUG: Client "161.149.221.220", "SSL
version: TLSv1/SSLv3, SSL cipher: DES-CBC3-SHA, not reused, no cert"
Wed Dec  8 11:21:08 2010 [pid 38780] [bruner] OK LOGIN: Client
"161.149.221.220"
Wed Dec  8 11:21:08 2010 [pid 38781] [bruner] DEBUG: Client
"161.149.221.220", "SSL version: TLSv1/SSLv3, SSL cipher: DES-CBC3-SHA, not
reused, no cert"
Wed Dec  8 11:21:08 2010 [pid 38781] [bruner] DEBUG: Client
"161.149.221.220", "SSL shutdown state is: NONE"
Wed Dec  8 11:21:08 2010 [pid 38781] [bruner] DEBUG: Client
"161.149.221.220", "SSL shutdown state is: SSL_SENT_SHUTDOWN"

And then the directory listing after 3 minutes:

Wed Dec  8 11:24:29 2010 [pid 38781] [bruner] DEBUG: Client
"161.149.221.220", "SSL shutdown state is: 3"

## /var/log/vsftpd.conf (FlashFXP)

Wed Dec  8 11:33:50 2010 [pid 56557] [bruner] OK LOGIN: Client
"161.149.221.220"
Wed Dec  8 11:33:51 2010 [pid 56558] [bruner] DEBUG: Client
"161.149.221.220", "SSL version: TLSv1/SSLv3, SSL cipher: DES-CBC3-SHA,
reused, no cert"
Wed Dec  8 11:33:51 2010 [pid 56558] [bruner] DEBUG: Client
"161.149.221.220", "SSL shutdown state is: NONE"
Wed Dec  8 11:33:51 2010 [pid 56558] [bruner] DEBUG: Client
"161.149.221.220", "SSL shutdown state is: SSL_SENT_SHUTDOWN"
Wed Dec  8 11:33:51 2010 [pid 56558] [bruner] DEBUG: Client
"161.149.221.220", "SSL shutdown state is: SSL_SENT_SHUTDOWN"
Wed Dec  8 11:33:51 2010 [pid 56558] [bruner] DEBUG: Client
"161.149.221.220", "SSL shutdown state is: SSL_SENT_SHUTDOWN"
Wed Dec  8 11:33:51 2010 [pid 56558] [bruner] DEBUG: Client
"161.149.221.220", "SSL ret: 18446744073709551615, SSL error:
error::lib(0):func(0):reason(0), errno: 22"
Wed Dec  8 11:33:53 2010 [pid 56559] [bruner] OK DELETE: Client
"161.149.221.220", "/bruner_december_2010/track_1.mp3"
Wed Dec  8 11:33:53 2010 [pid 56559] [bruner] OK DELETE: Client
"161.149.221.220", "/bruner_december_2010/tracks.sfv"
Wed Dec  8 11:33:53 2010 [pid 56559] [bruner] OK DELETE: Client
"161.149.221.220", "/bruner_december_2010/tracks.txt"
Wed Dec  8 11:33:53 2010 [pid 56559] [bruner] OK DELETE: Client
"161.149.221.220", "/bruner_december_2010/tracks.m3u"

And in FlashFXP:

[R] 200 PORT command successful. Consider using PASV.
[R] STOR tracks.m3u
[R] Transfer Failed!
[R] Connection lost: bruner

I tried installing OpenSSL 1.0.0b from ports over 0.9.8p that came with
FreeBSD - and then recompiling vsftpd (commenting out the .if ${OSVERSION} <
70 and the .endif below it in the Makefile to force it to link to the
port) - but it made no difference.

## openssl s_client -state -connect :800 (remote box)

CONNECTED(0003)
SSL_connect:before/connect initialization
SSL_connect:SSLv2/v3 write client hello A
SSL_connect:error in SSLv2/v3 read server hello A
3280:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown
protocol:/usr/src/secure/lib/libssl/../../../crypto/openssl/ssl/s23_clnt.c:567:

## openssl s_client -tls1 -state -connect :800 (remote box)

CONNECTED(0003)
SSL_connect:before/connect initialization
SSL_connect:SSLv3 write client hello A
SSL3 alert write:fatal:protocol version
SSL_connect:error in SSLv3 read server hello A
3392:error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version
number:/usr/src/secure/lib/libssl/../../../crypto/openssl/ssl/s3_pkt.c:284:

## openssl s_server -cert vsftpd.pem -key vsftpd.pem -accept 4443
(localhost)

Using default temp DH parameters
Using default temp ECDH parameters
ACCEPT
-BEGIN SSL SESSION PARAMETERS-
MHUCAQECAgMBBAIAOQQgMAQ7m6+qXFxEjTGqANwiHnptuHDkR+55xtbmzAhtHDwE
MLF1LRUOLLBlR8J9QrkZkiCtBgWC88NwFVX4p9wYtt09Ms0MQm/EuzMB1Jm7uquC
taEGAgRM/7XlogQCAgEspAYEBAE=
-END SSL SESSION PARAMETERS-
Shared
ciphers:DHE-RSA-AES256-SHA:DHE-DSS-AES256-SHA:AES256-SHA:DHE-RSA-CAMELLIA256-SHA:DHE-DSS-CAMELLIA256-SHA:CAMELLIA256-SHA:EDH-RSA-DES-CBC3-SHA:EDH-DSS-DES-CBC3-SHA:DES-CBC3-SHA:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA:AES128-SHA:DHE-RSA-CAMELLIA128-SHA:DHE-DSS-CAMELLIA128-SHA:CAMELLIA128-SHA:RC4-SHA:RC4-MD5:EDH-RSA-DES-CBC-SHA:EDH-DSS-DES-CBC-SHA:DES-CBC-SHA:EXP-EDH-RSA-DES-CBC-SHA:EXP-EDH-DSS-DES-CBC-SHA:EXP-DES-CBC-SHA:EXP-RC2-CBC-MD5:EXP-RC4-MD5
CIPHER is DH

Re: Installer program for FreeBSD-9.0?

2010-12-09 Thread Josh Paetzel
On Dec 8, 2010, at 9:07 PM, Polytropon  wrote:

> On Wed, 08 Dec 2010 23:48:11 +1000, Da Rock 
>  wrote:
>> On 12/08/10 11:26, Polytropon wrote:
>>> On Wed, 08 Dec 2010 00:09:24 +0100, "Julian H. Stacey"  
>>> wrote:
>>> 
 My comments/ wish list
 - One text mode (non bitmap graphical) browser:/usr/ports/www/lynx
 
>>> The lynx browser, due to its "special" key handling, does not
>>> appeal to novice users. NO text mode browser gives a "first
>>> sight effect" that will "convince" a user he's installing a
>>> modern OS. Sounds stupid, I know.
>>> 
>>> As I said, the way the user interacts with the browser does
>>> determine how fast he gets through the installation. Learning
>>> the browser (instead of just pressing the keys shown on the
>>> screen) could make things look worse.
>>> 
>>> On the other hand, with the ability of X to run without
>>> configuration on recent hardware, what's wrong with running
>>> X with a graphical web browser - if the user DECIDED that
>>> way? Of course, this decision is the FIRST step in the install
>>> process:
>>> 
>>>Install method
>>>--
>>>T ->  traditional text mode installer (sysinstall)
>>>(this one does not have all the options)
>>>W ->  web-based installer in text mode
>>>(typical for professional users)
>>>G ->  web-based installer in graphics mode
>>>(typical for novice users)
>>>R ->  remote installation
>>>(just starts the server)
>>>S ->  shell
>>>(dialog shell access to live system)
>>> 
>>>Enter choice: _
>>> 
>>> Just a simple idea.
>>> 
>>> 
>>> 
>>> 
>> I like that approach- works for me anyway...
> 
> Let me add that it would be good to default do an action
> after a certain time (e. g. 60 seconds). This default should
> be the preparation for remote installation as this is the
> obvious choice when no interaction is done - because it
> maybe is not possible (like for headless servers). So
> you put in the installation media (CD or USB stick), wait
> a minute, and then remotely access the installer.
> 
> 
> 
>> Accessibility should be foremost at this level and above.
> 
> I would also like to see it that way; sadly, "market share"
> oriented development doesn't share this thought. You can
> make money on all the healthy users, there's plenty of
> them. Users with disabilites are uninteresting, from a
> "marketing" point of view. Users in niche markets are
> uninteresting, too.
> 
> 
> 
>> The legalities 
>> themselves are becoming hairy these days, and considering the point that 
>> we are trying to push accessibility in terms of applications (such as 
>> issues with flash, to name one) using physical accessibility as a 
>> parallel argument we should be setting an example as well.
> 
> Accessibility on the web is just one point. Operating systems,
> the backbones of all the dancing bunnies, should be a good
> example of how to make information accessible to the widest
> amount of people. This includes the idea of NOT cutting out
> those who do not have the ability to access a graphical
> installer: Not because they don't want to use it, but because
> they don't have the means to access it.
> 
> 
> 
>> That said, there is no reason why can't make it look as pretty as we can 
>> without compromising this principle :)
> 
> GUI installer, remote access and not rising barriers does not
> contradict. If done properly, it can benefit both the professional
> users AND those who judge at first sight.
> 
> 
> 
> -- 
> Polytropon

I'm going to weigh in now. :)

If you want to install FreeBSD using X with a pretty GUI, you can do that 
today. Use a PC-BSD install DVD. There is a radio button in the installer to 
make it install plain FreeBSD. 

pc-sysinstall is in HEAD now, and it is completely functional. It's been doing 
PC-BSD and FreeBSD installs for a long time now. 

The way it works is it does an install based on a config file, so really the 
work on the front end is building a tool that will build a config file.

The real issue is that you really want a volume and disk layout "wizard" of 
sorts. The ability to take some disks, maybe make a gmirror, or a ZFS RAIDZ, or 
even use glabel on a single disk, then layout some filesystems on that, then do 
the install. 

It turns out that this is really simple to do in a web app, and not quite so 
simple to do in curses. You want things like constraining choices based on 
previous input. For instance you can't make a RAID-Z from two devices. 

As far as floppy based installs and all of that, the last successful install 
via floppy that I can find documented was in the 3.x era, in the 90's. That was 
over 10 years ago. Booting from floppy is pretty rare these days, and I submit 
that a system that has no choice but to boot from floppy isn't going to be able 
to run FreeBSD 9 anyways. My Pentium Pro can't boot anything newer than 4.11, 
and *that* has USB ports. 

Anything with a chance of running FreeBSD 9 can boot

Re: vsftpd + SSL not working

2010-12-09 Thread Odhiambo Washington
On Thu, Dec 9, 2010 at 3:10 PM, Redd Vinylene wrote:

> I'm trying to set up a virtual vsftpd-ssl-2.3.2 server (FreeBSD
> 8.2-PRERELEASE) so my band can share new tracks, production material and
> what not, but my SSL certificate keeps messing it up:
> http://pastie.org/1358536 - anybody know why? It works just fine when I
> disable the SSL. I have no firewalls running.
>
> I hope this is not too off-topic. I just don't know where else to ask.
>
>
Would it not be better if you posted your configuration and debug logs for
those willing to help you out to see?

-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Damn!!
___
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: FTPD not working properly on jail

2010-12-09 Thread krad
On 9 December 2010 12:08, Redd Vinylene  wrote:

> I'll create a new post. This subject is misleading.
>
>
> On Thu, Dec 9, 2010 at 12:55 PM, Redd Vinylene wrote:
>
>> On Wed, Dec 8, 2010 at 11:24 PM, krad  wrote:
>>
>>>
>>>
>>> On 8 December 2010 20:07, Joseph Bashe  wrote:
>>>
 But he mentioned he needs some sort of 'virtual' (I'm assuming chroot)
 feature; this is not possible with sftp afaik.
 .

>>>
>>>
>>> Its totally possble to chroot the sftp, and I have done it several times.
>>> Something like the below will isolate each user
>>>
>>> Match Group sftponly
>>>  ChrootDirectory /home/chroot/%u
>>>
>>>
>>>  X11Forwarding no
>>>  AllowTcpForwarding no
>>>  ForceCommand internal-sftp
>>>
>>>
>>> he might need something more like this so they can share data
>>>
>>> Match Group sftponly
>>>
>>>  ChrootDirectory /home/chroot/
>>>
>>>
>>>  X11Forwarding no
>>>  AllowTcpForwarding no
>>>  ForceCommand internal-sftp
>>>
>>>
>>>
>> I would love to try that sometime - but right now I have to get this
>> regular ftp working.
>>
>> Just to recap - I'm trying to set up a virtual vsftpd-ssl-2.3.2 server so
>> my band can share new tracks, production material and what not, but my SSL
>> certificate keeps messing it up: http://pastie.org/1358536 - anybody know
>> why? It works just fine when I disable the SSL.
>>
>> Many thanks!
>>
>
>
>
> --
> http://www.home.no/reddvinylene
>

are you sure its ssl and not tls, as they are not the same thing?
___
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"


vsftpd + SSL not working

2010-12-09 Thread Redd Vinylene
I'm trying to set up a virtual vsftpd-ssl-2.3.2 server (FreeBSD
8.2-PRERELEASE) so my band can share new tracks, production material and
what not, but my SSL certificate keeps messing it up:
http://pastie.org/1358536 - anybody know why? It works just fine when I
disable the SSL. I have no firewalls running.

I hope this is not too off-topic. I just don't know where else to ask.

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: FTPD not working properly on jail

2010-12-09 Thread Redd Vinylene
I'll create a new post. This subject is misleading.

On Thu, Dec 9, 2010 at 12:55 PM, Redd Vinylene wrote:

> On Wed, Dec 8, 2010 at 11:24 PM, krad  wrote:
>
>>
>>
>> On 8 December 2010 20:07, Joseph Bashe  wrote:
>>
>>> But he mentioned he needs some sort of 'virtual' (I'm assuming chroot)
>>> feature; this is not possible with sftp afaik.
>>> .
>>>
>>
>>
>> Its totally possble to chroot the sftp, and I have done it several times.
>> Something like the below will isolate each user
>>
>> Match Group sftponly
>>  ChrootDirectory /home/chroot/%u
>>
>>  X11Forwarding no
>>  AllowTcpForwarding no
>>  ForceCommand internal-sftp
>>
>>
>> he might need something more like this so they can share data
>>
>> Match Group sftponly
>>
>>  ChrootDirectory /home/chroot/
>>
>>  X11Forwarding no
>>  AllowTcpForwarding no
>>  ForceCommand internal-sftp
>>
>>
>>
> I would love to try that sometime - but right now I have to get this
> regular ftp working.
>
> Just to recap - I'm trying to set up a virtual vsftpd-ssl-2.3.2 server so
> my band can share new tracks, production material and what not, but my SSL
> certificate keeps messing it up: http://pastie.org/1358536 - anybody know
> why? It works just fine when I disable the SSL.
>
> Many thanks!
>



-- 
http://www.home.no/reddvinylene
___
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: FTPD not working properly on jail

2010-12-09 Thread Redd Vinylene
On Wed, Dec 8, 2010 at 11:24 PM, krad  wrote:

>
>
> On 8 December 2010 20:07, Joseph Bashe  wrote:
>
>> But he mentioned he needs some sort of 'virtual' (I'm assuming chroot)
>> feature; this is not possible with sftp afaik.
>> .
>>
>
>
> Its totally possble to chroot the sftp, and I have done it several times.
> Something like the below will isolate each user
>
> Match Group sftponly
>  ChrootDirectory /home/chroot/%u
>
>  X11Forwarding no
>  AllowTcpForwarding no
>  ForceCommand internal-sftp
>
>
> he might need something more like this so they can share data
>
> Match Group sftponly
>
>  ChrootDirectory /home/chroot/
>  X11Forwarding no
>  AllowTcpForwarding no
>  ForceCommand internal-sftp
>
>
>
I would love to try that sometime - but right now I have to get this regular
ftp working.

Just to recap - I'm trying to set up a virtual vsftpd-ssl-2.3.2 server so my
band can share new tracks, production material and what not, but my SSL
certificate keeps messing it up: http://pastie.org/1358536 - anybody know
why? It works just fine when I disable the SSL.

Many 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"


What is loading my server so much?

2010-12-09 Thread Laszlo Nagy
System is FreeBSD shopzeus.com 8.1-STABLE FreeBSD 8.1-STABLE #0: Sun Oct 
31 02:55:28 EDT 2010 amd64
It has two quad-core Xeon CPUs, 24GB memory, and a RAID 1+0 array with 
10 disks + Areca 1680 controller with 2GB write back cache.


Server is running: mailscanner + apache multihost + PHP + postgresql. 
Main load on the server is usually postgresql.


Today something happened. Number of http processes went up to 200. As a 
result, number of connections to database also went up to 200, and the 
web server is now refusing clients with "Cannot connect to database" 
messages (coming from PHP).


This is a typical output from top:

last pid: 12789;  load averages:  7.77, 10.77, 
13.46
up 26+03:00:30  06:22:04

6637 processes: 7 running, 623 sleeping, 7 zombie
CPU: 32.9% user,  0.0% nice,  7.6% system,  0.6% interrupt, 58.9% idle
Mem: 3885M Active, 15G Inact, 3236M Wired, 627M Cache, 2465M Buf, 656M Free
Swap: 12G Total, 12M Used, 12G Free

  PID USERNAME   THR PRI NICE   SIZERES STATE   C   TIME   WCPU 
COMMAND
66834 pgsql1 1180   443M   417M CPU22  16:17 99.46% 
postgres
11473 pgsql1  720   441M   242M sbwait  5   0:02  4.59% 
postgres
11026 pgsql1  470   439M   249M sbwait  7   0:01  3.17% 
postgres
 6642 www  1  480   236M 42928K select  0   0:01  2.29% 
httpd
10147 www  1  480   236M 44048K select  6   0:01  2.10% 
httpd
 3961 shopzeus29  440   208M 96364K uwait   4  18.4H  1.37% 
python



Here is what I don't understand. "last pid" is increasing relatively 
slowly, e.g. there are no hidden processes. Only the first one or two 
processes are showing CPU load > 10%.  The "CPU User%" value is about 
50%. We have lots of free memory. I/O load is almost nothing (see iostat 
below).


However, server load is between 7 and 13! In fact sometimes it is above 
16. And everybody complains that the server is too slow.


How can I find out what is causing the problem?

Example gstat output:

dT: 1.006s  w: 1.000s
 L(q)  ops/sr/s   kBps   ms/rw/s   kBps   ms/w   %busy Name
0  0  0  00.0  0  00.00.0| ad4
0  0  0  00.0  0  00.00.0| ad4s1
0  0  0  00.0  0  00.00.0| ad4s1d
0  0  0  00.0  0  00.00.0| da0
0  0  0  00.0  0  00.00.0| da0s1
1304  3 34   14.0301   75220.25.1| da1
0  2  2 32   11.9  0  00.02.4| da2
0  0  0  00.0  0  00.00.0| da3
0  0  0  00.0  0  00.00.0| da4
0  0  0  00.0  0  00.00.0| da0s1a
0  0  0  00.0  0  00.00.0| da0s1b
0  0  0  00.0  0  00.00.0| da0s1d
0  0  0  00.0  0  00.00.0| da0s1e
1304  3 34   14.0301   75220.35.3| da1s1
0  2  2 32   11.9  0  00.02.4| da2s1
0  0  0  00.0  0  00.00.0| da3s1
0  0  0  00.0  0  00.00.0| da4s1
1304  3 34   14.0301   75220.45.4| da1s1d
0  2  2 32   11.9  0  00.02.4| da2s1d
0  0  0  00.0  0  00.00.0| da3s1d

Example iostat output:

   tty ad4  da0  
da1 cpu
 tin  tout  KB/t tps  MB/s   KB/t tps  MB/s   KB/t tps  MB/s  us ni sy 
in id
   0   349 30.81  16  0.49  16.51  11  0.18  22.56 124  2.72  29  0  9  
1 61
   0  9282  0.00   0  0.00   0.00   0  0.00  16.00   7  0.11  41  0 11  
1 47
   0 12520  0.00   0  0.00   0.00   0  0.00  18.00   8  0.14  45  0 14  
0 41
   0 12205  0.00   0  0.00   0.00   0  0.00   0.00   0  0.00  38  0 15  
0 47


Example systat output:

/0   /1   /2   /3   /4   /5   /6   /7   /8   /9   /10
 Load Average >

/0%  /10  /20  /30  /40  /50  /60  /70  /80  /90  /100
pgsql  postgres X
root   idle XXX
root   idle X
root   idle XX
www   httpd X
root   idle X
root   idle 
root   idle XXX
root   idle XXX
root   idle 
www   httpd XX
pgsql  postgres XXX
pgsql  postgres X
www   httpd X
root   intr X
www   httpd X
www   httpd X
www   httpd X
www   httpd X
shopzeus python X
www   

Re: dhclient doesn't work over wireless

2010-12-09 Thread Michael

On 09/12/2010 10:16, Paul B Mahol wrote:

On 12/9/10, Michael  wrote:


Ok it looks like PR number 145269. Unfortunately there is no fix yet.
Thank you for your help, at least I know it's not just me.


That PR is invalid/useless. If you want feedback give more.

You have wpa_supplicant.conf?



Yes, this is my wpa_supplicant.conf file:
  network={
  ssid="wifi"
  scan_ssid=1
  bssid=XX:XX:XX:XX:XX:XX
  priority=9
  mode=0
  proto=RSN
  key_mgmt=WPA-PSK
  auth_alg=OPEN
  pairwise=CCMP
  group=CCMP
  psk="x"
}

Just to remind you - ifconfig says that wlan0 is associated with my 
access point.
I'm happy to provide all details needed, just tell me what you need. I'm 
running FreeBSD 8.1-RELEASE with all SA+errata patches. Standard 
dhclient.conf file.


Michael
___
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: dhclient doesn't work over wireless

2010-12-09 Thread Paul B Mahol
On 12/9/10, Michael  wrote:
> On 09/12/2010 02:51, Adam Vande More wrote:
>> On Wed, Dec 8, 2010 at 5:01 PM, Michael  wrote:
>>
>>>
>>> Again, other systems doesn't seem to have any trouble with getting IP
>>> from
>>> this DHCP server and wired interface (em0) works fine too.
>>>
>>> Any ideas please?
>>>
>>
>> Your answer lies within:
>>
>> http://www.freebsd.org/cgi/query-pr-summary.cgi
>
> Ok it looks like PR number 145269. Unfortunately there is no fix yet.
> Thank you for your help, at least I know it's not just me.

That PR is invalid/useless. If you want feedback give more.

You have wpa_supplicant.conf?
___
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: Disk encryption on a headless box?

2010-12-09 Thread krad
On 9 December 2010 04:52, Andre Goree  wrote:

> I was looking at encrypting my data on a headless server I have, and found
> a
> good tutorial using ZFS+geli.  Easy enough to setup, but one thing I just
> realized is that I wouldn't be able to enter the passphrase on the server
> since I keep it headless.
>
> I wonder if there is some type of encryption I can use that does not
> require
> entering a passphrase.  For example, perhaps I can set it up in a way that
> it'll automatically read from certain files on a thumb drive?
> ___
> 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"
>


Probably worth noting that the latest version of zfs has encryption built
in. This isnt available to bsd yet, but i guess theres a good chance it will
be in the next few months as a patch. Might take a (big) bit longer to hit
stable though
___
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: dhclient doesn't work over wireless

2010-12-09 Thread krad
On 9 December 2010 09:11, Michael  wrote:

> On 09/12/2010 02:51, Adam Vande More wrote:
>
>> On Wed, Dec 8, 2010 at 5:01 PM, Michael  wrote:
>>
>>
>>> Again, other systems doesn't seem to have any trouble with getting IP
>>> from
>>> this DHCP server and wired interface (em0) works fine too.
>>>
>>> Any ideas please?
>>>
>>>
>> Your answer lies within:
>>
>> http://www.freebsd.org/cgi/query-pr-summary.cgi
>>
>
> Ok it looks like PR number 145269. Unfortunately there is no fix yet.
> Thank you for your help, at least I know it's not just me.
>
> Michael
>
> ___
> 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"
>


you could try isc-dhcp31-client or another client as a stop gap until the pr
is resolved
___
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: dhclient doesn't work over wireless

2010-12-09 Thread Michael

On 09/12/2010 02:51, Adam Vande More wrote:

On Wed, Dec 8, 2010 at 5:01 PM, Michael  wrote:



Again, other systems doesn't seem to have any trouble with getting IP from
this DHCP server and wired interface (em0) works fine too.

Any ideas please?



Your answer lies within:

http://www.freebsd.org/cgi/query-pr-summary.cgi


Ok it looks like PR number 145269. Unfortunately there is no fix yet.
Thank you for your help, at least I know it's not just me.

Michael
___
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"