[SOLVED] how to remove usb-storage devices without CAM errors

2013-08-12 Thread Michael Schuh
2013/8/8 Michael Schuh michael.sc...@gmail.com

 H i@list,

 i have a simple wuestion caused by a device loss.

 is there a special routine for unplugging usb-storage devices?
 in the meaning:
 may be settle some commends before unplugging the device
 other than umount.
 according to the handbook there ist no special routine.
 unmounting should be enough and pull the USB-Devie out of the bus.

 i could not find anything related by the help of the big oracle.


 i have some usb-sticks that i need to write with prepared disk-images by
 using dd.
 two or more drives are already plugged in
 and da0 is already finished, da1 or da2 still at writing.
 unplugging da0 causes a CAM error and interrupts the ongoing write.
 i am not sure if all writes to each different device gets stopped.
 this is a reproduceable behaviour thats new to me.
 see the listing below.

 let me know if i can and what to do to help to further identify
 and investigate this error.

 iirc this happens for the first time this way.
 my last upgrade before this was feb./march.
 time of svn checkout was 2013-07-22 so its may be already fixed?

 many thanks in advance

 regards

 michael

 ===

 ugen3.2: Verbatim at usbus3
 umass0: Verbatim STORE N GO, class 0/0, rev 2.10/1.10, addr 2 on usbus3
 umass0:  SCSI over Bulk-Only; quirks = 0x0100
 umass0:8:0:-1: Attached to scbus8
 da0 at umass-sim0 bus 0 scbus8 target 0 lun 0
 da0: Verbatim STORE N GO PMAP Removable Direct Access SCSI-6 device
 da0: 40.000MB/s transfers
 da0: 7385MB (15124992 512 byte sectors: 255H 63S/T 941C)
 da0: quirks=0x2NO_6_BYTE
 ugen7.2: Verbatim at usbus7
 umass1: Verbatim STORE N GO, class 0/0, rev 2.10/1.10, addr 2 on usbus7
 umass1:  SCSI over Bulk-Only; quirks = 0x0100
 umass1:9:1:-1: Attached to scbus9
 da1 at umass-sim1 bus 1 scbus9 target 0 lun 0
 da1: Verbatim STORE N GO PMAP Removable Direct Access SCSI-6 device
 da1: 40.000MB/s transfers
 da1: 7385MB (15124992 512 byte sectors: 255H 63S/T 941C)
 da1: quirks=0x2NO_6_BYTE
 (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 02 44 80 00 00 80 00
 ugen3.2: Verbatim at usbus3 (disconnected)
 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
 umass0: (da0:at uhub3, port 3, addr 2 (disconnected)
 umass-sim0:0:0:0): Retrying command
 (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 02 44 80 00 00 80 00
 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
 (da0:umass-sim0:0:0:0): Retrying command
 (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 02 44 80 00 00 80 00
 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
 (da0:umass-sim0:0:0:0): Error 5, Retries exhausted
 (da0:umass-sim0:0:0:0): SYNCHRONIZE CACHE(10). CDB: 35 00 00 00 00 00 00
 00 00 00
 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
 (da0:umass-sim0:0:0:0): Retrying command
 (da0:umass-sim0:0:0:0): SYNCHRONIZE CACHE(10). CDB: 35 00 00 00 00 00 00
 00 00 00
 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
 (da0:umass-sim0:0:0:0): Error 5, Retries exhausted
 (da0:umass-sim0:0:0:0): got CAM status 0x44
 (da0:umass-sim0:0:0:0): fatal error, failed to attach to device
 (da0:umass-sim0:0:0:0): lost device - 0 outstanding, 5 refs
 (da0:umass-sim0:0:0:0): removing device entry




Hi again,

the error is gone after a new update from svn.

many thanks.

greetings

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


Re: how to remove usb-storage devices without CAM errors

2013-08-08 Thread Michael Schuh
2013/8/8 Alban Hertroys haram...@gmail.com

 On 8 August 2013 05:56, Michael Schuh michael.sc...@gmail.com wrote:

 ugen3.2: Verbatim at usbus3
 umass0: Verbatim STORE N GO, class 0/0, rev 2.10/1.10, addr 2 on usbus3
 umass0:  SCSI over Bulk-Only; quirks = 0x0100
 umass0:8:0:-1: Attached to scbus8
 da0 at umass-sim0 bus 0 scbus8 target 0 lun 0
 da0: Verbatim STORE N GO PMAP Removable Direct Access SCSI-6 device
 da0: 40.000MB/s transfers
 da0: 7385MB (15124992 512 byte sectors: 255H 63S/T 941C)
 da0: quirks=0x2NO_6_BYTE



 ugen7.2: Verbatim at usbus7
 umass1: Verbatim STORE N GO, class 0/0, rev 2.10/1.10, addr 2 on usbus7
 umass1:  SCSI over Bulk-Only; quirks = 0x0100
 umass1:9:1:-1: Attached to scbus9
 da1 at umass-sim1 bus 1 scbus9 target 0 lun 0
 da1: Verbatim STORE N GO PMAP Removable Direct Access SCSI-6 device
 da1: 40.000MB/s transfers
 da1: 7385MB (15124992 512 byte sectors: 255H 63S/T 941C)
 da1: quirks=0x2NO_6_BYTE



 (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 02 44 80 00 00 80 00
 ugen3.2: Verbatim at usbus3 (disconnected)
 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
 umass0: (da0:at uhub3, port 3, addr 2 (disconnected)
 umass-sim0:0:0:0): Retrying command
 (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 02 44 80 00 00 80 00
 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
 (da0:umass-sim0:0:0:0): Retrying command


 I'm mostly guessing, but what I suspect that happens is that after you
 successfully remove da0, the former da1 becomes da0 and any operations on
 da1 (or da2 that now became da1) get aborted.

 That you just happen to have exactly identical USB sticks in this case
 does not help diagnosing whether that's the case though.

 I'm really hoping this isn't actually what happens here, but it would
 explain what you're seeing.

 No. That is not a valid explanation.
This happens too if i change the order of the USB-Sticks and pull
da2 or da1 instead of da0.
The log snippet is exactly from the try and error of your thought.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


how to remove usb-storage devices without CAM errors

2013-08-07 Thread Michael Schuh
H i@list,

i have a simple wuestion caused by a device loss.

is there a special routine for unplugging usb-storage devices?
in the meaning:
may be settle some commends before unplugging the device
other than umount.
according to the handbook there ist no special routine.
unmounting should be enough and pull the USB-Devie out of the bus.

i could not find anything related by the help of the big oracle.


i have some usb-sticks that i need to write with prepared disk-images by
using dd.
two or more drives are already plugged in
and da0 is already finished, da1 or da2 still at writing.
unplugging da0 causes a CAM error and interrupts the ongoing write.
i am not sure if all writes to each different device gets stopped.
this is a reproduceable behaviour thats new to me.
see the listing below.

let me know if i can and what to do to help to further identify
and investigate this error.

iirc this happens for the first time this way.
my last upgrade before this was feb./march.
time of svn checkout was 2013-07-22 so its may be already fixed?

many thanks in advance

regards

michael

===

ugen3.2: Verbatim at usbus3
umass0: Verbatim STORE N GO, class 0/0, rev 2.10/1.10, addr 2 on usbus3
umass0:  SCSI over Bulk-Only; quirks = 0x0100
umass0:8:0:-1: Attached to scbus8
da0 at umass-sim0 bus 0 scbus8 target 0 lun 0
da0: Verbatim STORE N GO PMAP Removable Direct Access SCSI-6 device
da0: 40.000MB/s transfers
da0: 7385MB (15124992 512 byte sectors: 255H 63S/T 941C)
da0: quirks=0x2NO_6_BYTE
ugen7.2: Verbatim at usbus7
umass1: Verbatim STORE N GO, class 0/0, rev 2.10/1.10, addr 2 on usbus7
umass1:  SCSI over Bulk-Only; quirks = 0x0100
umass1:9:1:-1: Attached to scbus9
da1 at umass-sim1 bus 1 scbus9 target 0 lun 0
da1: Verbatim STORE N GO PMAP Removable Direct Access SCSI-6 device
da1: 40.000MB/s transfers
da1: 7385MB (15124992 512 byte sectors: 255H 63S/T 941C)
da1: quirks=0x2NO_6_BYTE
(da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 02 44 80 00 00 80 00
ugen3.2: Verbatim at usbus3 (disconnected)
(da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
umass0: (da0:at uhub3, port 3, addr 2 (disconnected)
umass-sim0:0:0:0): Retrying command
(da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 02 44 80 00 00 80 00
(da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(da0:umass-sim0:0:0:0): Retrying command
(da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 02 44 80 00 00 80 00
(da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(da0:umass-sim0:0:0:0): Error 5, Retries exhausted
(da0:umass-sim0:0:0:0): SYNCHRONIZE CACHE(10). CDB: 35 00 00 00 00 00 00 00
00 00
(da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(da0:umass-sim0:0:0:0): Retrying command
(da0:umass-sim0:0:0:0): SYNCHRONIZE CACHE(10). CDB: 35 00 00 00 00 00 00 00
00 00
(da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(da0:umass-sim0:0:0:0): Error 5, Retries exhausted
(da0:umass-sim0:0:0:0): got CAM status 0x44
(da0:umass-sim0:0:0:0): fatal error, failed to attach to device
(da0:umass-sim0:0:0:0): lost device - 0 outstanding, 5 refs
(da0:umass-sim0:0:0:0): removing device entry
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: battery state - hw.acpi.battery.life goes only down

2012-09-25 Thread Michael Schuh
2012/9/26 Brandon Allbery allber...@gmail.com

 On Tue, Sep 25, 2012 at 7:43 PM, Michael Schuh michael.sc...@gmail.comwrote:

 this wrong number seems persistent during a reboot.
 i tested this, shortly.
 the battery life after reboot was 97% with power supply plugged in all the
 times.

 after a clean boot the system camed up with a battery.life of 97% ( power
 supply plugged in :O ).


 Sounds like normal lithium ion charger behavior to me; typically they
 won't kick in the charger until it reaches somewhere between 90-95%
 (depends on the device).  This extends the useful life of the battery; raw
 lithium ion is just as (actually, more) prone to destruction via
 overcharging as other battery technologies.

 http://batteryuniversity.com/learn/article/charging_lithium_ion_batteriesdiscusses
  this.  Note in particular:  A continuous trickle charge would
 cause plating of metallic lithium, and this could compromise safety.

 --
 brandon s allbery  allber...@gmail.com
 wandering unix systems administrator (available) (412) 475-9364 vm/sms

 hmm, may be.
i didn't thinked about that lithium charging feature.
you may right with that.
but one point, this behaviour is new.
i made some tests to check if my conkyrc is right and there i haven't wait
that the battery is gone under 90%
for checking this. after i could confirm that the conkyrc is syntactically
correct, the battery reached 100% again.
that was before i updated the system last week.

i will check that out. under the load of a make world it should only take
minutes to get the battery.life under 80%.

many thanks for your hint.

-- 
= = =  http://michael-schuh.net/  = = =
Projektmanagement - IT-Consulting - Professional Services IT
Michael Schuh
Postfach 10 21 52
66021 Saarbrücken
phone: 0681/8319664
mobil:  0175/5616453
@: m i c h a e l . s c h u h @ g m a i l . c o m

= = =  Ust-ID:  DE251072318  = = =
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


[SOLVED] Re: battery state - hw.acpi.battery.life goes only down

2012-09-25 Thread Michael Schuh
sorry for the buzz...

2012/9/26 Brandon Allbery allber...@gmail.com

 On Tue, Sep 25, 2012 at 8:10 PM, Michael Schuh michael.sc...@gmail.comwrote:

 hmm, may be.
 i didn't thinked about that lithium charging feature.
 you may right with that.



Yes you are right with that point.

I have watched batteries cycle like that on OS X, Linux, and FreeBSD, and
 some versions of Windows; possibly more recent versions try to hide it.
  It's also possible the ACPI BIOS normally hides it but needs some
 recalibration step (on Macs, for example, you need to fully charge then
 fully discharge then fully charge again to recalibrate it; I think that's
 common).


Yesi agree, this is the most logic explanation in our fantastic world.




 but one point, this behaviour is new.
 i made some tests to check if my conkyrc is right and there i haven't
 wait that the battery is gone under 90%
 for checking this. after i could confirm that the conkyrc is
 syntactically correct, the battery reached 100% again.


 That sounds like it is normal cycling then.


No idea why that box didn't showed that behaviour earlier.
i am fully sure that i made the same tests before and the charger did jump
in much time earlier.
may be, i was a bit impatient for now.


many thanks again.

cheers

m.



 --
 brandon s allbery  allber...@gmail.com
 wandering unix systems administrator (available) (412) 475-9364 vm/sms




-- 
= = =  http://michael-schuh.net/  = = =
Projektmanagement - IT-Consulting - Professional Services IT
Michael Schuh
Postfach 10 21 52
66021 Saarbrücken
phone: 0681/8319664
mobil:  0175/5616453
@: m i c h a e l . s c h u h @ g m a i l . c o m

= = =  Ust-ID:  DE251072318  = = =
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: www.freebsd.org

2010-08-12 Thread Michael Schuh
hi jhell,

forget about that i have clicked on commands where are to search on solaris.
i know that and i know these commands from solaris.

the FreeBSD's webserver was off ( not reacheable for a time ) after my
clicks and that was the problem,
not that these commands nor man pages wasn't been there. ;-)

thanks for your try to help.

greetings

michael

2010/8/12 jhell jh...@dataix.net:
 On 08/11/2010 09:30, Michael Schuh wrote:
 Hi again,

 up and running again.
 many thanks.

 greetings
 michael

 2010/8/11 Michael Schuh michael.sc...@gmail.com:
 Hi@ list

 either i shoot the www.freebsd.org webserver in the head or he is still down
 for other reasons.
 What i have done before:

 look through the man pages online.
 open the manpage for ZFS
 then at the end of that manpage clicked on sharemgr(4)
 http://www.freebsd.org/cgi/man.cgi?query=sharemgrsektion=1Mapropos=0manpath=FreeBSD+8.1-RELEASE

 and after that no answer on requests.
 so i guess there will be a problem with man.cgi

 i have no idea who is responsible for that, if somebody
 know it and reads this please forward it to the responsible person.
 asap because www.freebsd.org isnt reacheable from here.

 many thanks

 greetings

 michael

 --
 = = =  http://michael-schuh.net/  = = =
 Projektmanagement - IT-Consulting - Professional Services IT
 Michael Schuh
 Postfach 10 21 52
 66021 Saarbrücken
 phone: 0681/8319664
 mobil:  0175/5616453
 @: m i c h a e l . s c h u h @ g m a i l . c o m

 = = =  Ust-ID:  DE251072318  = = =



 When browsing through the manual pages for ZFS keep in mind that not all
 of the options utils or even manual pages are available on FreeBSD.
 Specifically sharemgr(1M) share(1M) unshare(1M) zonecfg(1M) dfstab(4)
 attributes(5) are not part of FreeBSD as of this moment. These can be
 better referred to as Sun/*Solaris specific commands and utilities.


 Regards,

 --

  jhell,v





-- 
= = =  http://michael-schuh.net/  = = =
Projektmanagement - IT-Consulting - Professional Services IT
Michael Schuh
Postfach 10 21 52
66021 Saarbrücken
phone: 0681/8319664
mobil:  0175/5616453
@: m i c h a e l . s c h u h @ g m a i l . c o m

= = =  Ust-ID:  DE251072318  = = =
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: www.freebsd.org

2010-08-11 Thread Michael Schuh
Hi again,

up and running again.
many thanks.

greetings
michael

2010/8/11 Michael Schuh michael.sc...@gmail.com:
 Hi@ list

 either i shoot the www.freebsd.org webserver in the head or he is still down
 for other reasons.
 What i have done before:

 look through the man pages online.
 open the manpage for ZFS
 then at the end of that manpage clicked on sharemgr(4)
 http://www.freebsd.org/cgi/man.cgi?query=sharemgrsektion=1Mapropos=0manpath=FreeBSD+8.1-RELEASE

 and after that no answer on requests.
 so i guess there will be a problem with man.cgi

 i have no idea who is responsible for that, if somebody
 know it and reads this please forward it to the responsible person.
 asap because www.freebsd.org isnt reacheable from here.

 many thanks

 greetings

 michael

 --
 = = =  http://michael-schuh.net/  = = =
 Projektmanagement - IT-Consulting - Professional Services IT
 Michael Schuh
 Postfach 10 21 52
 66021 Saarbrücken
 phone: 0681/8319664
 mobil:  0175/5616453
 @: m i c h a e l . s c h u h @ g m a i l . c o m

 = = =  Ust-ID:  DE251072318  = = =




-- 
= = =  http://michael-schuh.net/  = = =
Projektmanagement - IT-Consulting - Professional Services IT
Michael Schuh
Postfach 10 21 52
66021 Saarbrücken
phone: 0681/8319664
mobil:  0175/5616453
@: m i c h a e l . s c h u h @ g m a i l . c o m

= = =  Ust-ID:  DE251072318  = = =
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


www.freebsd.org

2010-08-11 Thread Michael Schuh
Hi@ list

either i shoot the www.freebsd.org webserver in the head or he is still down
for other reasons.
What i have done before:

look through the man pages online.
open the manpage for ZFS
then at the end of that manpage clicked on sharemgr(4)
http://www.freebsd.org/cgi/man.cgi?query=sharemgrsektion=1Mapropos=0manpath=FreeBSD+8.1-RELEASE

and after that no answer on requests.
so i guess there will be a problem with man.cgi

i have no idea who is responsible for that, if somebody
know it and reads this please forward it to the responsible person.
asap because www.freebsd.org isnt reacheable from here.

many thanks

greetings

michael

-- 
= = =  http://michael-schuh.net/  = = =
Projektmanagement - IT-Consulting - Professional Services IT
Michael Schuh
Postfach 10 21 52
66021 Saarbrücken
phone: 0681/8319664
mobil:  0175/5616453
@: m i c h a e l . s c h u h @ g m a i l . c o m

= = =  Ust-ID:  DE251072318  = = =
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


coretemp(4) causes System to stall

2008-01-22 Thread Michael Schuh
Hi @List,

i have tryed out the new coretemp driver for Intel Core CPU's
my cpu is an T2400 Intel Core (w/o Duo).
i have csup'ed the stable build from cvsup.uk.freebsd.org at this night.
then built the entire system via sources ( with ULE-Scheduler, might
this causes the stall?)
then load the coretemp.ko with kldload and try to quest the temperature with
sysctl -a|grep temperature
after this, i put coretemp_load=YES to my /boot/loader.conf
up to this point all things are very good ( and the new release seems
to me faster then 6.2)
now with an new buildworld with
cd /usr/src; make -j 8 buildworld  ~/fbsd/mw.out 
and in another xterm a sysctl -a |grep temp causes
the system stalls. this error ist reproducable many times.

now i have tryed the sysctl -a|grep temp during an buildworld w/o
the coretemp module loaded and the system runs stable.

i hope this informations help to fix.

regards

michael


-- 
=== m i c h a e l - s c h u h . n e t ===
Michael Schuh
Postfach 10 21 52
66021 Saarbrücken
phone: 0681/8319664
mobil:  0177/9738644
@: m i c h a e l . s c h u h @ g m a i l . c o m

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


Re: Upgrading to amd64 requires recompilation of ports?

2007-06-17 Thread Michael Schuh

Hi,

i have another Way that might be good, also for remote
take over.

You know Colin's depenguinator?
I have made my own new depenguinator, that could install
a complete base-system by building it on another box.

Anyone interested? I have written an Howto, that is at the time
not online.

cheers

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


Re: mysql frequently crash on 6.2

2007-05-17 Thread Michael Schuh

Hello Albert,
Hello @list,

first, i be a native german speaker, so please excuse my ugly english.

Greetings everyone... I am observing what appears to be a similar problem as

well...

I have a dedicated server with *very* light traffic. It looks like every
day
or so my server load slowly climbs from 0.20 to 14.00 and then stays there
indefinitely locking down the system [until I do an apachectl
restart]
after which the server load drops back down.

I'm not getting any weird Fatal Errors from PHP or any Warnings [though a
lot of PHP Notices.]. The apache httpd_error.log shows the following
error,
usually, when the slow climb to 14.00 server load begins:

httpd in free(): error: recursive call
httpd in free(): error: recursive call

[Usually it only shows about three or four of these repeated errors.]


--8---snip---8---
I have experiences with an similar Problem with apache in combination
with php4 and it's modules. If you have the wrong modules / order of modules
in
the extensions.ini so that apache disappears with segfault ( my be signal 6
or 11 ) if you try an reload.

hope this helps a little bit.

greetings

michael
--
=== michael-schuh.net ===
Michael Schuh
Preußenstr. 13
66111 Saarbrücken
phone: 0681/8319664
mobil:   0177/9738644
@: [EMAIL PROTECTED]

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


Changing Console Resolution - Vidcontrol

2007-04-05 Thread Michael Schuh

Hi,

first i understand your need's right! More Text on screen at boot time,
but i have never get this working at boot time, but directly after boot.

In my case my Kernels would be compiles with:
options SC_PIXEL_MODE

and in /boot/loader.conf
vesa_load=YES

and in /etc/rc.conf something like this:
keymap=german.iso
font8x16=iso15-8x16
font8x14=iso15-8x14
font8x8=iso15-8x8
allscreens_flag=MODE_280

In my case with german keyboard, change these things to
your needs.
The allscreens_flag you could get as mentoided in other answers with
vidcontrol -i mode, i remember that someone has tell you to use
MODE_279, but i doesn't know if this is the best case for all cards.

For a single test you can set the mode from one terminal (like ttyv0)
after logging in with
vidcontrol MODE_280
or that likes to your modes for your Graphiccard.

If anyone else knows how we can set the vid-mode at boot-time so that the
bootmessages are every time in such a mode tell me please how it
works. In the Kernel NOTEs i have only found a line like
options VGA_WIGTH90, but thi is not my desired resolution.

cheers

michael

--
=== michael-schuh.net ===
Michael Schuh
Preußenstr. 13
66111 Saarbrücken
phone: 0681/8319664
mobil:   0177/9738644
@: [EMAIL PROTECTED]

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


Re: Changing Console Resolution - Vidcontrol

2007-04-05 Thread Michael Schuh

Hi Kevin,
hi @list,

ok losing data in output is not really nice,
in my experiences i don't lose lines, they get
not displayed, if i use scroll-lock and pg-up, i can see the
lines they was on the screen before i change the mode.

If you need more lines in buffer (esp. to supress losing lines)
you can change the default (200 lines) in your kernels.
take a look at /usr/src/sys/conf/NOTES and
/usr/src/i386/conf/NOTES, search SC*BUFFER
but keep in mind this can make a slideshow like
teleporting on your console
:-D (remembers me to ego-shooters and jump'n'run games)

(only to be complete..) Yes i agree with they peoples that mentoid to using
X and/or ssh/xterms, but
i could understand the needs for getting more data and
less confusion on starting up the servers. Sometimes, proably in testing,
we sitting directly on the console(sometimes up on the box :-D) and we would
see whats going on on
boot time, so we can interrupt something more quickly.

And yes, i stay very close to those who say X or graphical UI
has nothing to search on a server, it uses some ressources they
are assigned to services.

cheers

michael

2007/4/6, Kevin Oberman [EMAIL PROTECTED]:


 Date: Thu, 5 Apr 2007 12:57:09 +0200
 From: Michael Schuh [EMAIL PROTECTED]
 Sender: [EMAIL PROTECTED]

 Hi,

 first i understand your need's right! More Text on screen at boot time,
 but i have never get this working at boot time, but directly after boot.

 In my case my Kernels would be compiles with:
 options SC_PIXEL_MODE

 and in /boot/loader.conf
 vesa_load=YES

 and in /etc/rc.conf something like this:
 keymap=german.iso
 font8x16=iso15-8x16
 font8x14=iso15-8x14
 font8x8=iso15-8x8
 allscreens_flag=MODE_280

 In my case with german keyboard, change these things to
 your needs.
 The allscreens_flag you could get as mentoided in other answers with
 vidcontrol -i mode, i remember that someone has tell you to use
 MODE_279, but i doesn't know if this is the best case for all cards.

 For a single test you can set the mode from one terminal (like ttyv0)
 after logging in with
 vidcontrol MODE_280
 or that likes to your modes for your Graphiccard.

 If anyone else knows how we can set the vid-mode at boot-time so that
the
 bootmessages are every time in such a mode tell me please how it
 works. In the Kernel NOTEs i have only found a line like
 options VGA_WIGTH90, but thi is not my desired resolution.

I used to do this, but I discovered that my scrollback buffer lost th
24 lines in the screen when the mode changes and I couldn't live with
that.

It would be nice to have the display at boot time, but, if I did not
lose data, I would be happy to have it from when it starts.

In any case, I figure that people who want X, will go with X. Some folks
still like a plain old command-line console. I use X, but I don't start
with xdm, kdm, or any other. I still like to see what is happening and
enter 'startx' when I am good and ready. Sometimes I am not ready for the
entire session. I don't always want all of X sitting between me and my
CLI.
--
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: [EMAIL PROTECTED]  Phone: +1 510 486-8634
Key fingerprint:059B 2DDF 031C 9BA3 14A4  EADA 927D EBB3 987B 3751





--
=== michael-schuh.net ===
Michael Schuh
Preußenstr. 13
66111 Saarbrücken
phone: 0681/8319664
mobil:   0177/9738644
@: [EMAIL PROTECTED]

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


Re: Changing Console Resolution - Vidcontrol

2007-04-05 Thread Michael Schuh

Hi Kevin,

yes you are right my systems also loses lines,
i believe that the mechanics in vidcontrol or in the kernels syscons
device are the sources of this behaviour
...because through the init ( blanks screen and set mode )..

About the buffer at this time I am not really sure, but in the kernel's
NOTES files it
is setted per default to 200. I think you are right with the scrollback
buffer that
was the thing that i mean.

you could have a slideshow or teleporting effect on some slow graphic
cards,
or on cards that not fully supports vesa while you scrolling through the
screens,
because if you use the vesa driver the output could be slower while having
more overhead..
...read also the postings in the stable-list ( I think from oliver
fromme)..

hmmm, if this behavior (losing lines) could not turned out by options
or configuring the mode directly after loading the vesa module,
I think it is a bug and we should enter it to the GNATS bugtracker

but first we call help in the list :-)

Could anyone, that is deeper in the woods, shed us some light
on this behavior and eventually a possible solution?

cheers

michael

--
=== michael-schuh.net ===
Michael Schuh
Preußenstr. 13
66111 Saarbrücken
phone: 0681/8319664
mobil:   0177/9738644
@: [EMAIL PROTECTED]

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


Re: another error with md malloc based fs

2007-03-23 Thread Michael Schuh

Hi Oliver,
Hi @list,

yes that's exatly what i have in my mind,
after the explainings from Chuck.

thanks very much

cheers

michael


2007/3/23, Oliver Fromme [EMAIL PROTECTED]:


Michael Schuh wrote:
 Chuck Swiger wrote:
  Michael Schuh wrote:
   i can't understand how malloc can eat all available
   memory, i have 2Gigs of it ;-)
   so it seems to me i know what i doing, if
   i have 1,6 Gigs free Memory, and i say ok get me 750Megs from
   my 1,6 Gigs of free Memory, what was faulty on that
 
  The two choices involve a swap-based RAMdisk, which can use all of
  the available physical RAM it needs to, since this memory is
  swappable, or a kernel-memory-based RAMdisk, which uses wired-down
  memory from within the kernel.

 Ok, so that is it harder to understand for me in the first time,
 if i understand it now right the swap or file based memory backend
 is also in the ram, but it get another way managed from kernels vm.
 the malloc based ramdisk get's not reallly managed by the kvm,
 but it underlays under the paging and swapping, and also
 ba the thread-killer there shot's thread down it it get's to much
 work for the system

 i hope i understand this right, it is important for me...

Let me try to explain it with a little different words.
The following is a bit simplified, but it should give
you an idea about the advantages and disadvantages of
each md disk type.

First of all, _both_ malloc and swap-backed md disks
are RAM disks.  You don't have to worry that a swap-backed
md disk will be created on your swap partiton.  It's not.
It will reside in RAM, just like a malloc md disk.

However, the difference is that a malloc md disk uses
memory from the KVM area (kernel virtual memory), which
is hardwired into the RAM.  It cannot be paged, and it
is taken from the kernel's own memory pool, which is
usually much smaller than your total available RAM.
It's taken from the same pool of RAM that's used for
network buffers, driver data and similar things.

On the other hand, swap-backed md disks use regular
memory, so to speak, just like a normal user process.
That also means that they are pageable, which means
that they can be paged to swap if necessary (if the
systems runs low on RAM).  That's what swap-backed
means.  Because of that, they don't have a size limit
(well, they shouldn't be bigger than your RAM + swap,
of course).  If there is enough RAM, then they will
stay completely in RAM and will _not_ touch your swap
at all.

For typical RAM disks, such as for /tmp, you should use
a swap-backed md disk (it should be the default).  The
malloc type should be used only for rather small,
special uses.

I hope it's now a little clearer.

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

[...]  one observation we can make here is that Python makes
an excellent pseudocoding language, with the wonderful attribute
that it can actually be executed.  --  Bruce Eckel





--
=== michael-schuh.net ===
Michael Schuh
Preußenstr. 13
66111 Saarbrücken
phone: 0681/8319664
mobil:   0177/9738644
@: [EMAIL PROTECTED]

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


another error with md malloc based fs

2007-03-22 Thread Michael Schuh

Hi,
first i have 2GB of RAM, there are be 1,6G free
so it should enough toi make the following:

# mdconfig -a -t mallo -s 750m -u 0
# bsdlabel -w /dev/md0
# bsdlabel -e /dev/md0 (create a slice to use all free respective first 16
blocks)
# newfs -O2 -U /dev/md0a
mount /dev/md0a /mnt
# cd to_a_place/with/650MB_of_data/
# tar -cf - |( cd /mnt/; tar -xf -)
after ~256MB transferred i get following errors, and the system crashes
horridble  first it doesnt react of anything, then it does silently
reboot
without a shutdown...leaves all unclean

extract from all.log
Mar 22 22:08:14 flying-dutchman kernel:
g_vfs_done():md0a[WRITE(offset=686899200
, length=131072)]error = 28
Mar 22 22:08:14 flying-dutchman kernel:
g_vfs_done():md0a[WRITE(offset=687030272
, length=131072)]error = 28
Mar 22 22:08:14 flying-dutchman kernel:
g_vfs_done():md0a[WRITE(offset=687161344
, length=131072)]error = 28
Mar 22 22:08:14 flying-dutchman kernel:
g_vfs_done():md0a[WRITE(offset=687292416
, length=131072)]error = 28


Any impressions, suggestions or limitations for md with malloc?
This errors occures also if i request to reserve the space by creation

thanks

regards

michael

--
=== michael-schuh.net ===
Michael Schuh
Preußenstr. 13
66111 Saarbrücken
phone: 0681/8319664
mobil:   0177/9738644
@: [EMAIL PROTECTED]

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


Re: another error with md malloc based fs

2007-03-22 Thread Michael Schuh

Hi,

ok i don't know this joke, kbut i know the word's

you have two options option a and option b.

i can't understand how malloc can eat all available
memory, i have 2Gigs of it ;-)
so it seems to me i know what i doing, if
i have 1,6 Gigs free Memory, and i say ok get me 750Megs from
my 1,6 Gigs of free Memory, what was faulty on that

that would imply for me i can't use my 2 Gigs of ram...
and
hardliners view
it also implies that you can put as many ram as you
can find, and you can never use that ram, while a programm
says: hey guy you are not knowing what you doing..
YOU would use 750Megs of you 24Gigs Ram, no,
you are dumb, you don't use this
/hardliners view

i would use my 2 Gigs of ram, in that way i like :-D
i would a very fast temporary filesystem in my ram.
not more, not less.

and the other question is i have a OS that say's i am a release,
and the documentation say you can do this,
who say don't do this?

i have read the thread abaut malloc, but the errors described
are not the samei have enough ram.
(so show it to me :-D errare humanum est, is it?)

i hope it gave another way to use such ram-disk without using
swap or other harddisk based backendotoh my ram is not fully useful
for me and i must, after twelve years of using freebsd, looking back to
linux,
and that i never would, only for using ramdisks


thanks

regards

michael
2007/3/23, Kevin Oberman [EMAIL PROTECTED]:


 Date: Thu, 22 Mar 2007 23:04:16 +0100
 From: Michael Schuh [EMAIL PROTECTED]
 Sender: [EMAIL PROTECTED]

 Hi,
 first i have 2GB of RAM, there are be 1,6G free
 so it should enough toi make the following:

 # mdconfig -a -t mallo -s 750m -u 0
 # bsdlabel -w /dev/md0
 # bsdlabel -e /dev/md0 (create a slice to use all free respective
first 16
 blocks)
 # newfs -O2 -U /dev/md0a
 mount /dev/md0a /mnt
 # cd to_a_place/with/650MB_of_data/
 # tar -cf - |( cd /mnt/; tar -xf -)
 after ~256MB transferred i get following errors, and the system crashes
 horridble  first it doesnt react of anything, then it does silently
 reboot
 without a shutdown...leaves all unclean

 extract from all.log
 Mar 22 22:08:14 flying-dutchman kernel:
 g_vfs_done():md0a[WRITE(offset=686899200
 , length=131072)]error = 28
 Mar 22 22:08:14 flying-dutchman kernel:
 g_vfs_done():md0a[WRITE(offset=687030272
 , length=131072)]error = 28
 Mar 22 22:08:14 flying-dutchman kernel:
 g_vfs_done():md0a[WRITE(offset=687161344
 , length=131072)]error = 28
 Mar 22 22:08:14 flying-dutchman kernel:
 g_vfs_done():md0a[WRITE(offset=687292416
 , length=131072)]error = 28


 Any impressions, suggestions or limitations for md with malloc?
 This errors occures also if i request to reserve the space by
creation

 thanks

 regards

 michael

 --
 === michael-schuh.net ===
 Michael Schuh
 Preußenstr. 13
 66111 Saarbrücken
 phone: 0681/8319664
 mobil:   0177/9738644
 @: [EMAIL PROTECTED]

Old, old joke:
Patient: Doctor! It hurts when I do this!
Doctor: Don't do that.

This is a well known issue with malloc backed md disks. Use swap backed
ones. They will be the default in V7. They have all of the advantages of
malloc backed mds without the possibility of eating all available memory
and crashing the system.

malloc backed md disks are very dangerous and should only be used in
special circumstances and with great care.
--
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: [EMAIL PROTECTED]  Phone: +1 510 486-8634
Key fingerprint:059B 2DDF 031C 9BA3 14A4  EADA 927D EBB3 987B 3751





--
=== michael-schuh.net ===
Michael Schuh
Preußenstr. 13
66111 Saarbrücken
phone: 0681/8319664
mobil:   0177/9738644
@: [EMAIL PROTECTED]

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


Re: another error with md malloc based fs

2007-03-22 Thread Michael Schuh

Hi Chuck,


2007/3/23, Chuck Swiger [EMAIL PROTECTED]:


On Mar 22, 2007, at 4:17 PM, Michael Schuh wrote:
 i can't understand how malloc can eat all available
 memory, i have 2Gigs of it ;-)
 so it seems to me i know what i doing, if
 i have 1,6 Gigs free Memory, and i say ok get me 750Megs from
 my 1,6 Gigs of free Memory, what was faulty on that

The two choices involve a swap-based RAMdisk, which can use all of
the available physical RAM it needs to, since this memory is
swappable, or a kernel-memory-based RAMdisk, which uses wired-down
memory from within the kernel.



Ok, so that is it harder to understand for me in the first time,
if i understand it now right the swap or file based memory backend
is also in the ram, but it get another way managed from kernels vm.
the malloc based ramdisk get's not reallly managed by the kvm,
but it underlays under the paging and swapping, and also
ba the thread-killer there shot's thread down it it get's to much
work for the system

i hope i understand this right, it is important for me...

You shouldn't or can't create huge kernel-based RAMdisks without

expanding the amount of KVM available to the kernel...it's not
reasonable to wire down hundreds of MB or RAM in almost all situations.

 i hope it gave another way to use such ram-disk without using
 swap or other harddisk based backendotoh my ram is not fully
 useful
 for me and i must, after twelve years of using freebsd, looking
 back to
 linux, and that i never would, only for using ramdisks

If you wanted to create a 10MB RAMdisk, using kernel-based memory
would be fine.

For things which are much larger than that, the kernel's global VM
management is using techniques like page-fault frequency heuristics
and will do a better job of keeping active stuff cached in RAM
(regardless of whether the stuff is part of a running process or part
of your RAMdisk filesystem), if you let the kernel manage the
situation than if you try to configure hundreds of MB which can only
be used for a RAMdisk.

Anyway, if you want to use Linux instead, nobody here is going to try
to persuade you to do otherwise.  Have fun,



nop, i don't runaway, i don't disappear to run over to dead rats :-D
i will stick to FreeBSD, than i believe it gave no better OS for me :-D
i have many fun with my lovely BSD.
at this time it gave only one situation in that i use linux and i hope this
changes i the near future (VMWare:-(   )

thanks for helping to see things a little bit more clear

regards

michael


--
-Chuck





--
=== michael-schuh.net ===
Michael Schuh
Preußenstr. 13
66111 Saarbrücken
phone: 0681/8319664
mobil:   0177/9738644
@: [EMAIL PROTECTED]

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


Re: another error with md malloc based fs

2007-03-22 Thread Michael Schuh

hi Chuck,
hi @list

me again, behind the scenes,
i would take over my Server by an hoster from
Linux to FreeBSD on the running system,
while the hoster takes money for pressing 2 buttons and
put a disk in my Server...so
i create now a mfs based system that can bootet from disk and resides
fully in ram. I have tryed out Colin's depenguinator,
but it fails...some times
now i would do the steps by hand

thanks

cheers

michael
2007/3/23, Chuck Swiger [EMAIL PROTECTED]:


On Mar 22, 2007, at 4:17 PM, Michael Schuh wrote:
 i can't understand how malloc can eat all available
 memory, i have 2Gigs of it ;-)
 so it seems to me i know what i doing, if
 i have 1,6 Gigs free Memory, and i say ok get me 750Megs from
 my 1,6 Gigs of free Memory, what was faulty on that

The two choices involve a swap-based RAMdisk, which can use all of
the available physical RAM it needs to, since this memory is
swappable, or a kernel-memory-based RAMdisk, which uses wired-down
memory from within the kernel.

You shouldn't or can't create huge kernel-based RAMdisks without
expanding the amount of KVM available to the kernel...it's not
reasonable to wire down hundreds of MB or RAM in almost all situations.

 i hope it gave another way to use such ram-disk without using
 swap or other harddisk based backendotoh my ram is not fully
 useful
 for me and i must, after twelve years of using freebsd, looking
 back to
 linux, and that i never would, only for using ramdisks

If you wanted to create a 10MB RAMdisk, using kernel-based memory
would be fine.

For things which are much larger than that, the kernel's global VM
management is using techniques like page-fault frequency heuristics
and will do a better job of keeping active stuff cached in RAM
(regardless of whether the stuff is part of a running process or part
of your RAMdisk filesystem), if you let the kernel manage the
situation than if you try to configure hundreds of MB which can only
be used for a RAMdisk.

Anyway, if you want to use Linux instead, nobody here is going to try
to persuade you to do otherwise.  Have fun,

--
-Chuck





--
=== michael-schuh.net ===
Michael Schuh
Preußenstr. 13
66111 Saarbrücken
phone: 0681/8319664
mobil:   0177/9738644
@: [EMAIL PROTECTED]

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


Failover-HA-Setup

2007-01-19 Thread Michael Schuh

Hi Richard,

if you are searching a native Cluster filesystem, so your chances
are not really good.
But if you would setup a really HA-Solution w/o SPOF so you can use
CODA-FS. (but hold in mind this has its own price - performance - )

Coda is an successor/fork of the legendary AFS (think from Andrew
Morton?) and IBM. With Coda you can figure out an Network-Filesystem-
server with replication and local caching, so you can get the required
filesystem for mysql mounted rw at boot-time and you have only
to start mysql-server with the suggestet commands and configurations.

For coda look in the ports or at:
http://www.coda.cs.cmu.edu/
i have planned out some tests with it in the near future, but no
practices at this time. My knowledge is only based on the documentation.

greetings

michael
--
michael-schuh.net
Michael Schuh
Preußenstr. 13
66111 Saarbrücken
phone: 0681/8319664
mobil:   0177/9738644
@: [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: chat(8) doesn't parse special strings correctly

2006-12-08 Thread Michael Schuh

Hi Ian,
Hi @stable,

thanks this helps me to,
but it doesn't correct the error in chat :-;

thank you

regards

michael
2006/12/7, Ian Smith [EMAIL PROTECTED]:

This probably belongs in -questions, but ..

On Thu, 7 Dec 2006, Michael Schuh wrote:

  i update my ppp.conf to
 
  set speed 115200
  #set dial ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \\ AT\
OK-AT-OK AT%C3M0E1Q0%G1%B56000 OK \\dATDT\\T TIMEOUT 40 CONNECT
 
  set dial REPORT CONNECT ABORT BUSY ABORT NO\\sCARRIER TIMEOUT
  5 \\ AT\
OK-AT-OK AT%C3M0E1Q0%G1%B56000 OK \\dATDT\\T TIMEOUT 40 CONNECT
 
  man say's this is the right way to log any answer after CONNECT like
  4/LANP/V.42bis.
  But with the above configuration chat says:
 
  Dec  7 03:20:52 brenner ppp[2691]: tun0: Chat: deflink: Dial attempt 1 of 1
  Dec  7 03:20:52 brenner ppp[2691]: tun0: Chat: Expect(30): REPORT
  Dec  7 03:20:56 brenner ppp[2691]: tun0: Phase: Signal 15, terminate.
 
  after digging in the source it seem's to me that chat doesn't really
  parse the special string REPORT and ABORT correctly, but i am not
  really sure.

I don't know about 'REPORT', but I've always used something like:

  set log +connect +chat
  set dial ABORT BUSY ABORT NO\\sCARRIER ABORT NO\\sDIAL TIMEOUT 5 \\ \
ATZ OK-ATZ-OK ATE0Q0 OK-AT-OK \\dATDT\ \T TIMEOUT 60 CONNECT \\c \\n

where the \\c \\n catches data till newline after the CONNECT, eg:

Dec  7 01:58:42 gaia ppp[6018]: tun0: Chat: Dial attempt 1
Dec  7 01:58:42 gaia ppp[6018]: tun0: Chat: Expecting:
Dec  7 01:58:42 gaia ppp[6018]: tun0: Chat: Sending: ATZ^M
Dec  7 01:58:42 gaia ppp[6018]: tun0: Chat: Expecting: OK-ATZ-OK
Dec  7 01:58:42 gaia ppp[6018]: tun0: Chat: Wait for (5): OK
Dec  7 01:58:42 gaia ppp[6018]: tun0: Connect: ^M
Dec  7 01:58:42 gaia ppp[6018]: tun0: Connect: OK
Dec  7 01:58:42 gaia ppp[6018]: tun0: Chat: Sending: ATE0Q0^M
Dec  7 01:58:42 gaia ppp[6018]: tun0: Chat: Expecting: OK-AT-OK
Dec  7 01:58:42 gaia ppp[6018]: tun0: Chat: Wait for (5): OK
Dec  7 01:58:42 gaia ppp[6018]: tun0: Connect: ^M
Dec  7 01:58:42 gaia ppp[6018]: tun0: Connect: ATE0Q0^M^M
Dec  7 01:58:42 gaia ppp[6018]: tun0: Connect: OK
Dec  7 01:58:44 gaia ppp[6018]: tun0: Phase: Phone: 
Dec  7 01:58:44 gaia ppp[6018]: tun0: Chat: Sending: ATDT^M
Dec  7 01:58:44 gaia ppp[6018]: tun0: Chat: Expecting: CONNECT
Dec  7 01:58:44 gaia ppp[6018]: tun0: Chat: Wait for (60): CONNECT
Dec  7 01:58:44 gaia ppp[6018]: tun0: Connect: ^M
Dec  7 01:59:14 gaia ppp[6018]: tun0: Connect: ^M
Dec  7 01:59:14 gaia ppp[6018]: tun0: Connect: CARRIER 49333^M
Dec  7 01:59:14 gaia ppp[6018]: tun0: Connect: ^M
Dec  7 01:59:14 gaia ppp[6018]: tun0: Connect: PROTOCOL: LAP-M^M
Dec  7 01:59:14 gaia ppp[6018]: tun0: Connect: ^M
Dec  7 01:59:14 gaia ppp[6018]: tun0: Connect: COMPRESSION: V.42BIS^M
Dec  7 01:59:14 gaia ppp[6018]: tun0: Connect: ^M
Dec  7 01:59:14 gaia ppp[6018]: tun0: Connect: CONNECT
Dec  7 01:59:14 gaia ppp[6018]: tun0: Chat: Sending:
Dec  7 01:59:14 gaia ppp[6018]: tun0: Chat: Expecting: \n
Dec  7 01:59:14 gaia ppp[6018]: tun0: Chat: Wait for (60): \n --
Dec  7 01:59:14 gaia ppp[6018]: tun0: Connect:  49333/ARQ^M
Dec  7 01:59:14 gaia ppp[6018]: tun0: Connect:
Dec  7 01:59:15 gaia ppp[6018]: tun0: Phase: NewPhase: Authenticate

HTH, Ian





--
michael-schuh.net
Michael Schuh
Preußenstr. 13
66111 Saarbrücken
phone: 0681/8319664
mobil:   0177/9738644
@: [EMAIL PROTECTED]
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


chat(8) doesn't parse special strings correctly

2006-12-06 Thread Michael Schuh

Hello,

i update my ppp.conf to

   set speed 115200
   #set dial ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \\ AT\
 OK-AT-OK AT%C3M0E1Q0%G1%B56000 OK \\dATDT\\T TIMEOUT 40 CONNECT

   set dial REPORT CONNECT ABORT BUSY ABORT NO\\sCARRIER TIMEOUT
5 \\ AT\
 OK-AT-OK AT%C3M0E1Q0%G1%B56000 OK \\dATDT\\T TIMEOUT 40 CONNECT

man say's this is the right way to log any answer after CONNECT like
4/LANP/V.42bis.
But with the above configuration chat says:

Dec  7 03:20:52 brenner ppp[2691]: tun0: Chat: deflink: Dial attempt 1 of 1
Dec  7 03:20:52 brenner ppp[2691]: tun0: Chat: Expect(30): REPORT
Dec  7 03:20:56 brenner ppp[2691]: tun0: Phase: Signal 15, terminate.

after digging in the source it seem's to me that chat doesn't really
parse the special string REPORT and ABORT correctly, but i am not
really sure.

can anyone shed me some light on this or give me hints on this problem?

google tells me not the right informations...

thanks

cheers

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


Scope of Variables in sh

2006-06-01 Thread Michael Schuh

Hello,

i have a little problem with the
scope of sheel variables in an script.
the script shows like:

#!/bin/sh
objectcountfile=/data2/scout/objects
objectsum=/data2/scout/objcount
sometime=5
initialize()
{
 [ ! -e $objectsum ]  touch $objectsum
}
#
countobjects()
{
 myline=0
 cat $objectcountfile|grep -v ^[^0-9]*$|grep -v ^0$| while read line
 do
   myline=`expr $myline + $line`
   echo $myline  $objectsum
 done
}
initialize
while true
do
 countobjects
 clear
 echo bla bla
 cat $objectsum
 sleep $sometime
done
##end script

this script does what i want, but, i dont really want put
the count ($myline) every time he changes in $objectsum.
this wasnt really neccessary only the result over all interests me.
so my first script was
##
countobjects()
{
 myline=0
 cat $objectcountfile|grep -v ^[^0-9]*$|grep -v ^0$| while read line
 do
   myline=`expr $myline + $line`
 done
 echo $myline  $objectsum
}
##
but this doesnt function right. so i see the behavior from $myline in the
while-loop like an local variable..

i have searched in man-pages and in google but i have
not really good points found.

Can anyone give me an ligthshed on this problem?
Please answer me directly, i be out of freebsd-hackers.

thanks

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


Re: Scope of Variables in sh

2006-06-01 Thread Michael Schuh

Hello Bob,
Hello @Lists,


countobjects()
{
 myline=0
 cat $objectcountfile|grep -v ^[^0-9]*$|grep -v ^0$|
 awk '{myline += $1} END {print myline}'  $objectsum
}


this gave me the right behavior.
THX

i ve forgotten that the piping opens another subshell,
so it is clearly logical that the 2 variables have the same name,
but are not identical :-)

thanks for all

michael
2006/6/1, Bob Willcox [EMAIL PROTECTED]:


On Thu, Jun 01, 2006 at 04:28:39PM +0200, Michael Schuh wrote:
 Hello,

 i have a little problem with the
 scope of sheel variables in an script.
 the script shows like:

 #!/bin/sh
 objectcountfile=/data2/scout/objects
 objectsum=/data2/scout/objcount
 sometime=5
 initialize()
 {
  [ ! -e $objectsum ]  touch $objectsum
 }
 #
 countobjects()
 {
  myline=0
  cat $objectcountfile|grep -v ^[^0-9]*$|grep -v ^0$| while read line
  do
myline=`expr $myline + $line`
echo $myline  $objectsum
  done
 }
 initialize
 while true
 do
  countobjects
  clear
  echo bla bla
  cat $objectsum
  sleep $sometime
 done
 ##end script

 this script does what i want, but, i dont really want put
 the count ($myline) every time he changes in $objectsum.
 this wasnt really neccessary only the result over all interests me.
 so my first script was
 ##
 countobjects()
 {
  myline=0
  cat $objectcountfile|grep -v ^[^0-9]*$|grep -v ^0$| while read line
  do
myline=`expr $myline + $line`
  done
  echo $myline  $objectsum
 }
 ##
 but this doesnt function right. so i see the behavior from $myline in the
 while-loop like an local variable..

With:

while ...
do
...
done

The statements within the do...done sequence are run in a subshell and
therefore all variables referenced by those statements are local to
that subshell. Consequently, the myline variable that is outside of the
do...done sequence is a *different* variable (and will still be null in
your example).

I'm not sure what your data looks like, but one possible solution would
be to use awk to read the lines and do the addition, perhaps like this:

countobjects()
{
 myline=0
 cat $objectcountfile|grep -v ^[^0-9]*$|grep -v ^0$|
 awk '{myline += $1} END {print myline}'  $objectsum
}

Note that I didn't actually run the above code, but I think it's
correct, and if not, it should be pretty close to what you need.

Of course, you could replace the cat and 2 greps with some additional
awk stuff (and improve performance), but I wanted to keep it as simple
and close to your example as possible.


 i have searched in man-pages and in google but i have
 not really good points found.

 Can anyone give me an ligthshed on this problem?
 Please answer me directly, i be out of freebsd-hackers.

I recommend some good shell  awk programming books.

Hope this helps,
Bob


 thanks

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

--
Bob WillcoxGrabel's Law:
[EMAIL PROTECTED]2 is not equal to 3 -- not even for large values
Austin, TXof 2.


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


Re: Needs suggestion for redundant Storage

2006-04-12 Thread Michael Schuh
 CARP can let you failover an IP address and ggated provides remote
 access to a physical disk device but the combination will not give you
 a fault tolerant server.  One major problem is that you will lose the
 content of the cache when a system fails - this amounts to roughly the
 last 30 seconds of data written (though the write-through behaviour of
 NFS may mitigate this).  Other potential problems are:  Loss of
 connection state - NFS is stateless but lockd and mountd retain client
 state information so you will lose any client locks and the server may
 object to being presented with filehandles that were issued by a
 different host.  Handling the failure of the inactive host - you will
 need to identify the behaviour when the remote part of your mirror
 becomes inaccessible.

Yes, i agree, that was the reason why i would use ggated whit carp and
geom mirror, but the problem was the mount of the shared filesystem

carp..if the machine or the netif goes to hell
ggated to mirror the shared disks over the network with gmirror
if one disk fails gmirror noticed that and let me show them


 And none of the above protects against filesystem corruption.  Cheap
 hardware presumably means that you won't be using ECC RAM and there
 will me minimal (if any) protection against data corruption on the
 various busses.  The odd bit-flip will be virtually undetectable
 until someone notices that their data is corrupt.
i agree also with thembut i can not have all the things
another solution to prevent that was an cluster-tool that mirrors
files not filesystems over the net
may be i should make a try or think over another solution...

 Without backups, you can't recover from any problems - user errors or
 system errors.  I'm certain the lack of backups _will_ become the
 focus as soon as something valuable is lost.  And given the sort of
 dodgy setup you want to construct, that may not take long.

yes i know, and i be not there friend, backup is my friend by any problem with
the boxesbut this comes later if the money is there :-) or the
management will spend the money

  Read the mailing lists - they are full of problems with them.  If
  you value your data you will not use Sil controller.
 
 yes, this do i also know, but if i have a lot of them, and 2 falls out,
 so what happens if i had another box with my data?

 The data is just as likely to be garbled on the remote system as well.
 I don't think people are saying that the Sil controllers stop working,
 they just don't work reliably so you can't rely on any data that has
 been handled by a Sil controller.

 Oh that was fist not my idea, the management has questioned these features,
 in have said OMG you aore not serious, but  is it.. :-((
 so that is better for me and my job to make what management wishes,
 later i can say.i have you warned..

 You need to write a memo to your management that clearly points out the
 risks.  Keep a notarised copy for yourself and make sure yout CV is up
 to date.  You can rest assured that you will be the scaegoat when it
 all goes wrong.

*grin*  that was also an good idea, the first disagreement i have made
past days...the next follows if the etat-management begins.

i would sort the costs for possibiliy disaster recovery in relativiness of
costs of data-corruption (in the cas all data goes to hell)
i think then comes the right thinking back.
i think the best question for that to the management was:
what if the data goes to /dev/null by any failure fo the Hardware,
and keep in mind, we do not have any backup.


regars

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


Re: Maximum Swapsize

2006-04-11 Thread Michael Schuh
2006/4/10, Michael Schuh [EMAIL PROTECTED]:
 Hello @all,

 last weekend i have setted up an new Machine with
 6.1-Beta4. By Installation i have made an Swappartition
 with the size of 4GB after install in runtime in top
 it sseems to me that the maximum swap-size is
 limitied to 2GB or better to INT_MAX ?

 At another MAchine with FreeBSD4.11 i have a
 Swap-Partition with 1GB size and an Swap-File with
 8 GB size, all seem fine top let me show:

 Mem: 418M Active, 318M Inact, 193M Wired, 40M Cache, 108M Buf, 1960K Free
 Swap: 9216M Total, 257M Used, 8959M Free, 2% Inuse

 Is these setting correct for RELENG_6 or 6.1-Beta4,
 and get the (default) maxsize for Swap-Partitions increased?

 thanks for any help

 best regards

 Michael


It seems to me that i have me not right supressed.

My Problem is not the way to find the right swapsize for me or
better for my Server with the running Applications.

My Problem was that i can't show my configured swapsize
right...
Partitionsize for swap was 4GB
Showing Value was 2GB,

and my question (tail)  is answered by the first posting
from Kris
kris
Of course if you actually use this much swap your machine will be incomparably
slow..

The old swap size = 2x RAM rule is no longer applicable unless you have a
very special application.

IMO if you end up using more than 512MB of swap you need more RAM, or less
applications :)
/kris

and the other was have i made any failure by
partitioning, respective labeling the disk..
or ist there any known Problem with swapsizes over 2G.

I think i have made an failure by the partitioning (bsdlabel)
the disk by right calculate the blocks for swap..

so that i can say at this time it was mostly my wrong
handling that ha sshowing me the wrong suggested value.
But if i have the Box already in my fingers i would show the
values again and double check thesei don't think that
FreeBSD has made this failure...:-) BSD can't make mistakes :-) for me

the rigth value for Swap depend on the amount of ram in
relativiness of what application should be to run.
par example: if you running Zope and tomcat on the same Machine with
4 to 10 Plone frontends in Zope you can get running out of swap with
1GRAM and 2GSWAP.. only my experiences


regards

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


Re: Needs suggestion for redundant Storage

2006-04-11 Thread Michael Schuh
 You probably can't replace defective hardware so fast that the users
 don't notice.  They will probably also notice when a system crash
 garbles the filesystem.

that was the reason why i would make a mirrored system with CARP
and ggated...


 Based on your comments of low cost and massive size, I presume you
 can't afford a proper backup solution either.  This is a recipe for
 disaster if the data is valuable.
yes, i can't backup this amount of data at this moment, but this was
not the focus...yet

  Do not get a Silicon Image SATA controller.
 Why not?

 Read the mailing lists - they are full of problems with them.  If
 you value your data you will not use Sil controller.

yes, this do i also know, but if i have a lot of them, and 2 falls out,
so what happens if i had another box with my data?

i know my job moves mor to disaster recovery than to administer
but we can't get all the things that we wish.

  At the very least, get a multiport SATA RAID controller with a decent-sized
  RAM cache of its own and an internal battery to keep the drives going until
  that cache can be flushed.  As well as an external UPS, right...?
 
 I can also agree with you...but the management..get not my friends
 with this... :-))

 They will be even less your friends when your cheap-n-nasty solution
 loses some valuable files.
Oh that was fist not my idea, the management has questioned these features,
in have said OMG you aore not serious, but  is it.. :-((
so that is better for me and my job to make what management wishes,
later i can say.i have you warned..

but thanks for these suggestions, that gives me more arguments
for my suggested solutions..NAS/SAN..

regards

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


Re: Needs suggestion for redundant Storage

2006-04-10 Thread Michael Schuh
Hello Chuck,
Hello @all,

2006/4/7, Chuck Swiger [EMAIL PROTECTED]:
 Michael Schuh wrote:
  Hi everyone,
 
  i need suggestions and hints about an redundant
  storage-system.
 
  My requirements are:
  a Storage that is available via Network, flexible in scalation,
  and must be redundant, and cheap if possible
 
  My Own suggestion was this  scenario:
 
  2 boxes very cheap for ~300$
  2 or more SATA-II-Controller ~30$(SIL)
  4 or more Disks with 200-250GB ~100$/piece

 You've obviously chosen to prioritize cheap above anything else with these
 recommendations.  :-)  You simply can't spend less than a grand and expect
 to get even one decent fileserver, much less a pair of machines.
yes, the reason why i choose cheap HW is that we could get in the future an
the pressure to spread the load from one to many syttems and the
amount of Data to get very big, but is is no database-solution and the
file-size grows up to
20-100MB but the Count fo Files can grow from many thousands up to
many millions or billions.
So that the right solution for this was a good SAN-System. But the Costs can't
pushed to the Customers so that an relatively simple and chead solution must
do the Work from an good SAN-System.
My Projektleader would buy DELL-Machines, but in the fact of the work they then
do the costs get bored, and also our Projekt.Manager an the financier
get bored:-(

so that i have sign a Solution with cheap HW, ok this cheap HW is not very
stable and never so performant like the right Hardware, but if i use
this solution,
so i can relative fast replace defect items with new HW.

The other plus is i hold over 2-3 years everytime relatively actual
hardware-systems. And i agree with you if you say the costs over the
years are more then the invest into rellay good hardware, but that is
at this time not possible...:-(


 Do not get a Silicon Image SATA controller.
Why not? I usse one in my HOME-Box. Ok it has only 8K buffer for
tagged Command queue, and it is not the fasten, but he is cheap an do
his job
(for a time :-) in general i agree with you it is smarter to use a
Controller designed for Men's not for Boys. :-)


 If you want to value redundancy and the ability to scale, you ought to look
 at NAS or SAN systems, such as NetApp filers, or maybe even an Apple Xserve
 and a Fibre-channel switch.

yes i can also agree with you but the terms of condistions are described above,
and dissallow this at the time


 Even if you're not willing to pay that much, you should at least consider
 what those solutions offer for their pricepoints, and then decide what your
 data is worth to you and what your requirements should be.

 At the very least, get a multiport SATA RAID controller with a decent-sized
 RAM cache of its own and an internal battery to keep the drives going until
 that cache can be flushed.  As well as an external UPS, right...?

I can also agree with you...but the management..get not my friends
with this... :-))


 --
 -Chuck


thanks and

regards

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


Maximum Swapsize

2006-04-10 Thread Michael Schuh
Hello @all,

last weekend i have setted up an new Machine with
6.1-Beta4. By Installation i have made an Swappartition
with the size of 4GB after install in runtime in top
it sseems to me that the maximum swap-size is
limitied to 2GB or better to INT_MAX ?

At another MAchine with FreeBSD4.11 i have a
Swap-Partition with 1GB size and an Swap-File with
8 GB size, all seem fine top let me show:

Mem: 418M Active, 318M Inact, 193M Wired, 40M Cache, 108M Buf, 1960K Free
Swap: 9216M Total, 257M Used, 8959M Free, 2% Inuse

Is these setting correct for RELENG_6 or 6.1-Beta4,
and get the (default) maxsize for Swap-Partitions increased?

thanks for any help

best regards

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


Needs suggestion for redundant Storage

2006-04-07 Thread Michael Schuh
Hi everyone,

i need suggestions and hints about an redundant
storage-system.

My requirements are:
a Storage that is available via Network, flexible in scalation,
and must be redundant, and cheap if possible

My Own suggestion was this  scenario:

2 boxes very cheap for ~300$
2 or more SATA-II-Controller ~30$(SIL)
4 or more Disks with 200-250GB ~100$/piece

the configuration that i think:

the 2 boxes became 2 virtaul IP-Addresses for CARP to
manage Master/Slave.

the Extra SATA disks get configured wit geom as big volumes or
any other configuration (not very important, but the 2 boxes should
have the same configuration)

the big-Volume created by geom/ccd/gvinum or any other should get
mirrored over the Net to the other box.i think ggated/ggated get
my best friends...

Has anyone experiences or suggestion for those scenario?
the only component that i has used today was gmirror..

thanks a lot for any Help.


regards

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


Re: Splash

2006-04-06 Thread Michael Schuh
Hi,

i have followed the thread in freebsd-stable.

I would point you to my sources of splash-screen-handling,
the second Page also offers some nice splash images,
my preferred is emily_black_1024

http://wiki.unixboard.de/index.php/FreeBSD_-_Bootvorgang_verschönern/verkürzen

http://www.baldwin.cx/splash/


my difference from loader.conf:

vesa_load=YES # this allows other resolutions than 300x200

see also the man-page of vidcontrol and the output from

vidcontrol -i mode|less

best regards

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


Re: top doesn't show any Process in idle-Mode

2006-02-01 Thread Michael Schuh
Hello,

sorry for the time ago, i haven't an FreeBSD-Box on my Work.

The CLI-Optin -S doesn't really help me.

I will test the patch from Stefan Esser, but i think
my Problem are not alone SRUN-Proc's.

if i run TOP with the CLI-Options -I -S so i should see
Processes with status RUN and SRUN, if i was right.

I have also running top described as above, and now i do a
make -j 16 cleen cleandir cleandepend under /usr/src, so
i unterstand things right i shoud see minimum 3 or more
Processes with status RUN ( System was Sempron 2400 @1800MHz).
But i shows only one and this very short, but if the system runs i could see
an process named pagex, and if the system was idle i can see an
process with status SRUN called idle

So i get the time i will test the Patch from Stefan.
If  i getting new values and experiences i come back again.

Tahnks to all and

best regards

michael

2006/1/30, Stefan Esser [EMAIL PROTECTED]:
 On 2006-01-30 13:49 +0100, Michael Schuh [EMAIL PROTECTED] wrote:
  Hello,
 
  i use top mostly in idle-mode.
  # top return i
  or
  # top -I
 
  Under releng_6 (stable p4) and the older versions,
  i think down to releng_5, doesn't show a running process.
 
  I have tryed to dig in the source but my experiences are not
  so good that i can find the possible error.

 See line 603 (in HEAD) of /usr/src/usr.bin/top/machine.c:

 if (displaymode == DISP_CPU  !show_idle 
 (pp-ki_pctcpu == 0 || pp-ki_stat != SRUN))
 /* skip idle or non-running processes */
 continue;

 Since I do not like the current behaviour, I considered removing the
 test for state SRUN. But I guess that the teest can not be completely
 eliminated. Instead of selecting only SRUN, some states may need to
 be suppressed (SZOMB, possibly also SIDL, SSTOP).

 I'll test the following version on my system:

 if (displaymode == DISP_CPU  !show_idle 
 (pp-ki_pctcpu == 0 || pp-ki_stat == SZOMB || 
 pp-ki_stat == SSTOP))
 /* skip idle or non-running processes */
 continue;

  Has anyone same experiences made with top, or has
  anyone a workaround (please not like while true)

 Patch included (not verified to apply to 5.x or 6.x, but editing the
 test in place should be easy, then).

 Regards, STefan

 --- /usr/src/usr.bin/top/machine.c  18 May 2005 13:42:51 -  1.74
 +++ /usr/src/usr.bin/top/machine.c  30 Jan 2006 14:26:08 -
 @@ -601,7 +601,7 @@
 continue;

 if (displaymode == DISP_CPU  !show_idle 
 -   (pp-ki_pctcpu == 0 || pp-ki_stat != SRUN))
 +   (pp-ki_pctcpu == 0 || pp-ki_stat == SZOMB || 
 pp-ki_stat == SSTOP))
 /* skip idle or non-running processes */
 continue;


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


Re: top doesn't show any Process in idle-Mode

2006-01-30 Thread Michael Schuh
Hello,

i use top mostly in idle-mode.
# top return i
or
# top -I

Under releng_6 (stable p4) and the older versions,
i think down to releng_5, doesn't show a running process.

I have tryed to dig in the source but my experiences are not
so good that i can find the possible error.

Has anyone same experiences made with top, or has
anyone a workaround (please not like while true)

thanks to all

regards

michael

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


Questions about geom-gate and RAID1/10 and CARP

2005-12-09 Thread Michael Schuh
Hello,

i have searched informations about geom-gate and RAID1 or
Raid10 over TCP/IP. But nothing relevant found, so that i write
the questions here.

My opinion/scenario that i thinked out:
i Have 2 Machines Host  A and Host B,
both Machines have 2 Networkinterfaces,
one official and one private.
The official interfaces getting bound with CARP for
traffic, so that peoples think they connect's to one Machine.
So that i get, for this case, a high-availibility-solution on CARP-Base.
The private interfaces get to be used to derive my data from one Machine
to the other Machine, and also spend the possibility to watch the other Machine.

To this point everything is clear for me, so let us go to the more
complex part.

In the description above i be suppressed to derive the shared-data
for booth machines from one to another. My idea was to build an
RAID1 or RAID10 over the Network by using geom-gate and vinum
respective gvinum.

Has anyone any experiences with geom-gate and doing RAID1 or RAID10 over
TCP/IP? And has anyone a good solution in Production use?
My Questions about these thema are:
a) Is this generally possible with FreeBSD ?
b)is this generally a good idea ?
c)how must i setup the RAID?
d)who must build the raid? Host A? Host B? or BOTH?
e) can i use this way to become an HA-Solution?

I have searched in the Web about these questions, but nothing found.
Only things that i have found was Mirroring (local) and mode generals
related to local work with geom.

Thanks for help.

regards

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


Re: timecounter and Hz quality in kern RELENG_6

2005-11-08 Thread Michael Schuh
Hello,

thanks to Oliver and Michael for explain me the mechanics
behind timecounter and Hz quality.

I have send the question, why i have to wonder about
different IRQ-Counts but same HZ. It is really thaat HZ on
both machines is the same.

I have only knowed the old behavior.
I set the HZ over Options HZ in my Kernelconfig,
and then i could see that the IRQCount's on clk are alwas
the same value as HZ +- a few tics.

So that i have thinked ( and feeled on busy machines) that
the IRQ-work is more smooth and they are less holes in
responsitivity if the HZ is going to an Value  1000.
So i have alwas set HZ to 2000 on every machine.

If i have the answers and the mechanics behind timecounter
and Hz quality  right understand, so i have no more modify
the HZ Value to become an smooth polling of the interupts.
if i be right the smooth behavior comes with the calculation
from Hz quality. Please correct me if i am wrong.

thanks to all
and

best regards

michael
2005/11/7, Michael Schuh [EMAIL PROTECTED]:
 Hello,

 i be very surprised about the performance of RELENG_6.
 Congratulations to the entire Team for this very good work.

 Now i have 2 Machines installed with 6.0-RC1, and i have seen that on
 both machines the Hz is differntly with GENERIC-Kernel.
 Machine A is an Sempron 2400+ that runs as 2500+
 (i have tuned the clock to best RAM-Performace)
 Machine B is an Duron 700MHz

 On Machine A i got an Hz from 2000 effectively
 systat -vmstat 1 show me 2000 IRQ/s on clk
 sysctl say's 1000i think, but not sure

 On Machine B i got an Hz from 1000 effectively
 systat-vmstat 1 show me 1000 IRQ/s on clk

 After digging in the source i have found that timec.c have an routine for
 computing the so called Hz quality.

 Can anyone explain me the mystics behind Hz quality,
 and why or how this quality is computed and what are the
 efforts?

 My knowledge is not deep enough to know these details.

 thanks

 best regards

 michael

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


timecounter and Hz quality in kern RELENG_6

2005-11-07 Thread Michael Schuh
Hello,

i be very surprised about the performance of RELENG_6.
Congratulations to the entire Team for this very good work.

Now i have 2 Machines installed with 6.0-RC1, and i have seen that on
both machines the Hz is differntly with GENERIC-Kernel.
Machine A is an Sempron 2400+ that runs as 2500+
(i have tuned the clock to best RAM-Performace)
Machine B is an Duron 700MHz

On Machine A i got an Hz from 2000 effectively
systat -vmstat 1 show me 2000 IRQ/s on clk
sysctl say's 1000i think, but not sure

On Machine B i got an Hz from 1000 effectively
systat-vmstat 1 show me 1000 IRQ/s on clk

After digging in the source i have found that timec.c have an routine for
computing the so called Hz quality.

Can anyone explain me the mystics behind Hz quality,
and why or how this quality is computed and what are the
efforts?

My knowledge is not deep enough to know these details.

thanks

best regards

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


Switching from RELENG_4 to newer Release that supports ia64

2005-10-07 Thread Michael Schuh
Hello,

we plan to change the Hardware from one of our Servers Running RELENG_4.
The New Hardware becomes CPU-Types Xeon w/ EM64 - ia64 architecture.

Now i have no experiences to change the OS-Release under the ass
from running Software (postfix/cyrus/postgresql/mysql/perletc.)

I be also not sure what release-version should i take.

My preferred opinion was to change to the upcoming RELENG_6,
but i be not sure if this is really a good idea, second i have no
documents found to migrate from RELENG_4 to RELENG_6.

I know it gives a very good description of changing the underlying
OS-Version to RELENG_5.

Another possible change is the Change to DragonFlyBSD.
But here is the same again, to less knowledge about this step.

Can anyone point's me to an good description for this switching,
or have anyone good experiences with the combinations of OS-Versions
resp. OS-Types (in case of DragonFlyBSD) with running Software
in production?

Iportant to know is also that this is an Hot-Production-Server.

Thanks for the suggestions.

best regards

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


RELENG_4 pam update doesn't work correct

2005-09-06 Thread Michael Schuh
Hello,

yesterday i have made an cvsup from RELENG_4 and made the typically
system-update with:

make buildworld kernel
mergemaster -p
make installworld
mergemaster 
reboot
portupgrade -ar

Now i have problems with pam.
the pam-modules and the Library-Archive libpam.a in /usr/lib are
updated correctly.
but  the libpam.so.1 wasn't changed.

the relied programs pam-pgsql pamtester dosn't work anymore,
saslauthd (cyrus-sasl-saslauthd with -a pam flags) quit also with signal 10 and
an core dump.

After i have changed back to the old libs and modules all will work perfectly.
Does anyone have any suggestion?

best regards

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


Re: RELENG_4 pam update doesn't work correct

2005-09-06 Thread Michael Schuh
Hello,

i have also opened a PR:
http://www.freebsd.org/cgi/query-pr.cgi?pr=85796

regards

michael

2005/9/6, Michael Schuh [EMAIL PROTECTED]:
 Hello,
 
 yesterday i have made an cvsup from RELENG_4 and made the typically
 system-update with:
 
 make buildworld kernel
 mergemaster -p
 make installworld
 mergemaster
 reboot
 portupgrade -ar
 
 Now i have problems with pam.
 the pam-modules and the Library-Archive libpam.a in /usr/lib are
 updated correctly.
 but  the libpam.so.1 wasn't changed.
 
 the relied programs pam-pgsql pamtester dosn't work anymore,
 saslauthd (cyrus-sasl-saslauthd with -a pam flags) quit also with signal 10 
 and
 an core dump.
 
 After i have changed back to the old libs and modules all will work perfectly.
 Does anyone have any suggestion?
 
 best regards
 
 michael

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


Re: Quality of FreeBSD

2005-07-21 Thread Michael Schuh
Hi,

at this point i musttail my paint with you and the other's.
I have really made a few tests on one big issue or RELENG_5.
At the time as it was early enough to change things, but the guys they
have me telled someone else have to fast machines to test ( in my eyes
they should test on some sloweer hardware, to become the maximum
performance)

I have telled some guys the problems that i have found, these Problems are 
really important for other issues ( performance from applications etc.)

but no one would really hear what i have to say, they telled me some
unrelevant ( and many bullshit), and they think not before they
speak.

so that the result for me ist to wait on RELENG_6, so that i made one
or two tests and if the tests do not perform in the right direction
then i leave the
FreeBSD and going back to Linux or switching eventually to DragonFly.

Now my question to you : is the performance of ata-related disk-access
under UFS-Filesystem not important for other application, so that the
performance can be a half of them that RELENG_4 does?

In fact under RELENG_4 i can write a GIG FIle double as fast as under
RELENG_5 ! and i would not hear any thing about serial performance or
that this is not really like the real world, if i syimulate that with:

/usr/bin/time dd if=/dev/zero of=/zerofile bs=1024 count=1024k;
this is reality poor!

I know we gave all our best, but many people are more arrogant,
and think not really...

best regards

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


Re: FYI - RELENG_6 branch has been created

2005-07-12 Thread Michael Schuh
Hello Scott,

i run into same Problem with Spamassassin and Perl v5.8.7.
After a backport to 5.8.6_2 all thins run fine.
I have no relly good reason found why the behavior is, but i have many 
hint's found
that say's that this is a generally io-problem with perl v5.8.7.

So that i have made a entry in my sup/refuse that i not running anymore into
that Problem

best regards

Michael

The other problem that will possibly affect more people is that
 SpamAssassin stopped working properly. This isn't a server, simply a
 workstation, using getmail and maildrop. I would get the following
 error
 
 Delivery error (command maildrop 65199 error (0, razor2 check skipped: No 
 such file or directory IO::Socket::INET: connect: Operation not permitted 
 ...propagated at 
 /usr/local/lib/perl5/site_perl/5.8.7/Mail/SpamAssassin/Dns.pm line 447.))
 msg 1/1 (1422 bytes), delivery error (command maildrop 65199 error (0, 
 razor2 check skipped: No such file or directory IO::Socket::INET: connect: 
 Operation not permitted ...propagated at 
 /usr/local/lib/perl5/site_perl/5.8.7/Mail/SpamAssassin/Dns.pm line 447.))
 1 messages retrieved, 0 skipped
 
 
 Thinking that it was a simple perl thing and perhaps also connected with
 the libc.5 and 6, I first did a portupgrade -fRr of SpamAssassin. This
 didn't fix the problem. Eventually (and I don't have enough knowledge
 to know why this worked) I did another portupgrade -f of perl, then did
 a pkg_delete of SpamAssassin and all B and R deps save for perl. I then
 reinstalled SpamAssassin with the port reinstalling the deps. Then it
 worked.

___
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-28 Thread Michael Schuh
Hi,

i wouldn't start a principal discussion, but i have too?

I have one Machine! and on this machine with identical Hardware,
identical real! not same not side by side, real the same disk,
processor, ram, board..
-- read my other postings, it's recommendet.

on this machine i have made 4 installations on same disk,
of 4 types/Versions of Os'es
1: RELENG_4
2: RELENG_5
3: Drangonfly_REL_1.2
4: GENTOO_2005_02

The disk was alway same partitioning:
first 1G for Swap
rest for system
then i login in the system and made:
# cd /; /usr/bin/time dd if=/dev/zero bs=1024 count=1024k of=zerofile;
rm zerofile

then i install the next system from a dump on same disk

so that i can compare the time-consumption on these 4 systems.
i think dd ist not the best for performace-tests or something else,
but dd is a handy tool for quick test what's going on with your system
write/read-speedness.

so other people have suggested me that dd was not everytime writes to
the same parts of diske, while the underlying fs-drivers made other
steps on other systems ( and other fs-types)

I would only compare the performace from 2 Versions of FreeBSD, while
i mean that the performance from RELENG_5 is more slower than under
GENTOO and it is double as slow as under RELENG_4.

i would not test the performance of my system, i would only compare.

best regards
michael
2005/6/28, Daniel O'Connor [EMAIL PROTECTED]:
 On Tue, 28 Jun 2005 20:43, Roman Neuhauser wrote:
  # [EMAIL PROTECTED] / 2005-06-28 19:04:18 +0930:
   On Tue, 28 Jun 2005 18:51, Roman Neuhauser wrote:
No you don't. You want to make a side-by-side comparison
of two products, and if one of them underperforms, it just
underperforms. You cannot use a poor location selection
strategy in the driver as an excuse for poor operation.
  
   dd is a useful start, but you shouldn't read too much into the results
   since, in general, dd doesn't reflect real world usage patterns.
 
  Huh? Various people have reacted to the dd doesn't reflect real
  world with but I *do* use dd in real world.
 
 Read what I said..
 
 ... IN GENERAL ...
 
 --
 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
 
 

___
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-28 Thread Michael Schuh
Yes, i know that and i agree with them.
that was the reason, why my disk is tiled on first physical Gigabyte for Swap,
and the rest for the system

my target was to compare 2 Versions not 2 Os-Types like FreeBSD and Linux,
but FreeBSD and FreeBSD, in cases RELENG_4 with RELENG_5.

so that the little difference between the different places for files,
remember i install everytime at the beginning of second Gig on disk,
should be flawlessy and not make the results so big, that the RELENG_4
has the double of speed from RELENG_5!

best regards

michael

2005/6/28, Paul Mather [EMAIL PROTECTED]:
 On Tue, 2005-06-28 at 11:21 +0200, Roman Neuhauser wrote:
  # [EMAIL PROTECTED] / 2005-06-21 16:51:10 +0200:
   For accurate measurements and comparisons, you have to make
   sure to use _exactly_ the same physical location on the
   disk.
 
  No you don't. You want to make a side-by-side comparison
  of two products, and if one of them underperforms, it just
  underperforms. You cannot use a poor location selection
  strategy in the driver as an excuse for poor operation.
 
 The point people are making is that location can have a significant
 effect on performance, and so should not be dismissed out of hand.
 
 Here is what I get when I run diskinfo on one of the (somewhat elderly)
 disks I use in my desktop system (this is a drive I use for data, and it
 is idle):
 
 zappa# diskinfo -tv /dev/ad4
 /dev/ad4
 512 # sectorsize
 25590620160 # mediasize in bytes (24G)
 49981680# mediasize in sectors
 49585   # Cylinders according to firmware.
 16  # Heads according to firmware.
 63  # Sectors according to firmware.
 
 Seek times:
 Full stroke:  250 iter in   5.159189 sec =   20.637 msec
 Half stroke:  250 iter in   4.206125 sec =   16.825 msec
 Quarter stroke:   500 iter in   7.151951 sec =   14.304 msec
 Short forward:400 iter in   2.794380 sec =6.986 msec
 Short backward:   400 iter in   4.135579 sec =   10.339 msec
 Seq outer:   2048 iter in   0.332711 sec =0.162 msec
 Seq inner:   2048 iter in   0.363152 sec =0.177 msec
 Transfer rates:
 outside:   102400 kbytes in   7.677977 sec =13337 kbytes/sec
 middle:102400 kbytes in   9.151475 sec =11189 kbytes/sec
 inside:102400 kbytes in  14.345492 sec = 7138 kbytes/sec
 
 Note how the transfer rate for the outside is almost twice that of the
 inside.  Suppose I run tests on two different operating systems, one
 of which resides in a partition on the inside portion and the other in
 one on the outside portion.  (Note that however good or bad it may be,
 the location selection strategy in the driver can only lay out data
 within the confines of the partition.)  Now, I do a dd test and find
 that the outside OS is almost twice as fast as the other.  Would it be
 wise to conclude that the slower OS is woefully inefficient compared to
 the faster one?  Suppose both tests turn out to take roughly the same
 time.  Should I conclude that the OS residing on the inside is just as
 efficient as the other OS?
 
 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: FreeBSD MySQL still WAY slower than Linux

2005-06-22 Thread Michael Schuh
Hi Oliver,

2005/6/22, Oliver Fromme [EMAIL PROTECTED]:
 Michael Schuh [EMAIL PROTECTED] wrote:
   now i have another question, if i use the same Os in 2 versions
   (RELENG_4, RELENG_5) can i hope that the tests are made on the same
   part of disk?
 
 yoda
 Hope you always can.  But rely on it you should not.
 /yoda
 ;-)
 
That's right. :-D

or in other words can an dd on the two OS' es so much different
   because they use an
   totally other part of disk? I think no, the strategie from dd under
   one OS should not be changed if the OS-Version has changed.
 
 It's not the dd which decides where to put the file, it's
 the filesystem code.  And yes, there can be differences
 between RELENG_4 and RELENG_5.  In particular, in RELENG_5
 you have UFS2, not the old UFS.  There have always been
 changes to the FS code, for example I remember that the
 allocation of directories has changed some time ago to
 improve metadata performance for large trees (known as
 dirpref).
 
 As I said:  The only way to make sure you hit the same
 physical place on the disk is to use a raw partition, not
 a file on some filesystem.
 

Yes i have that understand.
And that was the reason why i make in future these tests new
with an raw-partition on the same part of disk. so that i never must hope,
so i become knowledge and i know the facts :-D

 Note that even small differences in the placement of the
 file can have a noticeable effect on the speed.  Apart
 from the speed differences of the disk cylinders, it can
 also happen that the file is allocated in a non-contiguous
 way, especially if it is large and the filesystem already
 contains a lot of files, and/or had a lot of write+delete
 operations previously (i.e. causing fragmentation).
 

yes this is also clear for me, but in my case, it was only a small
disk (8GB) and it has only the OS, nothing more, nothing less.

And as i made these tests, i have all the performance for me and my
OS. *gr* i be the master of disaster.. *lol*
We should have all more humor...the life it's more funny..

   the part with serial IO related to database-performance have i
   understand, but i quests me have the others understand
   my meanings?
 
i must hope so :-D, i can not sure

 That I don't know.
 
 Best regards
Oliver
 
 --
 Oliver Fromme, secnetix GmbH  Co KG, Oettingenstr. 2, 80538 München
 Any opinions expressed in this message may be personal to the author
 and may not necessarily reflect the opinions of secnetix in any way.
 
 anyone new to programming should be kept as far from C++ as
 possible;  actually showing the stuff should be considered a
 criminal offence -- Jacek Generowicz
 
thank you for your suggestions

best regards

Michael Schuh
___
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-21 Thread Michael Schuh
hello,

first sorry for my bad english, with noop i mean no operation.

i can live with a better performance from postgresql under RELENG_5 :-D
i find it great.

As i sayed i have the installations always made in the same way, so that i mean.
I mean i have alwas made the swap on the first gig of the disk, and
the installation
on the rest of the disk. and i have no multiple os'es on these disk.

I know that other diskpart's have other performance.. :-D

i mean i have really strictly regarded where my os'es are installed
for these tests.

what i not can ensure, is that the Gentoo uses the same parts for the
programs, relying
of the implemantation from ext2fs/ext3fs than BSD under UFS.

But i think really that are enough reasons to say this test speaking a
real language,
and gave me not bad results.

I be not a noob or an newby, so that i know that the io performance of a disk is
related to the sectors that i use for regarding this performance. :-D

i have made the test always on the same hardware, not compatible or equal,
really the same, same disk, same processor, same board, same ram, same
ethernet-card,
all same

i would not say look for a faster io-performance, that is not the only
factor for database performance, but what is when your disk-access 
uses the double of time as before?

then can you not say ohhh my problem is not related to disk-io ;-)

i would not say that the io of disk ist the only important factor, but
it is in fact an
important factor.

make a simple test: install a database-intensive application on an PII400
with DDRS-4,3GB SCSI-disk and make 500.000 inserts in an postgresql and an mysql
database. so you can see that it uses many many time, change the disk to an 
ATA66 disk with good performance (better then the DDRS or DCAS) and
then you see,
that the disk-prformance is an important fact.

i would you only make sensible for the view that you cannot only digging at the
ipc-performance or the threading. I know that are also important factors,
but what is if the base of all of these factors are lame?

then you are lying on an mixed error behaviour that are not really
representative.
you search the error in first time on the wrong place.

i think first view the diskperformance in versus of the Os'es and the
versions, then
digging deeper and search the oil in threading.:-))

i woul not start a principle discussion, that is not my target, my
target is an really performant OS, that go's he's way forward and not
backward's.

I have seen that the disk-performance (ata-related) is much slower in
RELENG_5 than in
RELENG_4, and this is a step backwards to me, if its so much slower.

about five or ten percent is not really bad an can comes from an other
scheduling, as you can see in dragonfly, but halv as good as before
ist for me not acceptable for
production uses.

best regards

michael

2005/6/21, Mark Kirkwood [EMAIL PROTECTED]:
 Michael Schuh wrote:
  Hello,
 
  yes random IO is more targetted to Databases.
  noop, i have the installation always made in the same way, and i have 
  respected
  the different diskperformace in different disk-parts.
  this was the reason for
 
  #cd /;
 
  at the beginning of my tests.
  In the first test i have me shooting self in my foot and i bites me in
  my ass :-)))
 
 
 I was referring to the partitions and slices on the physical disk - each
 operating system is installed in a different one of these, and so is in
 a different physical part of the disk - hence you cannot reliably
 compare IO rates between them (This very issue has been discussed before
 I recall - try a Google search, as it is quite interesting).
 
  my suggestion going more in the direction...first solve all disk(ata) 
  related
  performace issues, then test the mysql-performaces issues again to secure
  that you are not lying on an mixing of many problems :-)
 
 
 While noone would complain about faster sequential IO, it is almost
 certainly not the issue effecting database performance - for instance I
 find Postgresql consistently faster on RELENG_5 (5.3 onwards) than on
 RELENG_4 (using the pgbench program).
 
 cheers
 
 Mark
 

