Re: Perl application hang in umtxn state

2008-10-31 Thread Dominique Goncalves
Hi

On Thu, Oct 30, 2008 at 10:32 AM, Václav Haisman [EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 Dominique Goncalves wrote:
 Hi,

 I run FreeBSD 7.1-PRERELEASE and with a Perl GTK2 application, Perl
 hang in umtxn state:

   PID USERNAMETHR PRI NICE   SIZERES STATETIME   WCPU COMMAND
 76288 dom   1  530 67860K 46080K umtxn0:02  0.00% perl5.8.8

 And the only way to stop the application is kill -9

 I tried to use ktrace/kdump and ktrace.out show _umtx_op

 $ kdump -f ktrace.out
 [...]
  13199 perl5.8.8 RET   lstat 0
  13199 perl5.8.8 CALL  gettimeofday(0xbfbfb144,0)
  13199 perl5.8.8 RET   gettimeofday 0
  13199 perl5.8.8 CALL  _umtx_op(0xbfbfd18c,0x3,0x1,0,0)
  13199 perl5.8.8 RET   _umtx_op 0
  13199 perl5.8.8 CALL  sigprocmask(SIG_BLOCK,0xbfbfd120,0x8121490)
  13199 perl5.8.8 RET   sigprocmask 0
  13199 perl5.8.8 CALL  _umtx_op(0x287fb8a0,0x5,0,0,0)
  13199 perl5.8.8 RET   _umtx_op RESTART
  13199 perl5.8.8 PSIG  SIGKILL SIG_DFL


 How to debug this hang? (btw I'm not a developer)
 You can try rebuilding perl with debugging information. I am not sure
 this is the best way but I have used this in my /etc/make.conf:

 # Disable binaries stripping.
 STRIP=
 # Add debugging info to binaries.
 CFLAGS?=
 CFLAGS+= -g3 -ggdb
 CXXFLAGS?=
 CXXFLAGS+= -g3 -ggdb

Ok, I've recompiled Perl and others applications with these options.

 When you have that, try running your test case again. When it blocks
 again, attach GDB to the hung process: gdb -p PID `which perl`. And then
 obtain the call stack: (gdb) bt.

# gdb -p 2528 `which perl`
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for details.
This GDB was configured as i386-marcel-freebsd...(no debugging
symbols found)...
Attaching to program: /usr/bin/perl, process 2528
Reading symbols from /usr/local/lib/perl5/5.8.8/mach/CORE/libperl.so...done.
Loaded symbols for /usr/local/lib/perl5/5.8.8/mach/CORE/libperl.so
Reading symbols from /lib/libm.so.5...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /lib/libcrypt.so.4...done.
Loaded symbols for /lib/libcrypt.so.4
Reading symbols from /lib/libutil.so.7...done.
Loaded symbols for /lib/libutil.so.7
Reading symbols from /lib/libc.so.7...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from
/usr/local/lib/perl5/site_perl/5.8.8/mach/auto/Cwd/Cwd.so...done.
Loaded symbols for /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/Cwd/Cwd.so
Reading symbols from /usr/local/lib/perl5/5.8.8/mach/auto/POSIX/POSIX.so...done.
Loaded symbols for /usr/local/lib/perl5/5.8.8/mach/auto/POSIX/POSIX.so
Reading symbols from
/usr/local/lib/perl5/site_perl/5.8.8/mach/auto/Glib/Glib.so...done.
Loaded symbols for /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/Glib/Glib.so
Reading symbols from /usr/local/lib/libgobject-2.0.so.0...done.
Loaded symbols for /usr/local/lib/libgobject-2.0.so.0
Reading symbols from /usr/local/lib/libglib-2.0.so.0...done.
Loaded symbols for /usr/local/lib/libglib-2.0.so.0
Reading symbols from /usr/local/lib/libintl.so.8...done.
Loaded symbols for /usr/local/lib/libintl.so.8
Reading symbols from /usr/local/lib/libiconv.so.3...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /usr/local/lib/libpcre.so.0...done.
Loaded symbols for /usr/local/lib/libpcre.so.0
Reading symbols from
/usr/local/lib/perl5/site_perl/5.8.8/mach/auto/Cairo/Cairo.so...done.
Loaded symbols for /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/Cairo/Cairo.so
Reading symbols from /usr/local/lib/libcairo.so.2...done.
Loaded symbols for /usr/local/lib/libcairo.so.2
Reading symbols from /usr/local/lib/libfreetype.so.9...done.
Loaded symbols for /usr/local/lib/libfreetype.so.9
Reading symbols from /lib/libz.so.4...done.
Loaded symbols for /lib/libz.so.4
Reading symbols from /usr/local/lib/libfontconfig.so.1...done.
Loaded symbols for /usr/local/lib/libfontconfig.so.1
Reading symbols from /usr/local/lib/libpixman-1.so.9...done.
Loaded symbols for /usr/local/lib/libpixman-1.so.9
Reading symbols from /usr/local/lib/libpng.so.5...done.
Loaded symbols for /usr/local/lib/libpng.so.5
Reading symbols from /usr/local/lib/libxcb-render-util.so.0...done.
Loaded symbols for /usr/local/lib/libxcb-render-util.so.0
Reading symbols from /usr/local/lib/libxcb-render.so.0...done.
Loaded symbols for /usr/local/lib/libxcb-render.so.0
Reading symbols from /usr/local/lib/libxcb.so.1...done.
Loaded symbols for /usr/local/lib/libxcb.so.1
Reading symbols from /usr/local/lib/libXrender.so.1...done.
Loaded symbols for /usr/local/lib/libXrender.so.1
Reading symbols from /usr/local/lib/libX11.so.6...done.
Loaded symbols for /usr/local/lib/libX11.so.6
Reading symbols from /lib/libthr.so.3...done.
[New Thread 

Re: Script-friendly (parseble) ps(1) output?

2008-10-31 Thread Oliver Fromme
Eduardo Meyer wrote:
  Now my next problem, do the sabe with sockstat

I think in earlier days sockstat was just a script that
merged the output from netstat and fstat (or maybe some
third tool, too, I don't remember).  So, you might try
to use netstat and fstat instead.  Of course it depends
on what information you exactly need from the sockstat
output (if not all of it).

Best regards
   Oliver


-- 
Oliver Fromme, secnetix GmbH  Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

If you aim the gun at your foot and pull the trigger, it's
UNIX's job to ensure reliable delivery of the bullet to
where you aimed the gun (in this case, Mr. Foot).
-- Terry Lambert, FreeBSD-hackers mailing list.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Regression 7.0R - 7-stable?

2008-10-31 Thread Gerrit Kühn
On Tue, 14 Oct 2008 13:12:04 -0400 John Baldwin [EMAIL PROTECTED] wrote
about Re: Regression 7.0R - 7-stable?:

Hi,

I'm back. Sorry for taking so long with the answer, but I had some
holidays and needed to catch up with lots of other things first.

JB Are you sure you aren't using dual consoles somehow with serial being
JB primary? If you break into the loader, what does 'show console' show?

Just vidconsole.

JB  As I am seeing this only with the ULE-scheduler: Is the scheduler
JB  already in action at this point, and may the hang depend on what it
JB  is deciding to do?

JB Hmmm, I'm really not sure.  I wonder if you are having some sort of
JB interrupt storm.  What if you disable SMP via 'kern.smp.disabled=1' in
JB the loader, does that help at all?

Yes, boots up fine with that setting (but naturally running on only one
core).


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


Re: atacontrol: ioctl(IOCATADEVICES): Device not configured

2008-10-31 Thread Miroslav Lachman

Jeremy Chadwick wrote:

On Wed, Oct 15, 2008 at 01:09:47AM +0200, Miroslav Lachman wrote:


FreeBSD 7.1-BETA amd64 GENERIC on HP ProLiant ML110 G5

When I tried to run 'atacontrol list' I got an error:
atacontrol: ioctl(IOCATADEVICES): Device not configured



There was a bug in atacontrol which was causing this for most
people, although there's the possibility that this is a new bug.

See revision 1.43.2.3 below:

http://www.freebsd.org/cgi/cvsweb.cgi/src/sbin/atacontrol/atacontrol.c

Can you verify what version of src/sbin/atacontrol/atacontrol.c your
world was built off of?  I'm thinking because it was so new (barely
2 weeks) that it didn't get pulled in during the BETA build, but it
definitely should have gotten pulled in for BETA2.

ftp://ftp4.freebsd.org/pub/FreeBSD/releases/amd64/ISO-IMAGES/7.1/


Just to close this issue - you are right, today upgrade to BETA2 fixed 
the atacontrol problem.
(I did not have sources installed, it was minimal instalation on USB 
flashdisk, hence I can't compare revision numbers. The system was 
successfuly upgraded by 'freebsd-update -r 7.1-BETA2 upgrade')


Thanks again for you time and suggestions.


It is after I switched HDD mode in BIOS to Serial ATA (it was Auto  
before)


Does it means that atacontrol list is not available for Serial ATA  
native mode? (I don't think so, because I am using atacontrol on another  
machines where disk are at AHCI mode AFAIK - Sun Fire X2100 M2 for 
example)



## pciconf -lv
[EMAIL PROTECTED]:0:31:2:class=0x01018f card=0x31f4103c chip=0x29208086  
rev=0x02 hdr=0x00

   vendor = 'Intel Corporation'
   device = '82801IB/IR/IH (ICH9 Family) 4 port Serial ATA Storage  
Controller 1'

   class  = mass storage
   subclass   = ATA
[EMAIL PROTECTED]:0:31:3:  class=0x0c0500 card=0x31f4103c chip=0x29308086  
rev=0x02 hdr=0x00

   vendor = 'Intel Corporation'
   device = '82801IB/IR/IH (ICH9 Family) SMBus Controller'
   class  = serial bus
   subclass   = SMBus
[EMAIL PROTECTED]:0:31:5:class=0x010185 card=0x31f4103c chip=0x29268086  
rev=0x02 hdr=0x00

   vendor = 'Intel Corporation'
   device = '82801IB/IR/IH (ICH9 Family) 2 port Serial ATA Storage  
Controller 2'

   class  = mass storage
   subclass   = ATA

[EMAIL PROTECTED]:14:0:0:   class=0x02 card=0x7051103c chip=0x165a14e4  
rev=0x00 hdr=0x00

   vendor = 'Broadcom Corporation'
   device = 'NetXtreme BCM5722 Gigabit Ethernet PCIe'
   class  = network
   subclass   = ethernet

## BIOS HDD mode: Serial ATA
## /var/run/dmesg.boog
atapci0: Intel ICH9 SATA300 controller port  
0x1c50-0x1c57,0x1c44-0x1c47,0x1c48-0x1c4f,0x1c40-0x1c43,0x1c10-0x1c1f,0x1c00-0x1c0f 
irq 17 at device 31.2 on pci0

atapci0: [ITHREAD]
ata2: ATA channel 0 on atapci0
ata2: [ITHREAD]
ata3: ATA channel 1 on atapci0
ata3: [ITHREAD]
pci0: serial bus, SMBus at device 31.3 (no driver attached)
atapci1: Intel ICH9 SATA300 controller port  
0x1c68-0x1c6f,0x1c5c-0x1c5f,0x1c60-0x1c67,0x1c58-0x1c5b,0x1c30-0x1c3f,0x1c20-0x1c2f 
irq 18 at device 31.5 on pci0

atapci1: [ITHREAD]
ata4: ATA channel 0 on atapci1
ata4: [ITHREAD]
ata5: ATA channel 1 on atapci1
ata5: [ITHREAD]
[...]
ad4: 953869MB SAMSUNG HD103UJ 1AA01113 at ata2-master SATA300
ad5: 953869MB SAMSUNG HD103UJ 1AA01113 at ata2-slave SATA300
ad6: 953869MB SAMSUNG HD103UJ 1AA01113 at ata3-master SATA300
ad7: 953869MB SAMSUNG HD103UJ 1AA01113 at ata3-slave SATA300
da0 at umass-sim0 bus 0 target 0 lun 0
da0: USB 2.0 Flash Disk 1100 Removable Direct Access SCSI-0 device
da0: 40.000MB/s transfers
da0: 7936MB (16252928 512 byte sectors: 255H 63S/T 1011C)
acd0: DVDR HL-DT-ST DVD-RAM GH15L/FA01 at ata4-master SATA150


## BIOS HDD mode: Auto
atapci0: Intel ICH9 SATA300 controller port  
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1c10-0x1c1f,0x1c00-0x1c0f at  
device 31.2 on pci0

ata0: ATA channel 0 on atapci0
ata0: [ITHREAD]
ata1: ATA channel 1 on atapci0
ata1: [ITHREAD]
pci0: serial bus, SMBus at device 31.3 (no driver attached)
atapci1: Intel ICH9 SATA300 controller port  
0x1c68-0x1c6f,0x1c5c-0x1c5f,0x1c60-0x1c67,0x1c58-0x1c5b,0x1c30-0x1c3f,0x1c20-0x1c2f 
irq 18 at device 31.5 on pci0

atapci1: [ITHREAD]
ata2: ATA channel 0 on atapci1
ata2: [ITHREAD]
ata3: ATA channel 1 on atapci1
ata3: [ITHREAD]
[...]
ad0: 953869MB SAMSUNG HD103UJ 1AA01113 at ata0-master SATA300
ad1: 953869MB SAMSUNG HD103UJ 1AA01113 at ata0-slave SATA300
ad2: 953869MB SAMSUNG HD103UJ 1AA01113 at ata1-master SATA300
ad3: 953869MB SAMSUNG HD103UJ 1AA01113 at ata1-slave SATA300
da0 at umass-sim0 bus 0 target 0 lun 0
da0: USB 2.0 Flash Disk 1100 Removable Direct Access SCSI-0 device
da0: 40.000MB/s transfers
da0: 7936MB (16252928 512 byte sectors: 255H 63S/T 1011C)
acd0: DVDR HL-DT-ST DVD-RAM GH15L/FA01 at ata2-master SATA150


The motherboard has 6x SATA ports, 2 are marked for optical/removable  
drives and 4 are for HDDs.

System is booted from USB flash disk.
It is first time I see SATA devices attached as Master  Slave on same  
ATA channel, 

Re: Script-friendly (parseble) ps(1) output?

2008-10-31 Thread Eduardo Meyer
On Fri, Oct 31, 2008 at 8:03 AM, Oliver Fromme [EMAIL PROTECTED] wrote:
 Eduardo Meyer wrote:
   Now my next problem, do the sabe with sockstat

 I think in earlier days sockstat was just a script that
 merged the output from netstat and fstat (or maybe some
 third tool, too, I don't remember).  So, you might try
 to use netstat and fstat instead.  Of course it depends
 on what information you exactly need from the sockstat
 output (if not all of it).

 Best regards
   Oliver

Right, I can potentially find the sabe information with netstat. I
will check if it can be safely parsed. Thank you.



 --
 Oliver Fromme, secnetix GmbH  Co. KG, Marktplatz 29, 85567 Grafing b. M.
 Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
 secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
 chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

 FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

 If you aim the gun at your foot and pull the trigger, it's
 UNIX's job to ensure reliable delivery of the bullet to
 where you aimed the gun (in this case, Mr. Foot).
-- Terry Lambert, FreeBSD-hackers mailing list.




-- 
===
Eduardo Meyer
pessoal: [EMAIL PROTECTED]
profissional: [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: ICH7M limited to SATA-150?

2008-10-31 Thread Søren Schmidt

I'll look into it

-Søren
--

On 31/10/2008, at 00.00, Michael Butler [EMAIL PROTECTED]  
wrote:



Jeremy Chadwick wrote:


On Thu, Oct 30, 2008 at 01:47:48PM -0700, Xin LI wrote:
Personally I don't really think ICH7M is capable to do SATA-300.   
Intel

datasheet 307013, page 191 says:

 Supported  Supported
3 Gb/s Transfer Rate
   (Desktop Only) (Desktop Only)

My understanding is that ICH7- *M* does not support SATA-300 at all.


Xin Li is correct -- the mobile version doesn't do SATA300.


Then there is a correction required to /sys/dev/ata/ata_chipset.c -  
mine

identifies itself as:

[EMAIL PROTECTED]:0:31:2:class=0x010180 card=0xff101179 chip=0x27c48086
rev=0x02 hdr=0x00
  vendor = 'Intel Corporation'
  device = '82801GBM/GHM (ICH7-M Family) Serial ATA Storage
Controller'
  class  = mass storage
  subclass   = ATA

.. where 0x27c4 is legacy mode and 0x27c5 is AHCI mode,

  Michael



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


Re: ZFS

2008-10-31 Thread Lorenzo Perone


Thanx a lot for sharing :)

OK guys that sort of gives some courage to dare a next experiment.
I've got one host which has one AMP application and a mailserver
running, which I'd like to set up with live zfs goodness (I know that
customer would kiss me for having a snapshot history of the mail
accounts...), and your posts give me the spark to try this one out.
It's nothing high-volume, so summing up Freddies and Your post
makes me hope this one won't deadlock too soon.

anyway It's a DELL PE 1950 wirth enough ram and, most of all, a
DRAC so I can powercycle that one remotely if it does the dance :-

Hope to have good news to report after a few weeks of
zfs-entertainment...

Thanx a lot and regards...

Lorenzo

On 31.10.2008, at 03:15, Louis Kowolowski wrote:


On Oct 30, 2008, at 2:55 PM, Lorenzo Perone wrote:

On 22.10.2008, at 17:38, Freddie Cash wrote:
Personally, we use it in production for a remote backup box using  
ZFS and
Rsync (64-bit FreeBSD 7-Stable from August, 2x dual-core Opteron  
2200s, 8

GB DDR2 RAM, 24x 500 GB SATA disks attached to two 3Ware 9650/9550
controllers as single-disks).  Works beautifully, backing up 80  
FreeBSD
and Debian Linux servers every night, creating snapshots with each  
run.
Restoring files from an arbitrary day is as simple as navigating  
to the
needed .zfs/snapshot/snapname/path/ and scping the file to  
wherever.
And full system restores are as simple as boot livecd, partition/ 
format

disks, run rsync.



So your system doesn't suffer panics and/or deadlocks, or you just
cope with them as collateral damage (which, admitted, is less of
a problem with a logging fs)?

If that's the case, would you share the details about what you're  
using

on that machine (RELENG_7?, 7_0? HEAD?) and which patches
/knobs You used? I have a similar setup on a host which
backs up way fewer machines and locks up every... 3-9 weeks or so.
That host only has about 2GB ram though.


I have a system which is sort of similar in production at work.
I have the following tunables (for ZFS) set:
zfs_load=YES
vm.kmem_size_max=1024M
vm.kmem_size=1024M
vfs.zfs.arc_min=16M
vfs.zfs.arc_max=384M

[EMAIL PROTECTED] lkowolowski 76 ]$ uname -a
FreeBSD release.pgp.com 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0:  
Wed Sep  3 12:18:57 PDT 2008 [EMAIL PROTECTED]:/usr/obj/usr/ 
src/sys/GENERIC  amd64

[EMAIL PROTECTED] lkowolowski 77 ]$

This box has 2G of RAM, and 8.5T in ZFS spread across 8 RAID1  
mirrors in an EonStore Fiber array (direct attach).


It's been rock solid and stores all of our build collateral.

--
Louis Kowolowski[EMAIL PROTECTED]
Cryptomonkeys:  http://www.cryptomonkeys.com/~louisk

Making life more interesting for people since 1977

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any 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: Re: ZFS

2008-10-31 Thread Arnaud Houdelette

Louis Kowolowski a écrit :
div class=moz-text-flowed style=font-family: -moz-fixedOn Oct 
30, 2008, at 2:55 PM, Lorenzo Perone wrote:

On 22.10.2008, at 17:38, Freddie Cash wrote:
Personally, we use it in production for a remote backup box using 
ZFS and
Rsync (64-bit FreeBSD 7-Stable from August, 2x dual-core Opteron 
2200s, 8

GB DDR2 RAM, 24x 500 GB SATA disks attached to two 3Ware 9650/9550
controllers as single-disks).  Works beautifully, backing up 80 FreeBSD
and Debian Linux servers every night, creating snapshots with each run.
Restoring files from an arbitrary day is as simple as navigating to the
needed .zfs/snapshot/snapname/path/ and scping the file to 
wherever.
And full system restores are as simple as boot livecd, 
partition/format

disks, run rsync.



So your system doesn't suffer panics and/or deadlocks, or you just
cope with them as collateral damage (which, admitted, is less of
a problem with a logging fs)?

If that's the case, would you share the details about what you're using
on that machine (RELENG_7?, 7_0? HEAD?) and which patches
/knobs You used? I have a similar setup on a host which
backs up way fewer machines and locks up every... 3-9 weeks or so.
That host only has about 2GB ram though.


I have a system which is sort of similar in production at work.
I have the following tunables (for ZFS) set:
zfs_load=YES
vm.kmem_size_max=1024M
vm.kmem_size=1024M
vfs.zfs.arc_min=16M
vfs.zfs.arc_max=384M

[EMAIL PROTECTED] lkowolowski 76 ]$ uname -a
FreeBSD release.pgp.com 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Wed 
Sep  3 12:18:57 PDT 2008 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  amd64

