disappearing snapshots

2005-06-11 Thread Michael Grant
I've been playing with snapshots (mksnap_ffs) recently.  I've got a
script which does a daily snapshot and keeps 7 days of history.  Last
night, the machine crashed and when it came back up, all the snapshots
referred to the current view of the disk, i.e. I lost the 7-day
history.

I'm running 5.3-release.

Has anyone seen this?  Snapshots should persist beyond reboots,
shouldn't they?

(Yes, I am doing the mdconfig and remounting the snap.)

Michael Grant
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD MySQL still WAY slower than Linux

2005-06-11 Thread Billy Newsom

Steve Roome wrote:
 We're using mostly:

   5.4-STABLE FreeBSD 5.4-STABLE #0: Mon Jun 6 12:22:18 BST 2005

 This is on a Dell PowerEdge 2850. (2 * 2.8 GHz Xeons, 4GB ram, disks),
 we've been keeping up with stable because supposedly all these new
 fixes to threading will help us out here.

 We're trying to get FreeBSD to perform reasonably well, in comparison
 to Linux, or even what we should expect to see. We're getting about
 half the performance we get from gentoo on the same application
 (mysql).

[snip]

 Thanks in advance for anyone that has a clue on this, and has anyone
 figured out why FreeBSD is just so amazingly slow compared to Linux.


Have you looked around for different compilers and/or different compiler 
options?  I was just remembering how different code can be, depending on 
which gcc, for example, was used, and definitely which optimization. 
(i.e. Try gcc -v on both systems to see if they match; next see if all 
compiler options match when they are compiling like -march=pentiumpro.) 
 Meanwhile, I have heard good things about compiler fill in the blank 
for whatever.  Not too long ago, I remember hearing about people who 
preferred to use, say, an Intel compiler for certain things.  It might 
be interesting to see if FreeBSD 4.11 is just as slow as 5.x.  And try 
feeding the right compiler flags using /etc/make.conf or its equivalent.


You should also think about whether the file systems are mounted using 
similar, or equally-performing systems.  Rumour has it that Linux file 
systems performance is  [flame bait mysteriously deleted]...  Your 
benchmark may produce some interesting results, for example, depending 
on whether it thrashes a disk, or mainly hits memory.  Do they perform 
the same on small sized (cached) lookups and then FreeBSD bogs down on 
disk throughput, for example?


Last, but not least, I have heard some not-so-impressive things about 
MySQL 4.1 when compared to 4.0.  Perhaps the things I heard were in 
reality specific to FreeBSD, and so by dropping back to 4.0 on a test 
server, you might see an unexpected performance boost?  (Be sure and 
delete the tables between runs.)  4.0 is still in the ports tree, and I 
have heard of some who wished they never upgraded to 4.1.  But going 
backwards is not pretty for a live database, so test both versions now.


Billy
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD MySQL still WAY slower than Linux

2005-06-11 Thread Robert Watson


On Fri, 10 Jun 2005, Steve Roome wrote:


We're using mostly:

 5.4-STABLE FreeBSD 5.4-STABLE #0: Mon Jun 6 12:22:18 BST 2005


In my experience, the following factors make a big performance difference:

- Thread package.  In 5.x, you get process scope threads by default, but
  it turns out MySQL is tuned for system scope threads, and this is
  particularly visible in the supersmack benchmark, which competes many
  client processes against a few server threads.  I'm not sure what the
  condition is of libthr on 5.x, but you could give it a spin.  In 6.x,
  libthr has been largely rewritten and is a great deal faster.  I think
  there's a compile-time option to make libpthread use system scope
  threads but the details ellude me.  The Linuxthreads library may well
  provide a substantial improvement -- not as good for MySQL as the 6.x
  libthr, but perhaps much more appropriate than libpthread.