___
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-21 Thread Michael Schuh
Hello Oliver,

ah, that are the hint that i missed.

now i have another question, if i use the same Os in 2 versions
(RELENG_4, RELENG_5) can i hope that the tests are made on the same
part of disk?
 or in other words can an dd on the two OS' es so much different
because they use an
totally other part of disk? I think no, the strategie from dd under
one OS should not be changed if the OS-Version has changed.

the part with serial IO related to database-performance have i
understand, but i quests me have the others understand
my meanings?

best regards


Michael Schuh



2005/6/21, Oliver Fromme [EMAIL PROTECTED]:
 Michael Schuh [EMAIL PROTECTED] wrote:
   As i sayed i have the installations always made in the same way, so that i 
 mean.
   I mean i have alwas made the swap on the first gig of the disk, and
   the installation
   on the rest of the disk. and i have no multiple os'es on these disk.
 
 The problem is that the file (from dd of=foo) can still
 end up at completely different physical places on the disk.
 
 It depends on the filesystem (ext2, ext3, UFS, whatever)
 and on the allocation strategies of the filesystem code.
 UFS might start filling cylinder groups from the beginning
 of the disk, while ext3 might start at the end (does ext3
 even _have_ cylinder groups?).  This was just an example,
 but you get the idea.
 
 Of course, it also depends on how much data there already
 is on the filesystem, and how it is distributed over the
 disk.
 
 For accurate measurements and comparisons, you have to make
 sure to use _exactly_ the same physical location on the
 disk.  From userland you don't have a way to control the
 physical allocation of files.  Therefore, the only reliable
 way is to leave an unused partition on the disk, do _not_
 put a filesystem on it, and use the raw device in the »dd«
 command.  If you do this, you will always hit the same
 physical location on the disk.
 
 But then again -- as others have already mentioned, serial
 write speed is not the most important factor for database
 performance (although the WAL journal files of advanced
 transactional databases like PostgreSQL are written in a
 sequential way), so the usefulness of this benchmark is
 very debatable.
 
 Best regards