[EMAIL PROTECTED] lkowolowski 77 ]$

This box has 2G of RAM, and 8.5T in ZFS spread across 8 RAID1 mirrors 
in an EonStore Fiber array (direct attach).


It's been rock solid and stores all of our build collateral.

--
Louis Kowolowski[EMAIL PROTECTED]
Cryptomonkeys:  http://www.cryptomonkeys.com/~louisk

Making life more interesting for people since 1977



I use ZFS since 7.0-RELEASE. I'm currently using latest stable.
Ok the load is not as a production one, as the box is used as a home 
server (NAS), but the hardware is limited too (only 512MB of RAM, 
mono-core A64 3200+, motherborad integrated sata controler).
I tried to stress the filesystem a bit with multiple simultaneous 
rsyncs. No glitches. The only failures was when swap was on a zvol 
instead of the system drive. Even with more ram, it regularely ended in 
panics or deadlocks (most of the time, deadlocks) under high load.


Not sure of anything here, but you might want to try with non-zfs swap - 
on another drive(s) or dedicated slices ?


Arnaud Houdelette

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


Re: ZFS

2008-10-31 Thread Lorenzo Perone

I use ZFS since 7.0-RELEASE. I'm currently using latest stable.
Ok the load is not as a production one, as the box is used as a home  
server (NAS), but the hardware is limited too (only 512MB of RAM,  
mono-core A64 3200+, motherborad integrated sata controler).
I tried to stress the filesystem a bit with multiple simultaneous  
rsyncs. No glitches. The only failures was when swap was on a zvol  
instead of the system drive. Even with more ram, it regularely ended  
in panics or deadlocks (most of the time, deadlocks) under high  
load.