- Locking model.  Make sure that debug.mpsafenet is set to 1 (i.e., there
  aren't components in the kernel that force Giant over the network stack.
  Chances are there are none, but it's worth checking).

- Twiddling hyper-threading, which helps or hurts differently in various
  configurations.

- On a UP system, consider compiling a kernel without options SMP to
  reduce locking overhead.

I've found the single largest remaining factor to be threading package -- 
over the past year or so I've about doubled MySQL performance on 5.x 
leading up to 5.3, largely through SMP locking work, but the remainder of 
the difference appears to be in the threading package.


Robert N M Watson
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


if_axe watchdog timeouts

2005-06-11 Thread Daniel O'Connor
I have a crusty ancient laptop I am using to control my sprinkler system. I 
was going to use a PCMCIA ethernet controller but the slot is hosed, so I got 
a USB ethernet adapter (LinkSys USB200M) which is driven by if_axe.

I works reasonably well, but fairly frequently I get..
axe0: watchdog timeout
axe0: usb error on tx: TIMEOUT

If I unplug/replug the device it works again, or if I bring the interface down 
then up.

The USB controller and axe dmesg bits are as follows..

ohci0: NEC uPD 9210 USB controller mem 0xf7fff000-0xf7ff irq 11 at 
device 11.0 on pci0
ohci0: [GIANT-LOCKED]
usb0: OHCI version 1.0
usb0: NEC uPD 9210 USB controller on ohci0
usb0: USB revision 1.0
uhub0: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
axe0: Linksys USB 2.0 10/100 ethernet controller, rev 2.00/0.01, addr 2
miibus0: MII bus on axe0
rlphy0: RTL8201L 10/100 media interface on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
axe0: Ethernet address: 00:10:60:84:09:bd
axe0: if_start running deferred for Giant

This is on a Toshiba Satellite 2540CDS, I've attached the full dmesg, kern 
conf, etc.

Anyone have any suggestions?

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
machine i386
cpu I586_CPU
ident   SPRINKLER

options SCHED_4BSD  # 4BSD scheduler
options INET# InterNETworking
options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates support
options UFS_ACL # Support for access control lists
options UFS_DIRHASH # Improve performance on big directories
options COMPAT_43   # Compatible with BSD 4.3 [KEEP THIS!]
options KTRACE  # ktrace(1) support
options SYSVSHM # SYSV-style shared memory
options SYSVMSG # SYSV-style message queues
options SYSVSEM # SYSV-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time 
extensions
options ADAPTIVE_GIANT  # Giant mutex is adaptive.

device  isa
device  pci

# Floppy drives
device  fdc

# ATA and ATAPI devices
device  ata
device  atadisk # ATA disk drives
device  atapicd # ATAPI CDROM drives

device  atkbdc  # AT keyboard controller
device  atkbd   # AT keyboard
device  psm # PS/2 mouse
device  vga # VGA video card driver
device  splash  # Splash screen and screen saver support

# syscons is the default console driver, resembling an SCO console
device  sc

device  npx

# Power management support (see NOTES for more options)
device  apm
# Add suspend/resume support for the i8254.
device  pmtimer

# PCCARD (PCMCIA) support
# PCMCIA and cardbus bridge support
#device cbb # cardbus (yenta) bridge
#device pccard  # PC Card (16-bit) bus
#device cardbus # CardBus (32-bit) bus

# Serial (COM) ports
device  sio # 8250, 16[45]50 based serial ports

# Parallel port
device  ppc
device  ppbus   # Parallel port bus (required)
device  lpt # Printer
device  ppi # Parallel port interface device

# Pseudo devices.
device  loop# Network loopback
device  mem # Memory and kernel memory devices
device  io  # I/O device
device  random  # Entropy device
device  ether   # Ethernet support
device  pty # Pseudo-ttys (telnet etc)
device  bpf # Berkeley packet filter

Id Refs AddressSize Name
 19 0xc040 24f428   kernel
Contains modules:
Id Name
42 isa/ata
43 pci/atapci
44 atapci/ata
45 acd
46 mem
47 null
48 pci/fixup_pci
49 pci/ignore_pci
50 pci/isab
51 pcib/pci
52 pci/pcib
53 ppbus/lpt
54 ppc/ppbus
55 ppbus/ppi
56 random
57 pci/sio
58 cardbus/sio
59 watchdog
60 devfs
61 g_dev
62 g_disk
63 isab/isa
64 eisab/isa
65 legacy/isa
66 isa/isahint
67 isa/orm
68 isa/pnp

Re: FreeBSD MySQL still WAY slower than Linux

2005-06-11 Thread Jiawei Ye
On 6/11/05, Robert Watson [EMAIL PROTECTED] wrote:
   I think there's a compile-time option to make libpthread use system scope
   threads but the details ellude me.  The Linuxthreads library may well
   provide a substantial improvement -- not as good for MySQL as the 6.x
   libthr, but perhaps much more appropriate than libpthread.
It is a sysctl in -current kern.threads.thr_scope, it had a
different name under 5-stable but does the same thing I think.

Jiawei
-- 
Without the userland, the kernel is useless.
   --inspired by The Tao of Programming
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Adaptec 2120S delays boot

2005-06-11 Thread Andrey Lakhno
Hello,

I have a problem with server with Adaptec SCSI RAID 2120S controller.
5.4-RELEASE was installed.

GENERIC kernel boots with long delay (about 10 minutes), printing following 
messages:
aac0: Error 5 sending GetDeviceProbeInfo command
aac0: Error 5 sending GetDeviceProbeInfo command
aac0: Error 5 sending GetDeviceProbeInfo command
aac0: Error 5 sending GetDeviceProbeInfo command
aac0: Error 5 sending GetDeviceProbeInfo command
...

Is somebody knows how to fix this ?

dmesg boot output:

Copyright (c) 1992-2005 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 5.4-RELEASE #0: Sun May  8 10:21:06 UTC 2005
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC
ACPI APIC Table: A M I  OEMAPIC 
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Xeon(TM) CPU 3.00GHz (2800.11-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0xf41  Stepping = 1
  
Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
real memory  = 2147352576 (2047 MB)
avail memory = 2095861760 (1998 MB)
ioapic1: Changing APIC ID to 10
ioapic1: WARNING: intbase 72 != expected base 24
ioapic2: Changing APIC ID to 8
ioapic2: WARNING: intbase 24 != expected base 96
ioapic3: Changing APIC ID to 9
ioapic0 Version 2.0 irqs 0-23 on motherboard
ioapic2 Version 2.0 irqs 24-47 on motherboard
ioapic3 Version 2.0 irqs 48-71 on motherboard
ioapic1 Version 2.0 irqs 72-95 on motherboard
npx0: math processor on motherboard
npx0: INT 16 interface
acpi0: A M I OEMXSDT on motherboard
acpi0: Power Button (fixed)
Timecounter ACPI-fast frequency 3579545 Hz quality 1000
acpi_timer0: 24-bit timer at 3.579545MHz port 0x408-0x40b on acpi0
cpu0: ACPI CPU on acpi0
acpi_throttle0: ACPI CPU Throttling on cpu0
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: ACPI PCI bus on pcib0
pcib1: ACPI PCI-PCI bridge irq 16 at device 2.0 on pci0
pci1: ACPI PCI bus on pcib1
pcib2: ACPI PCI-PCI bridge at device 0.0 on pci1
pci3: ACPI PCI bus on pcib2
aac0: Adaptec SCSI RAID 2120S mem 0xf800-0xfbff irq 24 at device 1.0 
on pci3
aac0: Unknown processor 100MHz, 48MB cache memory, optional battery not 
installed
aac0: Kernel 4.2-0, Build 7349, S/N c0b92b
aac0: Supported 
Options=31d7eCLUSTERS,WCACHE,DATA64,HOSTTIME,RAID50,WINDOW4GB,SOFTERR,SGMAP64,ALARM,NONDASD
aacp0: SCSI Passthrough Bus on aac0
pcib3: ACPI PCI-PCI bridge at device 0.2 on pci1
pci2: ACPI PCI bus on pcib3
pcib4: ACPI PCI-PCI bridge irq 16 at device 3.0 on pci0
pci4: ACPI PCI bus on pcib4
pcib5: ACPI PCI-PCI bridge at device 28.0 on pci0
pci5: ACPI PCI bus on pcib5
em0: Intel(R) PRO/1000 Network Connection, Version - 1.7.35 port 
0xcc00-0xcc3f mem 0xfc9e-0xfc9f irq 74 at device 1.0 on pci5
em0: Ethernet address: 00:30:48:83:67:be
em0:  Speed:N/A  Duplex:N/A
em1: Intel(R) PRO/1000 Network Connection, Version - 1.7.35 port 
0xc800-0xc83f mem 0xfc9a-0xfc9b irq 75 at device 2.0 on pci5
em1: Ethernet address: 00:30:48:83:67:bf
em1:  Speed:N/A  Duplex:N/A
uhci0: UHCI (generic) USB controller port 0xe800-0xe81f irq 16 at device 29.0 
on pci0
usb0: UHCI (generic) USB controller on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: UHCI (generic) USB controller port 0xec00-0xec1f irq 19 at device 29.1 
on pci0
usb1: UHCI (generic) USB controller on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
pci0: base peripheral at device 29.4 (no driver attached)
pci0: base peripheral, interrupt controller at device 29.5 (no driver 
attached)
pci0: serial bus, USB at device 29.7 (no driver attached)
pcib6: ACPI PCI-PCI bridge at device 30.0 on pci0
pci6: ACPI PCI bus on pcib6
pci6: display, VGA at device 2.0 (no driver attached)
isab0: PCI-ISA bridge at device 31.0 on pci0
isa0: ISA bus on isab0
atapci0: Intel 6300ESB UDMA100 controller port 
0xfc00-0xfc0f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
pci0: serial bus, SMBus at device 31.3 (no driver attached)
acpi_button0: Power Button on acpi0
acpi_button1: Sleep Button on acpi0
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0: 16550A-compatible COM port port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
sio1: 16550A-compatible COM port port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
fdc0: floppy drive controller (FDE) port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on 
acpi0
fd0: 1440-KB 3.5 drive on fdc0 drive 0
orm0: ISA Option ROMs at iomem 
0xcd800-0xce7ff,0xcc800-0xcd7ff,0xc8000-0xcc7ff,0xc-0xc7fff on isa0
pmtimer0 on isa0
atkbdc0: Keyboard controller (i8042) at 

weird df -k output

2005-06-11 Thread Bashar

FreeBSDers,

got this weird df -k output on one of my 5.3 boxes which show either 
after long uptime or high load:

# df -k
Filesystem 1K-blocks UsedAvail Capacity  Mounted on
/dev/ad0s1a   507630   215166   25185446%/
devfs  110   100%/dev
/dev/ad0s1g102405926 49029352 4518410052%/home
/dev/ad0s1d   507630 9832   457188 2%/tmp
/dev/ad0s1e  5052462  3957240   69102685%/usr
/dev/ad0s1f  5052462  1796916  285135039%/var
procfs 440   100%/proc
/libexec  507630   215166   25185446%libexec
/lib  507630   215166   25185446%lib
/usr/lib 5052462  3957240   69102685%usr/lib
/usr/sbin5052462  3957240   69102685%usr/sbin
/usr/share   5052462  3957240   69102685%usr/share
/usr/bin 5052462  3957240   69102685%usr/bin
/usr/man 5052462  3957240   69102685%usr/man
/usr/X11R6   5052462  3957240   69102685%usr/X11R6
/usr/libexec 5052462  3957240   69102685%usr/libexec
/usr/local/bin   5052462  3957240   69102685%usr/local/bin
/usr/local/lib   5052462  3957240   69102685%usr/local/lib
/var/spool   5052462  1796916  285135039%var/spool
/var/lib 5052462  1796916  285135039%var/lib
/var/run 5052462  1796916  285135039%var/run
/var/log 5052462  1796916  285135039%var/log
/home/b12 102405926 49029352 4518410052%b12
/tmp  507630 9832   457188 2%tmp
/dev   110   100%dev
/bin  507630   215166   25185446%bin
/proc  440   100%proc

and it disappear right after the reboot, dunno why its mounting several 
dirs as partitions?

also mount output as follows:
/dev/ad0s1a on / (ufs, local)
devfs on /dev (devfs, local)
/dev/ad0s1g on /home (ufs, local, soft-updates)
/dev/ad0s1d on /tmp (ufs, local, soft-updates)
/dev/ad0s1e on /usr (ufs, local, soft-updates)
/dev/ad0s1f on /var (ufs, local, soft-updates)
procfs on /proc (procfs, local)
/libexec on libexec (nullfs, local)
/lib on lib (nullfs, local)
/usr/lib on usr/lib (nullfs, local)
/usr/sbin on usr/sbin (nullfs, local)
/usr/share on usr/share (nullfs, local)
/usr/bin on usr/bin (nullfs, local)
/usr/man on usr/man (nullfs, local)
/usr/X11R6 on usr/X11R6 (nullfs, local)
/usr/libexec on usr/libexec (nullfs, local)
/usr/local/bin on usr/local/bin (nullfs, local)
/usr/local/lib on usr/local/lib (nullfs, local)
/var/spool on var/spool (nullfs, local)
/var/lib on var/lib (nullfs, local)
/var/run on var/run (nullfs, local)
/var/log on var/log (nullfs, local)
/home/b12 on b12 (nullfs, local)
/tmp on tmp (nullfs, local)
/dev on dev (nullfs, local)
/bin on bin (nullfs, local)
/proc on proc (nullfs, local)


any idea what is this and what could be causing it?
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


kvm not available

2005-06-11 Thread Bashar

any idea what this notice 'kvm not available' means ?

i get it on multiple ocasions such as netstat , but it moves on and lsof 
but it gives this error and stops:
lsof: kvm_open(execfile=/boot/kernel/kernel, corefile=/dev/mem): No such 
file or directory





___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: kvm not available

2005-06-11 Thread Max Laier
On Saturday 11 June 2005 10:42, Bashar wrote:
 any idea what this notice 'kvm not available' means ?

 i get it on multiple ocasions such as netstat , but it moves on and lsof
 but it gives this error and stops:
 lsof: kvm_open(execfile=/boot/kernel/kernel, corefile=/dev/mem): No such
 file or directory

src/UPDATING:
| 20040801:
| The /dev/mem, /dev/io /dev/(null/zero) devices are now modules,
| so you may wish to add them to your kernel config file. See
| GENERIC for examples.

As a (temporary) fix you can also #kldload mem or load it via loader.conf.

-- 
/\  Best regards,  | [EMAIL PROTECTED]
\ /  Max Laier  | ICQ #67774661
 X   http://pf4freebsd.love2party.net/  | [EMAIL PROTECTED]
/ \  ASCII Ribbon Campaign  | Against HTML Mail and News


pgp3c4AZHJDbQ.pgp
Description: PGP signature


Re: FreeBSD MySQL still WAY slower than Linux

2005-06-11 Thread Vladimir Chukharev

I've been working with Steve on this project.  We've been playing with various tuning 
factors, including kernel changes, different stripe sizes on the RAID, my.cnf 
tuning, libmap.conf, and although we can gain a bit here and there, we can't account for 
the doubling of performance with Gentoo.  Anyway, I've included the dmesg and kernel 
config.


And /etc/make.conf ?


The Gentoo install was pretty vanilla-flavoured, as neither Steve or I had 
installed Gentoo before, and both of us are pretty rusty on any form of Linux.


IIRC Gentoo on install detects the processor type and sets
for gcc the -march option. FreeBSD does not. Also Gentoo defaults
to -O3 (or -O2? I don't have it anymore to check...), so better
to par in that also.

Since Gentoo compiles practically everything in place,
these parameters might affect the results quite much.
At least I would check this ;-)

BTW, if you will make world and kernel with -march set, you
probably better patch it, or you might get a broken loader
(sorry for cutpaste, tabs might be broken):

$ cat progs/loader.patch
--- /usr/src/lib/libstand/Makefile.orig Fri Jun 10 14:03:07 2005
+++ /usr/src/lib/libstand/Makefile  Fri Jun 10 14:03:45 2005
@@ -20,6 +20,7 @@
 .endif
 .if ${MACHINE_ARCH} == i386
 CFLAGS+=   -mpreferred-stack-boundary=2
+CFLAGS+=   -mno-sse2
 .endif
 .if ${MACHINE_ARCH} == powerpc
 CFLAGS+=   -msoft-float -D_STANDALONE
--- /usr/src/sys/boot/ficl/Makefile.origFri Jun 10 14:04:05 2005
+++ /usr/src/sys/boot/ficl/Makefile Fri Jun 10 14:04:29 2005
@@ -12,6 +12,7 @@
 .endif
 .if ${MACHINE_ARCH} == i386 || ${MACHINE_ARCH} == amd64
 CFLAGS+=   -mpreferred-stack-boundary=2
+CFLAGS+=   -mno-sse2
 .endif
 .if ${MACHINE_ARCH} == powerpc
 CFLAGS+=   -msoft-float

Similar (with more -mno-smthng) patches are applied by obrien to HEAD,
but not to STABLE yet AFAIK, for more see recent discussions in freebsd-current,
subj: Newest loader...


Incidentally, this does not seem to be I/O-bound.  The data is big enough to 
stay in the table cache anyway.
I just noticed these particular tests were done on FreeBSD without HTT, whereas 
the Gentoo test was.  However, I can tell you that in earlier runs, the 
difference between HTT and non-HTT on FreeBSD for this benchmark was negligible.
Regards,
Tom
--- [snip] ---
Copyright (c) 1992-2005 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 5.4-STABLE #0: Thu Jun  9 09:13:03 BST 2005
 [EMAIL PROTECTED]:/usr/src/sys/i386/compile/PE2850_i386_4
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Xeon(TM) CPU 2.80GHz (2793.01-MHz 686-class CPU)
   Origin = GenuineIntel  Id = 0xf41  Stepping = 1
   
Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
real memory  = 3489398784 (3327 MB)
avail memory = 3418517504 (3260 MB)



--
V.Chukharev
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD MySQL still WAY slower than Linux

2005-06-11 Thread Vladimir Chukharev

One thing more...

I've seen a message on a PostgreSQL list that MySQL can
_silently_ change the type of the tables if it cannot find
some library. Check that you have really same DBs
in Gentoo and FreeBSD.

--
V.Chukharev
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


general libthread questions [Was: Re: FreeBSD MySQL still WAY slower than Linux]

2005-06-11 Thread Emanuel Strobl
Am Samstag, 11. Juni 2005 10:00 schrieb Robert Watson:
 On Fri, 10 Jun 2005, Steve Roome wrote:
[...]
 - Thread package.  In 5.x, you get process scope threads by default, but
it turns out MySQL is tuned for system scope threads, and this is
particularly visible in the supersmack benchmark, which competes many
client processes against a few server threads.  I'm not sure what the
condition is of libthr on 5.x, but you could give it a spin.  In 6.x,
libthr has been largely rewritten and is a great deal faster.  I
 think there's a compile-time option to make libpthread use system scope
 threads but the details ellude me.  The Linuxthreads library may well
 provide a substantial improvement -- not as good for MySQL as the 6.x
 libthr, but perhaps much more appropriate than libpthread.

OT, but can someone please gvie me a link which describes the pthread and 
lib_thr stuff. And how would I tell a port to compile with a specific 
threading library (if my understanding is correct)? Maybe one can name 
typical applications for specific threading libraries?

Thanks a lot,

-Harry


pgpxccEoGLn7W.pgp
Description: PGP signature


kernel panic

2005-06-11 Thread Alex Lyashkov
Hello Robert.

Today i install new freebsd box with freebsd 5-stable, sources from are
over Jun  6 09:28 EEST.

when i tried to work I got are full repeatable panic.

#2  0xc04aafb0 in panic (fmt=0xc0610e42 sbflush_locked: cc %u || mb %p
|| mbcnt %u)
at /usr/src/sys/kern/kern_shutdown.c:566
td = (struct thread *) 0xc11cec00
bootopt = 260
newpanic = 0
ap = 0xc11cec00 [EMAIL PROTECTED]
buf = sbflush_locked: cc 0 || mb 0xc135f300 || mbcnt 0, '\0'
repeats 207 times
#3  0xc04e4a07 in sbflush_locked (sb=0xc1d3e6a4) at
/usr/src/sys/kern/uipc_socket2.c:1119
No locals.
#4  0xc04e4a46 in sbflush (sb=0xc1d3e6a4) at
/usr/src/sys/kern/uipc_socket2.c:1128
No locals.
#5  0xc055902f in tcp_disconnect (tp=0xc1da11bc) at
/usr/src/sys/netinet/tcp_usrreq.c:1226
so = (struct socket *) 0xc1d3e654
#6  0xc0557f58 in tcp_usr_disconnect (so=0x0) at
/usr/src/sys/netinet/tcp_usrreq.c:445
inp = (struct inpcb *) 0xc1cebb40
tp = (struct tcpcb *) 0x0
#7  0xc04e050a in sodisconnect (so=0x0) at
/usr/src/sys/kern/uipc_socket.c:579
No locals.
#8  0xc04e012c in soclose (so=0xc1d3e654) at
/usr/src/sys/kern/uipc_socket.c:458
error = 0
#9  0xc04d0c3f in soo_close (fp=0xc19e9d48, td=0xc11cec00) at
/usr/src/sys/kern/sys_socket.c:299
error = 0
so = (struct socket *) 0x0
#10 0xc048d200 in fdrop_locked (fp=0xc19e9d48, td=0xc11cec00) at
file.h:288
error = 0
#11 0xc048d151 in fdrop (fp=0xc19e9d48, td=0xc11cec00) at
/usr/src/sys/kern/kern_descrip.c:2101
No locals.
#12 0xc048b81b in closef (fp=0xc19e9d48, td=0xc11cec00) at
/usr/src/sys/kern/kern_descrip.c:1918
vp = (struct vnode *) 0x0
lf = {l_start = 579614447286217896, l_len =
-3085549963380260856, l_pid = 0, l_type = 0, l_whence = 0}
fdtol = (struct filedesc_to_leader *) 0xd52deca8
fdp = (struct filedesc *) 0xc142c400
#13 0xc0488d05 in close (td=0xc11cec00, uap=0x0) at
/usr/src/sys/kern/kern_descrip.c:1004
fdp = (struct filedesc *) 0xc142c400
fp = (struct file *) 0xc19e9d48
fd = 45
error = -1068914549
holdleaders = 0
#14 0xc05e45b3 in syscall (frame=
  {tf_fs = 47, tf_es = 47, tf_ds = -1088225233, tf_edi = 136442880,
tf_esi = -1085465088, tf_ebp = -1085465192, tf_isp = -718410396, tf_ebx
= 673633468, tf_edx = 148024960, tf_ecx = 135296768, tf_eax = 6,
tf_trapno = 0, tf_err = 2, tf_eip = 673966799, tf_cs = 31, tf_eflags =
646, tf_esp = -1085465236, tf_ss = 47}) at
/usr/src/sys/i386/i386/trap.c:1009