Oliver
 
 --
 Oliver Fromme, secnetix GmbH  Co KG, Oettingenstr. 2, 80538 München
 Any opinions expressed in this message may be personal to the author
 and may not necessarily reflect the opinions of secnetix in any way.
 
 I started using PostgreSQL around a month ago, and the feeling is
 similar to the switch from Linux to FreeBSD in '96 -- 'wow!'.
 -- Oddbjorn Steffensen

___
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-20 Thread Michael Schuh
Hello,

i follows up these thread and i think you all digging on the false
possible error location..

I have made many performance tests with RELENG_4 related to RELENG_5
and DragonFly and Gentoo.

My results was that RELENG_5 is half as RELENG_4 fast by disk-access
(ata-related).

I have seen that RELENG_5 with GENERIC Kernel and only modified option HZ=2000.

the spread begind with Gentoo (mentoided from me as the slowest, but
errare humanum est)

Gentoo : 100% time consumption
RELENG_4: 67% time consumtion
DrangonFly Rel1.2 69-72% time consumption (i think preemtion)
RELENG_5 134% time consumtion

these tests are made on physically the same Hardware (real, not equal
system, same system, same disk, same RAM) with the command:

# cd /; /usr/bin/time dd if=/dev/zero bs=1024 count=1024k of=zerofile;
rm zerofile