Not sure of anything here, but you might want to try with non-zfs  
swap - on another drive(s) or dedicated slices ?


Yep, I think I'm going to use a separate slice
for the pool, mounting into the respective jails
only the needed filesystems:

mypool/mail into /jails/mail/maildataroot
mypool/db into /jails/web/mysql-bup-slave

(or sort of)

and then use frequent snapshots for mypool/mail
(even hourly or so), and for the database,
a few times per day mysql-backup-slave.sh stop,
zfs snapshot mypool/db, mysql-backup-slave.sh start..

the mysql slave snapshotting is really a goodness
which I've used on a SunOS with zfs and really
rocks. So I never shutdown the master, the slave
goes down only a few seconds, and the database
filesystem is consistent and synced.

In the current case, I think it is not only a feature
but also a must: _If_ the host deadlocks and
mysql fails to sync, at least I have a working
snapshot of the data. I wouldn't put the master itself
on zfs for now, but if all goes well for a while,
why not.

BTW: while sync does not work anymore in a deadlock situation,
I've seen that fsync mostly still does.
So something like find /var/db/mysql -type f -exec fsync {} \;
can save your files if the db is running on UFS..

Thanx  Regards!


Lorenzo


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


CPU utilization calculation broken with SCHED_ULE and dummynet

2008-10-31 Thread Stefan Ehmann
Already posted this earlier this month and filed as kern/128177.