(kgdb) p *sb
$1 = {sb_sel = {si_thrlist = {tqe_next = 0x0, tqe_prev = 0xc1d06030},
si_thread = 0x0, si_note = {kl_lock = 0xc1d3e6bc,
  kl_list = {slh_first = 0x0}}, si_flags = 0}, sb_mtx = {mtx_object
= {lo_class = 0xc063497c,
  lo_name = 0xc0610dc2 so_rcv, lo_type = 0xc0610dc2 so_rcv,
lo_flags = 196608, lo_list = {tqe_next = 0x0,
tqe_prev = 0x0}, lo_witness = 0x0}, mtx_lock = 3239898112,
mtx_recurse = 0}, sb_mb = 0xc135f300,
  sb_mbtail = 0xc1366600, sb_lastrecord = 0xc135f300, sb_cc = 0,
sb_hiwat = 66176, sb_mbcnt = 0, sb_mbmax = 262144,
  sb_ctl = 0, sb_lowat = 1, sb_timeo = 0, sb_flags = 0, sb_state = 32}
(kgdb) f 5
#5  0xc055902f in tcp_disconnect (tp=0xc1da11bc) at
/usr/src/sys/netinet/tcp_usrreq.c:1226
1226sbflush(so-so_rcv);
(kgdb) p so
$2 = (struct socket *) 0xc1d3e654
(kgdb) p *so
$3 = {so_count = 1, so_type = 1, so_options = 4, so_linger = 0, so_state
= 266, so_qstate = 0, so_pcb = 0xc1cebb40,
  so_proto = 0xc063ff28, so_head = 0x0, so_incomp = {tqh_first = 0x0,
tqh_last = 0x0}, so_comp = {tqh_first = 0x0,
tqh_last = 0x0}, so_list = {tqe_next = 0x0, tqe_prev = 0xc1810534},
so_qlen = 0, so_incqlen = 0, so_qlimit = 0,
  so_timeo = 0, so_error = 0, so_sigio = 0x0, so_oobmark = 0, so_aiojobq
= {tqh_first = 0x0, tqh_last = 0xc1d3e69c},
  so_rcv = {sb_sel = {si_thrlist = {tqe_next = 0x0, tqe_prev =
0xc1d06030}, si_thread = 0x0, si_note = {
kl_lock = 0xc1d3e6bc, kl_list = {slh_first = 0x0}}, si_flags =
0}, sb_mtx = {mtx_object = {lo_class = 0xc063497c,
lo_name = 0xc0610dc2 so_rcv, lo_type = 0xc0610dc2 so_rcv,
lo_flags = 196608, lo_list = {tqe_next = 0x0,
  tqe_prev = 0x0}, lo_witness = 0x0}, mtx_lock = 3239898112,
mtx_recurse = 0}, sb_mb = 0xc135f300,
sb_mbtail = 0xc1366600, sb_lastrecord = 0xc135f300, sb_cc = 0,
sb_hiwat = 66176, sb_mbcnt = 0, sb_mbmax = 262144,
sb_ctl = 0, sb_lowat = 1, sb_timeo = 0, sb_flags = 0, sb_state =
32}, so_snd = {sb_sel = {si_thrlist = {
tqe_next = 0x0, tqe_prev = 0x0}, si_thread = 0x0, si_note =
{kl_lock = 0xc1d3e724, kl_list = {slh_first = 0x0}},
  si_flags = 0}, sb_mtx = {mtx_object = {lo_class = 0xc063497c,
lo_name = 0xc0610dbb so_snd,
lo_type = 0xc0610dbb so_snd, lo_flags = 196608, lo_list =
{tqe_next = 0x0, tqe_prev = 0x0}, lo_witness = 0x0},
  mtx_lock = 4, mtx_recurse = 0}, sb_mb = 0xc18bec00, sb_mbtail =
0xc18bec00, sb_lastrecord = 0xc18bec00, sb_cc = 529,
sb_hiwat = 33792, sb_mbcnt = 2304, 

Re: FreeBSD MySQL still WAY slower than Linux

2005-06-11 Thread Daniel Eischen

Robert Watson wrote:


On Fri, 10 Jun 2005, Steve Roome wrote:


We're using mostly:

 5.4-STABLE FreeBSD 5.4-STABLE #0: Mon Jun 6 12:22:18 BST 2005



In my experience, the following factors make a big performance difference:

- Thread package.  In 5.x, you get process scope threads by default, but
  it turns out MySQL is tuned for system scope threads, and this is
  particularly visible in the supersmack benchmark, which competes many
  client processes against a few server threads.  I'm not sure what the
  condition is of libthr on 5.x, but you could give it a spin.  In 6.x,
  libthr has been largely rewritten and is a great deal faster.  I think
  there's a compile-time option to make libpthread use system scope
  threads but the details ellude me.  The Linuxthreads library may well
  provide a substantial improvement -- not as good for MySQL as the 6.x
  libthr, but perhaps much more appropriate than libpthread.


You can set the environment variable LIBPTHREAD_SYSTEM_SCOPE to force
libpthread to use system scope.  This is easier than rebuilding libpthread
(with SYSTEM_SCOPE_ONLY defined) and allows you to use M:N for some
applications and 1:1 for others.

--
DE

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


atacontrol raid1 vs. gmirror

2005-06-11 Thread Mike Jakubik
Can someone explain tome the difference between a RAID1 setup done via
atacontrol and gmirror? I have a VIA 6420 SATA150 controller, which also
has raid, but is not supported by -stable.


___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: atacontrol raid1 vs. gmirror

2005-06-11 Thread Paul Mather
On Sat, 2005-06-11 at 14:42 -0400, Mike Jakubik wrote:
 Can someone explain tome the difference between a RAID1 setup done via
 atacontrol and gmirror? I have a VIA 6420 SATA150 controller, which also
 has raid, but is not supported by -stable.

Here are the main differences, as I see them:

atacontrol RAID:

- Only for ATA;
- Compatible with quite a few ATA RAID card BIOS metadata formats, hence
you can create the RAID using the RAID controller's BIOS menu;
- Supports only two-way mirroring (IIRC);
- Supports spares.

gmirror:

- Works with any GEOM provider (ATA, SCSI, ggate, etc.);
- Uses the last sector of each RAID component to store its own metadata;
- Supports N-way mirroring;
- Does not support spares (though gmirror activate/deactivate can be
used to associate a component with a mirror somewhat akin to having a
spare).


I found array rebuilding to be troublesome on atacontrol RAID---so much
so I abandoned it and used vinum and then gmirror instead for my RAID 1.
(I have a bootable geom_mirror setup, now.)  Mind you, that was in the
pre-ATA mk.III days, and I hear the RAID support underwent a big revamp
in the mk.III rewrite.

Cheers,

Paul.
-- 
e-mail: [EMAIL PROTECTED]

Without music to decorate it, time is just a bunch of boring production
 deadlines or dates by which bills must be paid.
--- Frank Vincent Zappa
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Performance of 4.x vs 5.x (Re: Lifetime of FreeBSD branches)

2005-06-11 Thread Matthias Buelow
I wrote:
 Kris Kennaway wrote:
  http://www.chesapeake.net/~jroberson/flushbuf.diff
Does it work for you on 5.4?
 The patch seems to work. Cool, that makes a difference like between

BTW., is that change being included in 5-STABLE or just for 6-CURRENT?

mkb.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


I need Help with the mozilla plugins, with acroread7

2005-06-11 Thread Maher Mohamed
LoadPlugin: failed to initialize shared library
/usr/compat/linux/usr/local/Adobe/Acrobat7.0/Browser/intellinux/nppdf.so
[/usr/compat/linux/usr/local/Adobe/Acrobat7.0/Browser/intellinux/nppdf.so:
Undefined symbol stderr]

I get this message after i instled the linuxpluginwrapper what else
do i have to do to avoid this.  i heared that i should make changes to
the /etc/libmap.conf, the question is how and wich line in particular.

please answer me in a full matter, because the browser so far made my
life harder

thank you in advanced to all of you friends

Mohamed M. Maher
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Performance of 4.x vs 5.x (Re: Lifetime of FreeBSD branches)

2005-06-11 Thread Kris Kennaway
On Sat, Jun 11, 2005 at 09:52:13PM +0200, Matthias Buelow wrote:
 I wrote:
  Kris Kennaway wrote:
   http://www.chesapeake.net/~jroberson/flushbuf.diff
 Does it work for you on 5.4?
  The patch seems to work. Cool, that makes a difference like between
 
 BTW., is that change being included in 5-STABLE or just for 6-CURRENT?
 
 mkb.
 

Jeff said he'll merge it in a week or two after it's been well-tested.

Kris
 

pgpkOYLjgWhdk.pgp
Description: PGP signature


Re: Strange error

2005-06-11 Thread Peter Jeremy
On Fri, 2005-Jun-10 22:41:36 +0200, Jack Raats wrote:
This day I've a very strange error when trying to connect to my FreeBSD 
machine (4.11-STABLE)
I got the following error:
ssh_exchange_identification: Connection closed by remote host

Can anyone give me any clue what's wrong?

Try turning on debugging on the client (ssh -vvv ...).  You can also
turn on debugging on the server with '-d' (though you probably also want
to use '-p').  If the problem isn't obvious, compare the output with a
debugging session that works.
-- 
Peter Jeremy
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Performance of 4.x vs 5.x (Re: Lifetime of FreeBSD branches)

2005-06-11 Thread Steven Hartland
- Original Message - 
From: Kris Kennaway [EMAIL PROTECTED]

Jeff said he'll merge it in a week or two after it's been well-tested.



Been running it here on our ftp which was getting major issues with
disk access spiking system usage to 90+% making the server totally
unresponsive for 5 - 10 seconds at a time.

With the patch things are MUCH better. No problems to report and
the server is under major load including some heavy disk access as
I clean up some dirs with 1.4 million files in a single dir /me slaps users
:p

   Steve 




This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. 


In the event of misdirection, illegible or incomplete transmission please 
telephone (023) 8024 3137
or return the E.mail to [EMAIL PROTECTED]

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Performance of 4.x vs 5.x (Re: Lifetime of FreeBSD branches)

2005-06-11 Thread Matthias Buelow
Steven Hartland wrote:

 With the patch things are MUCH better. No problems to report and
 the server is under major load including some heavy disk access as

Yeah, no problems here either, so far.

mkb.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ACL not supported on 5.4?

2005-06-11 Thread Brandon Fosdick
Björn König wrote:
 Hello Brandon,
 
 I get the same error messages if ACL are not enabled. I just want to
 make sure that you didn't overlook the part of the handbook where it
 says that you have to enable it.

It seems that's exactly what happened. Thanks for pointing it out.

 By the way, the option -k won't work on non-directories at all, see also
 the manpage of setfacl.

Ok, then the handbook needs fixing because it says The -k flag will remove all 
of the currently defined ACLs from a file or file system, which would seem to 
imply that it works on files. Naturally I would have known better if I had read 
the man page, but I didn't.

Are handbook bugs handled through send-pr like everything else?

Thanks

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


panic: kmem_malloc(4096): kmem_map too small: 62877696 total allocated

2005-06-11 Thread Tom Jensen
Got the following panic on a 5.4 box(i386):

panic: kmem_malloc(4096): kmem_map too small: 62877696 total allocated

Uname: 5.4-RELEASE FreeBSD 5.4-RELEASE #4: Sun May  8 01:57:26 CEST 2005

Had two ntfs partitions mounted and was doing a find . -name *.pst on one of
them.

Following info collected, but kernel dump aviable if more information is
needed.
---
panic: kmem_malloc(4096): kmem_map too small: 62877696 total allocated
KDB: enter: panic

db show lockedvnods
Locked vnodes
0xc20cb000: tag ntfs, type VDIR, usecount 2, writecount 0, refcount 0, flags
(VV_OBJBUF), lock type ntfs: EXCL (count 1) by thread 0xc1d1ad80 (pid 82982)

db trace
Tracing pid 82982 tid 100199 td 0xc1d1ad80
kdb_enter(c083a269) at kdb_enter+0x2b
panic(c084b127,1000,3bf7000,1fa,0) at panic+0xbb
kmem_malloc(c103b0c0,1000,2,cee5a844,c0765bf5) at kmem_malloc+0x7d
page_alloc(c10456c0,1000,cee5a837,2,0) at page_alloc+0x1a
slab_zalloc(c10456c0,2,c10456f8,c10456c0,c2653c48) at slab_zalloc+0xdd
uma_zone_slab(c10456c0,102,102,80,1200) at uma_zone_slab+0xe8
uma_zalloc_bucket(c10456c0,102) at uma_zalloc_bucket+0x14c
uma_zalloc_arg(c10456c0,0,102) at uma_zalloc_arg+0x274
malloc(14c,c28a65e0,102,0,c4f75d08) at malloc+0x46
ntfs_attrtontvattr(c33d4300,cee5a914,c4f75d08,c20cb000,) at
ntfs_attrtontvattr+0x30
ntfs_loadntnode(c33d4300,c4ed6d00,100500,2,c4ed6d00) at
ntfs_loadntnode+0x1b5
ntfs_findvattr(c33d4300,c4ed6d00,cee5a984,cee5a9e8,90) at
ntfs_findvattr+0x21
ntfs_ntvattrget(c33d4300,c4ed6d00,90,c28a4f0e,0) at ntfs_ntvattrget+0x5d
ntfs_ntreaddir(c33d4300,c4f41d80,0,cee5aa2c,0) at ntfs_ntreaddir+0x66
ntfs_readdir(cee5aca0,0,c20cb000,c1ea9960,8058210) at ntfs_readdir+0x163
getdirentries(c1d1ad80,cee5ad14,4,10c,246) at getdirentries+0x113
syscall(805002f,805002f,bfbf002f,8053100,8053100) at syscall+0x2ab
Xint0x80_syscall() at Xint0x80_syscall+0x1f
--- syscall (196, FreeBSD ELF32, getdirentries), eip = 0x280c893b, esp =
0xbfbfeb4c, ebp = 0xbfbfeb68 ---

- Tom

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: I need Help with the mozilla plugins, with acroread7

2005-06-11 Thread Patrick Bowen

Maher Mohamed wrote:


LoadPlugin: failed to initialize shared library
/usr/compat/linux/usr/local/Adobe/Acrobat7.0/Browser/intellinux/nppdf.so
[/usr/compat/linux/usr/local/Adobe/Acrobat7.0/Browser/intellinux/nppdf.so:
Undefined symbol stderr]

I get this message after i instled the linuxpluginwrapper what else
do i have to do to avoid this.  i heared that i should make changes to
the /etc/libmap.conf, the question is how and wich line in particular.

please answer me in a full matter, because the browser so far made my
life harder

thank you in advanced to all of you friends

Mohamed M. Maher
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]

 


Hi Mohamed:

Looking thru the FreeBSd mail archives I found the following link;

http://docs.FreeBSD.org/cgi/mid.cgi?50436.64.81.112.182.1116702567.squirrel

It describse the problem, and the solution, which involves adding /usr 
to the entry for the acrobat7 reader. I tested it myself and it works 
perfectly. It's such a simple fix that it completely eluded me when I 
had the same problem. I'd just taken to using Konqueror to read PDF's.


Hope this helps...good luck.

Patrick
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Strange error

2005-06-11 Thread Tod McQuillin

On Sun, 12 Jun 2005, Peter Jeremy wrote:


On Fri, 2005-Jun-10 22:41:36 +0200, Jack Raats wrote:

This day I've a very strange error when trying to connect to my FreeBSD machine 
(4.11-STABLE)
I got the following error:
ssh_exchange_identification: Connection closed by remote host

Can anyone give me any clue what's wrong?


I missed the start of this thread but this sounds like tcpwrappers closing 
the connection.


Check your /etc/hosts.allow and look in /var/log/messages for a message 
like:


May 31 12:18:36 hostname sshd[1594]: warning: /etc/hosts.allow, line 32: can't 
verify hostname: getaddrinfo(1.2.3.4.example.com, AF_INET) failed
May 31 12:18:37 hostname sshd[1594]: refused connect from 1.2.3.4 (1.2.3.4)

If you see something like that you can change the entry in your 
/etc/hosts.allow to allow ssh connections from that specific IP or 
netmask.


see hosts_options(5) for details.
--
Tod McQuillin

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: weird df -k output

2005-06-11 Thread Dan Ponte
On Sat, Jun 11, 2005 at 11:32:24AM +0300, Bashar [EMAIL PROTECTED] was 
witnessed plotting the following conspiracy:
 FreeBSDers,
 
 got this weird df -k output on one of my 5.3 boxes which show either 
 after long uptime or high load:
 # df -k
 Filesystem 1K-blocks UsedAvail Capacity  Mounted on
 /dev/ad0s1a   507630   215166   25185446%/
 devfs  110   100%/dev
 /dev/ad0s1g102405926 49029352 4518410052%/home
 /dev/ad0s1d   507630 9832   457188 2%/tmp
 /dev/ad0s1e  5052462  3957240   69102685%/usr
 /dev/ad0s1f  5052462  1796916  285135039%/var
 procfs 440   100%/proc
 /libexec  507630   215166   25185446%libexec
 /lib  507630   215166   25185446%lib
 /usr/lib 5052462  3957240   69102685%usr/lib
 /usr/sbin5052462  3957240   69102685%usr/sbin
 /usr/share   5052462  3957240   69102685%usr/share
 /usr/bin 5052462  3957240   69102685%usr/bin
 /usr/man 5052462  3957240   69102685%usr/man
 /usr/X11R6   5052462  3957240   69102685%usr/X11R6
 /usr/libexec 5052462  3957240   69102685%usr/libexec
 /usr/local/bin   5052462  3957240   69102685%usr/local/bin
 /usr/local/lib   5052462  3957240   69102685%usr/local/lib
 /var/spool   5052462  1796916  285135039%var/spool
 /var/lib 5052462  1796916  285135039%var/lib
 /var/run 5052462  1796916  285135039%var/run
 /var/log 5052462  1796916  285135039%var/log
 /home/b12 102405926 49029352 4518410052%b12
 /tmp  507630 9832   457188 2%tmp
 /dev   110   100%dev
 /bin  507630   215166   25185446%bin
 /proc  440   100%proc
snip
Apparently, you're mounting those directories using nullfs (man 8
mount_nullfs). Look around in fstab; maybe you or someone else put such
entries there. It is extremely odd, though.
-Dan
-- 
Dan Ponte
http://www.theamigan.net/
Never be led astray onto the path of virtue.