the tests are made more then 3 times/period/system.
I have made the tests to the beginning of stable-5, and by the release 5.4.
after the Release from DragonFly.

By the first time i have made a mailing on stable, and i become the
answer thath these issues become fixed on RELENG_6.

so i think you have to wait on the developers :-((

best regards

Michael
___
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-20 Thread Michael Schuh
Hello,

yes random IO is more targetted to Databases.
noop, i have the installation always made in the same way, and i have respected
the different diskperformace in different disk-parts.
this was the reason for

#cd /; 

at the beginning of my tests.
In the first test i have me shooting self in my foot and i bites me in
my ass :-)))
 
my suggestion going more in the direction...first solve all disk(ata) related
performace issues, then test the mysql-performaces issues again to secure
that you are not lying on an mixing of many problems :-)

I think this was better then seek around corners that are not so relevant... or
the result is not so dramatically

greetings

Michael


2005/6/20, Mark Kirkwood [EMAIL PROTECTED]:
 Michael Schuh wrote:
 
 
  My results was that RELENG_5 is half as RELENG_4 fast by disk-access
  (ata-related).
 
  I have seen that RELENG_5 with GENERIC Kernel and only modified option 
  HZ=2000.
 
  the spread begind with Gentoo (mentoided from me as the slowest, but
  errare humanum est)
 
  Gentoo : 100% time consumption
  RELENG_4: 67% time consumtion
  DrangonFly Rel1.2 69-72% time consumption (i think preemtion)
  RELENG_5 134% time consumtion
 
  these tests are made on physically the same Hardware (real, not equal
  system, same system, same disk, same RAM) with the command:
 
  # cd /; /usr/bin/time dd if=/dev/zero bs=1024 count=1024k of=zerofile;
 
 
 
 You have shown that sequential IO is slower in RELENG_5 (I think others
 have observed this also - check out Google)...However, random IO is
 often more important for databases, and RELENG_5 can be faster than
 RELENG_4 (try out iozone, it makes testing this easy).
 
 Also note that if your operating systems are installed in different
 parts of the same disk, then this will effect your results too - as some
 parts are faster than others.
 
 With respect to Mysql performance, I would suspect threading or
 threading/kernel interaction as the culprit. (That reminds me, I don't
 recall seeing the original poster re-doing the tests with 6.0-CURRENT -
 that would be interesting).
 
 cheers
 
 Mark
 

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