Short summary: top/ps displays 0% instead of 100% CPU usage for CPU-intensive 
processes. single-threaded process on single-CPU i386 machine.

I think this also negatively effects scheduling decisions but haven't found a 
good way to test this.


I did some more investigations today:

The problem only occurs when the dummynet module is loaded. If I unload the 
module everything seems fine. It's enough if the module is loaded, no rules 
involving dummynet are needed.

If I revert 1.214.2.7 (SVN rev 183294) the problem is gone.

Already noted earlier:
I don't see the problem in CURRENT on the same machine. This might be due to 
different configurations though.

If I run the process with idletime priority, I don't see the problem either.

SCHED_4BSD is not affected.


Hope these findings help fixing the problem.

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


Re: Script-friendly (parseble) ps(1) output?

2008-10-31 Thread Peter
Hello,

I need to write a cgi script which will print the output from ps(1) in
a table (html), so the average-operator can click on a KILL link and
the cgi will send the selected signal.

I need to add one ps information per column in a table (html),
however, I found ps(1) output to be too hard to parse. There is no
separator. I believed \t was the separator but its not.

The ps(1) command I need to use is:

ps -ax -o pid -o user -o emul -o lstart -o lockname -o stat -o command

Since many of those args use [:space:] in the output, I can not use
[:space:] as a separator.
Sadly, `-o fiend='value'` will only format the HEADER output, not the
values.