pgpLyiR5zqgIO.pgp
Description: PGP signature


Re: panic: kmem_malloc(4096): kmem_map too small: 62877696 total allocated

2005-06-11 Thread Kris Kennaway
On Sun, Jun 12, 2005 at 01:11:13AM +0200, Tom Jensen wrote:
 Got the following panic on a 5.4 box(i386):
 
 panic: kmem_malloc(4096): kmem_map too small: 62877696 total allocated
 
 Uname: 5.4-RELEASE FreeBSD 5.4-RELEASE #4: Sun May  8 01:57:26 CEST 2005
 
 Had two ntfs partitions mounted and was doing a find . -name *.pst on one of
 them.
 
 Following info collected, but kernel dump aviable if more information is
 needed.

How much RAM in your system, and what is your kernel config?  This can
be caused by two things:

* A memory leak in FreeBSD

* Incorrect tuning of your kernel memory parameters and causing the
kernel to run out of memory.

Kris


pgpDFidqihSOn.pgp
Description: PGP signature


Re: kernel panic

2005-06-11 Thread Damon Hopkins
Sorry I can't really help. I get the same thing after setting up my 
vonage VOIP adapter. I did a tcpdump on the interface and saw that I was 
getting a lot  of UDP traffic. I updated my box as of last night and now 
I don't get a panic anymore but the box just locks up instead w/out 
panicing. I'm using ipnat and ipf w/ basically no ipf rules and only a 
generic map for my nat. I tried recompiling ipnat and added 1000 to the 
number of states to keep and it didn't help one bit.