Re: /usr/local/etc/rc.d/*.sh not working?

2005-06-15 Thread Michael Schuh
Hi,

i have follows your trouble with rc-scripts.
now im usind BSD for many years and i know! that *sh-ish rc-scripts
should be supported. But this is not my interest.

you have writte that the boxes with these behavior was updated from
RELENG_4 to RELENG_5? right?

if so double-check all these thinks you are doit to update
reread the migration-guide and diff the rc-scripts and the binaries.

my suggestion is somthing was going wrong with the update..
if the restly enviroment was leaved (profiles etc...)

regards

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


Re: freebsd-stable Digest, Vol 109, Issue 6

2005-05-11 Thread Michael Schuh
Hi,

i think the setting of HZ has nothing to do with DEVICE_POLLING at once.
So the Documentation say's DEVICE_POLLING is an Other way to get the
Packets from the Ethernet.

I have setted HZ=2000 on all my machines, equal if the Processor is an PI 200MHz
or an PIII 866MHz

In fact this setting gave me the best results on:

PI200 w/o MMX
PI200 w/ MMX
AMDK6-300
AMDK6-450
PIII 866
Athlon XP2000+

All Machines i have used with xL devies like 3C905B, Cyclone and the other
3C905's.

Only difference between the real Problem and my Enviroments is i use only
RELENG_4 (i be a little pedantic and konservative with stability and
performance).

greetings

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


Re: xl(4) polling

2005-05-11 Thread Michael Schuh
Sorry for my wrong posting
Hi,

i think the setting of HZ has nothing to do with DEVICE_POLLING at once.
So the Documentation say's DEVICE_POLLING is an Other way to get the
Packets from the Ethernet.

I have setted HZ=2000 on all my machines, equal if the Processor is an PI 200MHz
or an PIII 866MHz

In fact this setting gave me the best results on:

PI200 w/o MMX
PI200 w/ MMX
AMDK6-300
AMDK6-450
PIII 866
Athlon XP2000+

All Machines i have used with xL devies like 3C905B, Cyclone and the other
3C905's.

Only difference between the real Problem and my Enviroments is i use only
RELENG_4 (i be a little pedantic and konservative with stability and
performance).

greetings

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


Disk-Performace issue?

2005-05-10 Thread Michael Schuh
Hello,

i have the following Problemdescription.
I work on an AMD 2000+ with 2*160GB-Disks
The Diskperformance tested with bonnie or great filewrites/reads with dd
from /dev/zero or /dev/urandom gaves me an Value from 40-55 MBytes/s.

Now i have 2 Directories with ~500.000-600.000 files with an size of ~5kByte.
by copying the files from one disk to another or an direktory on the same disk
(equal behavior), i can see this behavior:

on an PIII 866 the first ~100.000 - 150.000 files
on an AMDK6II450 the first ~100.000 - 120.000 files
on the AMD2000+ the first ~200.000 - 220.000 files
are copied with an relative good performance.

After this count of files are copied, the system-load get higher,
cppustate ist 0,0% idle and the system uses ~80-90%cpu-load,
rest goin to intr and user

As base i use RELENG_4.

Can anyone explain me from where this behavior can come?
Come thie eventually from the filesytem, or from my disks, so that
these are to hot? (I think not)

I have tried out following commands to copy:
tar -cf - . | ( cd destdir; tar -xf .) #the fastest and my lovely :-)
find ./ -type f |cpio -pm destdir # half-performace as tar
rsync -av sourcedir/ destdir/ # smarter then tar but bad performace

mv or any other are not testet while i surely run in to the too many
Arguments Problem

thank you for your suggestions

regards

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


Re: Disk-Performace issue?

2005-05-10 Thread Michael Schuh
Sorry not my day,

i have forgotten to tell you that not only the system load get higher,
also the transferrate run under 500kBytes/s from one to another moment.
The first files get copied with 3-9 MBytes/s.

Thank you.

Michael

2005/5/10, Michael Schuh [EMAIL PROTECTED]:
 Hello,
 
 i have the following Problemdescription.
 I work on an AMD 2000+ with 2*160GB-Disks
 The Diskperformance tested with bonnie or great filewrites/reads with dd
 from /dev/zero or /dev/urandom gaves me an Value from 40-55 MBytes/s.
 
 Now i have 2 Directories with ~500.000-600.000 files with an size of ~5kByte.
 by copying the files from one disk to another or an direktory on the same disk
 (equal behavior), i can see this behavior:
 
 on an PIII 866 the first ~100.000 - 150.000 files
 on an AMDK6II450 the first ~100.000 - 120.000 files
 on the AMD2000+ the first ~200.000 - 220.000 files
 are copied with an relative good performance.
 
 After this count of files are copied, the system-load get higher,
 cppustate ist 0,0% idle and the system uses ~80-90%cpu-load,
 rest goin to intr and user
 
 As base i use RELENG_4.
 
 Can anyone explain me from where this behavior can come?
 Come thie eventually from the filesytem, or from my disks, so that
 these are to hot? (I think not)
 
 I have tried out following commands to copy:
 tar -cf - . | ( cd destdir; tar -xf .) #the fastest and my lovely :-)
 find ./ -type f |cpio -pm destdir # half-performace as tar
 rsync -av sourcedir/ destdir/ # smarter then tar but bad performace
 
 mv or any other are not testet while i surely run in to the too many
 Arguments Problem
 
 thank you for your suggestions
 
 regards
 
 michael

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


Re: Disk-Performace issue?

2005-05-10 Thread Michael Schuh
Hallo Charles,

thank you for this hint, but this is not the source
i have this option as default in my kernels.

Iknow that putting tons of files in one directory is not really good for the
performance. I think also that the way get better by using subdirs.

But my problem ist that the performance fall from one moment to
another from 100% to ~10% this was not linear, ist was not a
ramp, it was the grand canion or the Eiger Nordwand.  :-))

not that the performance at all is bad.



Thank you for your Hint

Michael

2005/5/10, Charles Swiger [EMAIL PROTECTED]:
 On May 10, 2005, at 6:46 AM, Michael Schuh wrote:
  Now i have 2 Directories with ~500.000-600.000 files with an size of
  ~5kByte.
  by copying the files from one disk to another or an direktory on the
  same disk
  (equal behavior), i can see this behavior:
  [ ... ]
  Can anyone explain me from where this behavior can come?
  Come thie eventually from the filesytem, or from my disks, so that
  these are to hot? (I think not)
 
 Directories are kept as lists.  Adding files to the end of a list takes
 a longer time, as the list gets bigger.  There is a kernel option
 called DIRHASH (UFS_DIRHASH?) which can be enabled which will help this
 kind of situation out significantly, but even with it, you aren't going
 to get great performance when you put a half-million files into a
 single directory.
 
 Try breaking this content up into one or two levels of subdirectories.
 See the way the Squid cache works...
 
 --
 -Chuck
 

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


SOLVED Disk-Performace issue?

2005-05-10 Thread Michael Schuh
Hello,

thanks to all who gave me any suggestion on my
request.

The Tip from Charles was only the beginning.
The last step was to setting vfs.ufs.dirhash_maxmem
via sysctl to an higher value, in my case 20MB.

The copying from all 523000 files has used over 7MB
dirhash_mem.

Now after setting the ufs.dirhash_maxmem i have the performance
from 4-5 MByte/s.

i thanks all people that gave me the Power to serve :-)))

regards

Michael

2005/5/10, Charles Swiger [EMAIL PROTECTED]:
 On May 10, 2005, at 6:46 AM, Michael Schuh wrote:
  Now i have 2 Directories with ~500.000-600.000 files with an size of
  ~5kByte.
  by copying the files from one disk to another or an direktory on the
  same disk
  (equal behavior), i can see this behavior:
  [ ... ]
  Can anyone explain me from where this behavior can come?
  Come thie eventually from the filesytem, or from my disks, so that
  these are to hot? (I think not)
 
 Directories are kept as lists.  Adding files to the end of a list takes
 a longer time, as the list gets bigger.  There is a kernel option
 called DIRHASH (UFS_DIRHASH?) which can be enabled which will help this
 kind of situation out significantly, but even with it, you aren't going
 to get great performance when you put a half-million files into a
 single directory.
 
 Try breaking this content up into one or two levels of subdirectories.
 See the way the Squid cache works...
 
 --
 -Chuck
 

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


Re: Xorg 6.8.1

2005-03-01 Thread Michael Schuh
Hi,

i have relatively early updated my XFree to Xorg. In Version 6.7.x 
it has an problematic driver for Intel's Ich2 I815 Graphik-Card.

The Developers say's this should be fixed in 6.8.1, may i have seen that
it's not really. The failures are a little bit less then fromer with
6.7.x but it's
the same feeling. Just open on this box an Firefox or Mozilla window, with
an big Page ( like handbook in single page) and scroll with your mouse-wheel
up and down, then it was a good chance that the XServer crashes. 

The really reason couldnt found by me, may it crashes 2 or 3 times a day.

may i think this is only related to i815. on other boxes i couldnt
repeat this behavior.

The Upgrade from Xfree to xorg was really good described in /usr/ports/UPGRADING
and was without problems, but the handling of different keyboard-type
is a little bit different
(eg. for german users), but no really a problem.


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


Missing Man-Pages in RELENG_4

2005-01-05 Thread Michael Schuh
Hi,

i miss the manpages for ipf.conf ipnat.conf
under RELENG_4 last updated 2005-01-05
via cvsup.

thanks

regards

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


is it possible to mount a vinum-fs on 2 hosts?

2004-12-09 Thread Michael Schuh
Hello,

i have a little problem.

I hav Host A   andHost B  both are connected to an SAN
through an QLA2200 Fibre-Channel (man isp).
On the SAN are 14 Disks da0-da13 these Disks are configured
w/ vinum to an RAID 10 Filesystem.

Now i have the Problem i would make Host A to an PDC and
HOST B to an BDC. 
To be redundant in an fail of the PDC (Host A) i would have access to the SAN
from BDC (Host B).

Now i Know the Problem of an already mounted Filesystem.
I would mount the Filesystem on both Hosts, may i cannot update
the Filesystemdescriptors from Host A on Host B.

Give it an option or knob for these problematic situation,
or must i  junk through the Shell-Scripting-Hell with ping/pong...;-)

Can anyone help me?

Tahnks for your interrest an Help.

Greetings

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


vinum crashes the Box by using more then ten disks on RELENG_4

2004-12-08 Thread Michael Schuh
Hi,

Ihas following System dmesg:

Copyright (c) 1992-2004 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 4.10-STABLE #1: Tue Nov 30 14:26:29 CET 2004
  [EMAIL PROTECTED]:/usr/obj/usr/src/sys/MYGENERIC
  Timecounter i8254  frequency 1193182 Hz
  CPU: Intel Pentium III (993.33-MHz 686-class CPU)
 Origin = GenuineIntel  Id = 0x686  Stepping = 6
  
Features=0x383fbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CM
  OV,PAT,PSE36,MMX,FXSR,SSE
  real memory  = 1342169088 (1310712K bytes)
config en apm0
config q
avail memory = 1299566592 (1269108K bytes)
Changing APIC ID for IO APIC #0 from 0 to 2 on chip
Changing APIC ID for IO APIC #1 from 0 to 3 on chip
Programming 16 pins in IOAPIC #0
Programming 16 pins in IOAPIC #1
   FreeBSD/SMP: Multiprocessor motherboard: 2 CPUs
cpu0 (BSP): apic id:  1, version: 0x00040011, at 0xfee0
cpu1 (AP):  apic id:  0, version: 0x00040011, at 0xfee0
io0 (APIC): apic id:  2, version: 0x000f0011, at 0xfec0
io1 (APIC): apic id:  3, version: 0x000f0011, at 0xfec01000
Preloaded elf kernel kernel at 0xc0564000.
Preloaded userconfig_script /boot/kernel.conf at 0xc056409c.
Pentium Pro MTRR support enabled
md0: Malloc disk
Using $PIR table, 11 entries at 0xc00fc320
npx0: math processor on motherboard
npx0: INT 16 interface
pcib0: ServerWorks NB6635 3.0LE host to PCI bridge on motherboard
IOAPIC #1 intpin 15 - irq 2
IOAPIC #1 intpin 1 - irq 10
IOAPIC #1 intpin 0 - irq 11
pci0: PCI bus on pcib0
pcib1: PCI to PCI bridge (vendor=8086 device=0962) at device 2.0 on pci0
IOAPIC #1 intpin 14 - irq 13
pci1: PCI bus on pcib1
ahc0: Adaptec aic7880 Ultra SCSI adapter port 0xfc00-0xfcff mem
0xfcfff000-0xf
cff irq 13 at device 6.0 on pci1
ahc0: Adaptec aic7880 Ultra SCSI adapter port 0xfc00-0xfcff mem 0xfcfff000-0xf
cff irq 13 at device 6.0 on pci1
aic7880: Ultra Single Channel A, SCSI Id=7, 16/253 SCBs
aac0: Dell PERC 2/Si mem 0xf400-0xf7ff irq 2 at device 2.1 on pci0
aac0: i960RX 100MHz, 54MB cache memory, no battery support
aac0: Kernel 2.8-0, Build 6089, S/N  c10d0
aac0: Supported Options=2558DATA64,HOSTTIME,WINDOW4GB,SOFTERR,SGMAP64
xl0: 3Com 3c905B-TX Fast Etherlink XL port 0xec80-0xecff mem
0xfe103000-0xfe10
307f irq 10 at device 4.0 on pci0
xl0: Ethernet address: 00:10:5a:d0:09:69
miibus0: MII bus on xl0
xlphy0: 3Com internal media interface on miibus0
xlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Intel 82559 Pro/100 Ethernet port 0xec40-0xec7f mem
0xfe00-0xfe0
f,0xfe102000-0xfe102fff irq 11 at device 8.0 on pci0
fxp0: Ethernet address 00:b0:d0:ab:58:dd
inphy0: i82555 10/100 media interface on miibus1
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pci0: ATI model 4759 graphics accelerator at 14.0
isab0: ServerWorks IB6566 PCI to ISA bridge at device 15.0 on pci0
 isa0: ISA bus on isab0
ohci0: OHCI (generic) USB controller mem 0xfe10-0xfe100fff
irq 5 at device
15.2 on pci0
usb0: OHCI version 1.0, legacy support
usb0: OHCI (generic) USB controller on ohci0
usb0: USB revision 1.0
uhub0: (0x1166) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
pcib2: ServerWorks NB6635 3.0LE host to PCI bridge on motherboard
IOAPIC #1 intpin 12 - irq 14
IOAPIC #1 intpin 8 - irq 16
IOAPIC #1 intpin 4 - irq 17
pci2: PCI bus on pcib2
isp0: Qlogic ISP 2200 PCI FC-AL Adapter port 0xdc00-0xdcff mem
0xef00-0xef
000fff irq 14 at device 6.0 on pci2
xl1: 3Com 3c905B-TX Fast Etherlink XL port 0xd880-0xd8ff mem
0xef001400-0xef00
147f irq 16 at device 10.0 on pci2
xl1: Ethernet address: 00:50:04:ed:af:2f
miibus2: MII bus on xl1
xlphy1: 3Com internal media interface on miibus2
 miibus2: MII bus on xl1
xlphy1: 3Com internal media interface on miibus2
xlphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
xl2: 3Com 3c905B-TX Fast Etherlink XL port 0xd800-0xd87f mem
0xef001000-0xef00
107f irq 17 at device 14.0 on pci2
xl2: Ethernet address: 00:50:04:53:9e:63
miibus3: MII bus on xl2
xlphy2: 3Com internal media interface on miibus3
xlphy2:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
orm0: Option ROMs at iomem 0xc-0xc7fff,0xc9000-0xccfff on isa0
pmtimer0 on isa0
fdc0: NEC 72065B or clone at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: 1440-KB 3.5 drive on fdc0 drive 0
ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0
ata1 at port 0x170-0x177,0x376 irq 15 on isa0
atkbdc0: Keyboard controller (i8042) at port 

vinum crashes by using more then 11 disks on RELENG_4

2004-12-08 Thread Michael Schuh
Hi,

Ihas following System dmesg:

Copyright (c) 1992-2004 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 4.10-STABLE #1: Tue Nov 30 14:26:29 CET 2004
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/MYGENERIC
Timecounter i8254  frequency 1193182 Hz
CPU: Intel Pentium III (993.33-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0x686  Stepping = 6
  Features=0x383fbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CM
OV,PAT,PSE36,MMX,FXSR,SSE
real memory  = 1342169088 (1310712K bytes)
config en apm0
config q
avail memory = 1299566592 (1269108K bytes)
Changing APIC ID for IO APIC #0 from 0 to 2 on chip
Changing APIC ID for IO APIC #1 from 0 to 3 on chip
Programming 16 pins in IOAPIC #0
Programming 16 pins in IOAPIC #1
FreeBSD/SMP: Multiprocessor motherboard: 2 CPUs
 cpu0 (BSP): apic id:  1, version: 0x00040011, at 0xfee0
 cpu1 (AP):  apic id:  0, version: 0x00040011, at 0xfee0
 io0 (APIC): apic id:  2, version: 0x000f0011, at 0xfec0
 io1 (APIC): apic id:  3, version: 0x000f0011, at 0xfec01000
Preloaded elf kernel kernel at 0xc0564000.
Preloaded userconfig_script /boot/kernel.conf at 0xc056409c.
Pentium Pro MTRR support enabled
md0: Malloc disk
Using $PIR table, 11 entries at 0xc00fc320
npx0: math processor on motherboard
npx0: INT 16 interface
pcib0: ServerWorks NB6635 3.0LE host to PCI bridge on motherboard
IOAPIC #1 intpin 15 - irq 2
IOAPIC #1 intpin 1 - irq 10
IOAPIC #1 intpin 0 - irq 11
pci0: PCI bus on pcib0
pcib1: PCI to PCI bridge (vendor=8086 device=0962) at device 2.0 on pci0
IOAPIC #1 intpin 14 - irq 13
pci1: PCI bus on pcib1
ahc0: Adaptec aic7880 Ultra SCSI adapter port 0xfc00-0xfcff mem 0xfcfff000-0xf
cff irq 13 at device 6.0 on pci1
aic7880: Ultra Single Channel A, SCSI Id=7, 16/253 SCBs
aac0: Dell PERC 2/Si mem 0xf400-0xf7ff irq 2 at device 2.1 on pci0
aac0: i960RX 100MHz, 54MB cache memory, no battery support
aac0: Kernel 2.8-0, Build 6089, S/N  c10d0
aac0: Supported Options=2558DATA64,HOSTTIME,WINDOW4GB,SOFTERR,SGMAP64
xl0: 3Com 3c905B-TX Fast Etherlink XL port 0xec80-0xecff mem 0xfe103000-0xfe10
307f irq 10 at device 4.0 on pci0
xl0: Ethernet address: 00:10:5a:d0:09:69
miibus0: MII bus on xl0
xlphy0: 3Com internal media interface on miibus0
xlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Intel 82559 Pro/100 Ethernet port 0xec40-0xec7f mem 0xfe00-0xfe0
f,0xfe102000-0xfe102fff irq 11 at device 8.0 on pci0
fxp0: Ethernet address 00:b0:d0:ab:58:dd
inphy0: i82555 10/100 media interface on miibus1
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pci0: ATI model 4759 graphics accelerator at 14.0
isab0: ServerWorks IB6566 PCI to ISA bridge at device 15.0 on pci0
isa0: ISA bus on isab0
ohci0: OHCI (generic) USB controller mem 0xfe10-0xfe100fff irq 5 at device
 15.2 on pci0
usb0: OHCI version 1.0, legacy support
usb0: OHCI (generic) USB controller on ohci0
usb0: USB revision 1.0
uhub0: (0x1166) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
pcib2: ServerWorks NB6635 3.0LE host to PCI bridge on motherboard
IOAPIC #1 intpin 12 - irq 14
IOAPIC #1 intpin 8 - irq 16
IOAPIC #1 intpin 4 - irq 17
pci2: PCI bus on pcib2
isp0: Qlogic ISP 2200 PCI FC-AL Adapter port 0xdc00-0xdcff mem 0xef00-0xef
000fff irq 14 at device 6.0 on pci2
xl1: 3Com 3c905B-TX Fast Etherlink XL port 0xd880-0xd8ff mem 0xef001400-0xef00
147f irq 16 at device 10.0 on pci2
xl1: Ethernet address: 00:50:04:ed:af:2f
miibus2: MII bus on xl1
xlphy1: 3Com internal media interface on miibus2
xlphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
xl2: 3Com 3c905B-TX Fast Etherlink XL port 0xd800-0xd87f mem 0xef001000-0xef00
107f irq 17 at device 14.0 on pci2
xl2: Ethernet address: 00:50:04:53:9e:63
miibus3: MII bus on xl2
xlphy2: 3Com internal media interface on miibus3
xlphy2:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
orm0: Option ROMs at iomem 0xc-0xc7fff,0xc9000-0xccfff on isa0
pmtimer0 on isa0
fdc0: NEC 72065B or clone at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: 1440-KB 3.5 drive on fdc0 drive 0
ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0
ata1 at port 0x170-0x177,0x376 irq 15 on isa0
atkbdc0: Keyboard controller (i8042) at port 0x60,0x64 on isa0
atkbd0: AT Keyboard flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: PS/2 Mouse irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
vga0: Generic ISA VGA at port 0x3c0-0x3df iomem 0xa-0xb on isa0
sc0: System console at flags 0x100 on isa0
sc0: VGA 16 virtual consoles, flags=0x300
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
ppc0: Parallel port at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
plip0: PLIP network 

Re: serious networking (em) performance (ggate and NFS)/Performance issues

2004-11-19 Thread Michael Schuh
My Problem seems to be related to the VIA-Chipset drivers in
Kernel.

My problem with the performance is not related to a specific
networkdriver. I have made multiple tests with multible networkcards.

I have not made any test with RELENG_5 and other mainboard's
w/o via chipsets. 

I have made the tests as described with RELENG_4 and RELENG_5
and only RELENG_5 has the problem with the VIA chipset.

The chipset is known as VIA MVP3.

best regards
michael


On Thu, 18 Nov 2004 15:29:16 -0800, Kris Kennaway [EMAIL PROTECTED] wrote:
 On Thu, Nov 18, 2004 at 10:29:17PM +0100, Michael Schuh wrote:
 
 
  From: Michael Schuh [EMAIL PROTECTED]
  Date: Thu, 18 Nov 2004 22:13:00 +0100
  Subject: Re: serious networking (em) performance (ggate and
  NFS)/Performance issues
  To: [EMAIL PROTECTED]
 
 
  Hi,
 
  i have same serious problems.
  I don't repeate the posting, and describe my tests that i have made
  with RELENG_5 (Original Release)  and RELENG_4
 
 It's already been mentioned in this thread that 5.3-R contained a
 performance bug in the em driver, and you should update to 5.3-STABLE.
 From the above it sounds like you've only tried 5.3-RELEASE.
 
 Kris
 
 

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


serious networking (em) performance (ggate and NFS)/Performance issues

2004-11-18 Thread Michael Schuh
From: Michael Schuh [EMAIL PROTECTED]
Date: Thu, 18 Nov 2004 22:13:00 +0100
Subject: Re: serious networking (em) performance (ggate and
NFS)/Performance issues
To: [EMAIL PROTECTED]


Hi,

i have same serious problems.
I don't repeate the posting, and describe my tests that i have made
with RELENG_5 (Original Release)  and RELENG_4

My Hardware scenario:
Server
PIII 866MHz
512MB RAM
OS-Disk
SCSI- DNES IBM
3*UDMA66-Drives as Concat with ~140G
Rsync with SO_KEEPALIVE
3COMXL (3C905-Combo)

Client
AMD K6-2 450MHz
384 MB RAM
UDMA33-Disks
3COMXL (xl,all models)
DEC21143 (Tulip, dc)
RTL8139(rl)

The only differences between the Tests are the OS_versions.
In Both OS-Versions all the Binaries and the Kernel are compiled on the
Client. For RELENG_4 CPUTYPE=i586, RELENG_5 CPUTYPE is overwritten in
/etc/make.conf as k6-2. Both kernels are GENERIC except the following Options:

cpu i586 #only
options HZ=2000
options DEVICE_POLLING

The Serverside was constant RELENG_4 with same options.
On the Server i has pure DISK I/o-Rates from ~20 MB for wirte and
~30MB for read, so that these not could be the bottleneck.

The only bottleneck in the system are the capability of max working interrupts
and physically the Network. The Boxes are connectet with daetwyler
cat. 5e through
an 100MBit exclusive switch that would only be used from these two boxes.

In all the Tests i have made only a Push from Client to server, while
i have seen that the
Server is not the Problem. I have alwas used the same Data to transfer
(gziped dump -0 from
my systems ca 5.3G)
All the tests are made with only one of the described networkadapters
on the same Time,
the problems seems not to be on the driver side.Maybe?

The interruptrates and transfers disk I/Os:
RELENG_4
Client maxinterrupt ~11000/s
Client maxpackages ~6000/s
Client Disk i/o read~7-8MB/s
Transferrates  ~7-8MB/s similar to Disktraffic

RELENG_5
Cleint maxinterrupt ~7000/s
Client maxpackages ~2500-3000/s
Client Disk i/o read ~3-4MB/s
Transferrates ~3-4MB similar to Disktraffic

Is now the Diskdriver the Problem or the networklayer?
Who has also these expieriences?

This made me a little bit ugly, and i think i should be conservative
and stay on RELENG_4. Or is this the price for the new technologie features?
In the first moment i have thinking i have a linux box and not FreeBSD.

Can the Developers made us happy with the good old high performance from
RELENG_4 on RELENG_5??

we hope the best.

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


Re: why was /etc/defaults/make.conf not updated

2004-11-08 Thread Michael Schuh
Hi,

sorry, i have forgotten to say, the informations over
the change of the Variables have i found in /usr/ports/UPDATING.

Sorry


On Fri, 5 Nov 2004 19:37:14 +0100, Michael Schuh
[EMAIL PROTECTED] wrote:
 Hi,
 
 ich have found an entry in /usr/local/ports/UPDATING, that the
 Variable XFREE_VERSION in /etc/make.conf was outdated and changed.
 So we shall use X_WINDOW_SYSTEM=xorg.
 
 I have searched an representing entry in /usr/src/etc/defaults/make.conf,
 and it is not shown. Now i have also shown that the XFree4.4-ports are marked
 as IGNORE. And i questioning me self why is the /etc/defaults/make.conf
 not changed. I have already read that the change should coming.
 
 Is this the right sign to change to Xorg's XFree?
 
 Has anyone an information when this come true, or when the change was
 maked in /usr/src/etc/defaults/make.conf?
 
 The reason to change to Xorg is clearly for me, may not why the
 defaults/make.conf isn't already changed.
 
 Thanks to all and
 best regards
 
 Michael

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


why was /etc/defaults/make.conf not updated

2004-11-05 Thread Michael Schuh
Hi,

ich have found an entry in /usr/local/ports/UPDATING, that the
Variable XFREE_VERSION in /etc/make.conf was outdated and changed.
So we shall use X_WINDOW_SYSTEM=xorg.

I have searched an representing entry in /usr/src/etc/defaults/make.conf,
and it is not shown. Now i have also shown that the XFree4.4-ports are marked
as IGNORE. And i questioning me self why is the /etc/defaults/make.conf
not changed. I have already read that the change should coming.

Is this the right sign to change to Xorg's XFree?

Has anyone an information when this come true, or when the change was
maked in /usr/src/etc/defaults/make.conf?

The reason to change to Xorg is clearly for me, may not why the
defaults/make.conf isn't already changed.

Thanks to all and
best regards

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