Ive got no clue what to do, can someone enlight me?

Thank you all in advance.

-- 
===
Eduardo Meyer
pessoal: [EMAIL PROTECTED]
profissional: [EMAIL PROTECTED]


Here is something simple, and you can wrap the HTML around it...;

poshta:$ps axuww | while read USER PID CPU MEM VSZ RSS TT STAT STARTED
TIME COMMAND; do echo $PID $CPU $USER $COMMAND;done |head -3
PID %CPU USER COMMAND
11 89.6 root [idle]
5127 2.9 qscand spamd child (perl5.8.8)

the read ignores all white space...the last variable in that 'while read' 
will hold everything beyond it...
ie;
poshta:$ps axuww| while read USER PID CPU MEM VSZ RSS TT STAT STARTED
TIME; do echo $PID $CPU $USER $TIME;done |head -3
PID %CPU USER TIME COMMAND
11 77.9 root 138080:11.91 [idle]
13607 5.0 qscand 0:09.12 spamd child (perl5.8.8)

etc.etc...


]Peter[

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


Re: LevelOne WPC-0301 11g Wireless CardBus

2008-10-31 Thread Oliver Fromme
Jan Henrik Sylvester wrote:
  Oliver wrote:
   I bought a LevelOne WPC-0301 11g Wireless CardBus Adapter
   today.  According to the box it is v6.  The ral(4) man-
   page mentions only v2, but that one is ancient and can't
   be bought anymore.
  
  I do not know about the WPC-0301, but I since I bought a wrong WNC-0301 
  (PCI version), I did some research looking at the IDs and additionally 
  Windows drivers: v.1 is Marvel, v.2 is the old Ralink, v.3 is the never 
  Ralink, and v.5  (and v.6?) is RealTek. (v.4 does not have a Windows 
  driver at the LevelOne homepage.)
  
  BTW: I did summit this info to http://linux-wless.passys.nl/ -- it is a 
  pretty good overview, especially if you want to check which vendors 
  switch chipset manufacturers from one revision to the next.
  
  My guess would be that you are out of luck, if it is not detected at 
  7-STABLE. Look at the sys files in the Windows driver, if there is one. 
  Of course, you can try ndis, but I would not go for it.
  
  If you shop for a card, most of the 108Mbps are Atheros, which works 
  better than Ralink in my experience. Since you are from Germany, too: 
  geizhals.at lists TP-Link TL-WN610G for less than 15 Euros, which has an 
  Atheros chipset according to the site I mentioned above. If you are 
  looking on Ebay, I can really recommend Philips SNN6500, which does 
  a/b/g and the proprietary Atheros stuff (TURBOP, BURST).

Thank you for the comments and the URL!

Fortunately, the guy at the shop (*) took the card back
without asking any questions and replaced it with an
Atheros-based 108Mbps card (LeveOne WPC-0300).

This card seems to work.  I haven't tried to connect to
an actual AP yet (will do that on my next trip), but at
least the card is detected when plugged in and attaches
as ath0, and list scan returns some output (probably
the APs from neighbors).

However, a simple ifconfig ath0 scan never terninates.
I have to press ^C.  Is this normal?

Also, my X session froze after the card was plugged in
for about 20 minutes (but it was not in use, i.e. not
connected to an AP).  Removing the card solved it.
I hope this was just an accidental hiccup.

Best regards
   Oliver

(*)  For anybody near Munich, I can recommend the shop
NB Computer (Schillerstr. near Hbf).  Friendly people
and good prices.  (I'm not in any way associated with
them nor benefit from recommending them.  Just a happy
customer.)

-- 
Oliver Fromme, secnetix GmbH  Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

FreeBSD is Yoda, Linux is Luke Skywalker
-- Daniel C. Sobral
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: LevelOne WPC-0301 11g Wireless CardBus

2008-10-31 Thread Paul B. Mahol
On 10/31/08, Oliver Fromme [EMAIL PROTECTED] wrote:
 However, a simple ifconfig ath0 scan never terninates.
 I have to press ^C.  Is this normal?

FYI, if you set card to manual roaming, that simple command will work.
In other scenarios ifconfig ath0 list scan works.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]