Any help would be appreciated. I don't think my file systems can take 
many more of these power cycles. But I'll help any way I can. I haven't 
really done any kernel tracing or anything like that but if someone can 
point me to a what I need to do I'll do it.


Damon Hopkins

Alex Lyashkov wrote:

Hello Robert.

Today i install new freebsd box with freebsd 5-stable, sources from are
over Jun  6 09:28 EEST.

when i tried to work I got are full repeatable panic.

#2  0xc04aafb0 in panic (fmt=0xc0610e42 sbflush_locked: cc %u || mb %p
|| mbcnt %u)
at /usr/src/sys/kern/kern_shutdown.c:566
td = (struct thread *) 0xc11cec00
bootopt = 260
newpanic = 0
ap = 0xc11cec00 [EMAIL PROTECTED]
buf = sbflush_locked: cc 0 || mb 0xc135f300 || mbcnt 0, '\0'
repeats 207 times
#3  0xc04e4a07 in sbflush_locked (sb=0xc1d3e6a4) at
/usr/src/sys/kern/uipc_socket2.c:1119
No locals.
#4  0xc04e4a46 in sbflush (sb=0xc1d3e6a4) at
/usr/src/sys/kern/uipc_socket2.c:1128
No locals.
#5  0xc055902f in tcp_disconnect (tp=0xc1da11bc) at
/usr/src/sys/netinet/tcp_usrreq.c:1226
so = (struct socket *) 0xc1d3e654
#6  0xc0557f58 in tcp_usr_disconnect (so=0x0) at
/usr/src/sys/netinet/tcp_usrreq.c:445
inp = (struct inpcb *) 0xc1cebb40
tp = (struct tcpcb *) 0x0
#7  0xc04e050a in sodisconnect (so=0x0) at
/usr/src/sys/kern/uipc_socket.c:579
No locals.
#8  0xc04e012c in soclose (so=0xc1d3e654) at
/usr/src/sys/kern/uipc_socket.c:458
error = 0
#9  0xc04d0c3f in soo_close (fp=0xc19e9d48, td=0xc11cec00) at
/usr/src/sys/kern/sys_socket.c:299
error = 0
so = (struct socket *) 0x0
#10 0xc048d200 in fdrop_locked (fp=0xc19e9d48, td=0xc11cec00) at
file.h:288
error = 0
#11 0xc048d151 in fdrop (fp=0xc19e9d48, td=0xc11cec00) at
/usr/src/sys/kern/kern_descrip.c:2101
No locals.
#12 0xc048b81b in closef (fp=0xc19e9d48, td=0xc11cec00) at
/usr/src/sys/kern/kern_descrip.c:1918
vp = (struct vnode *) 0x0
lf = {l_start = 579614447286217896, l_len =
-3085549963380260856, l_pid = 0, l_type = 0, l_whence = 0}
fdtol = (struct filedesc_to_leader *) 0xd52deca8
fdp = (struct filedesc *) 0xc142c400
#13 0xc0488d05 in close (td=0xc11cec00, uap=0x0) at
/usr/src/sys/kern/kern_descrip.c:1004
fdp = (struct filedesc *) 0xc142c400
fp = (struct file *) 0xc19e9d48
fd = 45
error = -1068914549
holdleaders = 0
#14 0xc05e45b3 in syscall (frame=
  {tf_fs = 47, tf_es = 47, tf_ds = -1088225233, tf_edi = 136442880,
tf_esi = -1085465088, tf_ebp = -1085465192, tf_isp = -718410396, tf_ebx
= 673633468, tf_edx = 148024960, tf_ecx = 135296768, tf_eax = 6,
tf_trapno = 0, tf_err = 2, tf_eip = 673966799, tf_cs = 31, tf_eflags =
646, tf_esp = -1085465236, tf_ss = 47}) at
/usr/src/sys/i386/i386/trap.c:1009

(kgdb) p *sb
$1 = {sb_sel = {si_thrlist = {tqe_next = 0x0, tqe_prev = 0xc1d06030},
si_thread = 0x0, si_note = {kl_lock = 0xc1d3e6bc,
  kl_list = {slh_first = 0x0}}, si_flags = 0}, sb_mtx = {mtx_object
= {lo_class = 0xc063497c,
  lo_name = 0xc0610dc2 so_rcv, lo_type = 0xc0610dc2 so_rcv,
lo_flags = 196608, lo_list = {tqe_next = 0x0,
tqe_prev = 0x0}, lo_witness = 0x0}, mtx_lock = 3239898112,
mtx_recurse = 0}, sb_mb = 0xc135f300,
  sb_mbtail = 0xc1366600, sb_lastrecord = 0xc135f300, sb_cc = 0,
sb_hiwat = 66176, sb_mbcnt = 0, sb_mbmax = 262144,
  sb_ctl = 0, sb_lowat = 1, sb_timeo = 0, sb_flags = 0, sb_state = 32}
(kgdb) f 5
#5  0xc055902f in tcp_disconnect (tp=0xc1da11bc) at
/usr/src/sys/netinet/tcp_usrreq.c:1226
1226sbflush(so-so_rcv);
(kgdb) p so
$2 = (struct socket *) 0xc1d3e654
(kgdb) p *so
$3 = {so_count = 1, so_type = 1, so_options = 4, so_linger = 0, so_state
= 266, so_qstate = 0, so_pcb = 0xc1cebb40,
  so_proto = 0xc063ff28, so_head = 0x0, so_incomp = {tqh_first = 0x0,
tqh_last = 0x0}, so_comp = {tqh_first = 0x0,
tqh_last = 0x0}, so_list = {tqe_next = 0x0, tqe_prev = 0xc1810534},
so_qlen = 0, so_incqlen = 0, so_qlimit = 0,
  so_timeo = 0, so_error = 0, so_sigio = 0x0, so_oobmark = 0, so_aiojobq
= {tqh_first = 0x0, tqh_last = 0xc1d3e69c},
  so_rcv = {sb_sel = {si_thrlist = {tqe_next = 0x0, tqe_prev =
0xc1d06030}, si_thread = 0x0, si_note = {
kl_lock = 0xc1d3e6bc, kl_list = {slh_first = 0x0}}, si_flags =
0}, sb_mtx = {mtx_object = {lo_class = 0xc063497c,
lo_name = 0xc0610dc2 so_rcv, lo_type = 0xc0610dc2 so_rcv,
lo_flags = 196608, lo_list = {tqe_next = 0x0,
  tqe_prev = 0x0}, lo_witness = 0x0},