Re: Finding active interface and its ip address within a perl script ?

2010-10-11 Thread joshua stein
>   But is there any better ways to work it out ?

you could get the ip of the interface that the default route is
going through:

route -n get default | grep 'if address' | sed 's/.*: //'

or ask ifconfig what is in the egress group and assume the first ip
on the first interface will be ok:

ifconfig egress | grep 'inet ' | head -n1 | awk '{ print $2 }'



Finding active interface and its ip address within a perl script ?

2010-10-11 Thread Aaron Lewis
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,
I'm trying to write a simple script which can grab the ip address of
current active interface.

e.g
iwn0 -> 10.7.22.23/24 , route 10.7.22.254
em0  -> 192.168.133.2/24  , route 192.168.133.1 ( active , 
default route )

Now how can i tell that em0 is active and fetch the local address ?
First thought was to parse output of `ifconfig` , seeking for entries
"status: active" ?
But is there any better ways to work it out ?

Many thanks !


- -- 
Best Regards,
Aaron Lewis - PGP: 0xDFE6C29E
Key Server: http://keyserver.veridis.com
Finger Print: 9482 448F C7C3 896C 1DFE 7DD3 2492 A7D0 DFE6 C29E

No HTML shits , thanks.
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJMs/lFAAoJECSSp9Df5sKe+dwP/Ru/WyCkjgCOKVbu2phzjk36
QltijnJD+Jwgy06/KqifCSiNJ3YOpGSKaDOLrEFLz+vICB5Ks4Xn1mmd6AR7O5dL
LISe4xwE5AfBaPEpdTdoy3/wkxy22P2/H7oLASexUaB969UL23UvO4sOMx2yS763
f+vmfni4InJEZ1Bj3VDd6IP0rhGZZhQ4mnsHViES/w6Mk1mqW+19vnU3mNMdDrTy
XYoxTBSALJPIHj/ji0TIPPKiGMu03Ip3Q9M57rs70ZHvo5smrBYjGe8FExkMkENl
mVYlJqsFfNwU53L4FvjMoK7KJo5j5AEP1lrLqjoJOksWmoZI8WLdiHTXlw5VvBj7
V0Tm2OtspUTkPYTIgYI8RpyD0/GKt47SH4Ve3FbIZncbFBiz/hiQg/XwImdgkk2U
A+hZu8G5YASS+XC+g4Hx4l4mb5NPfDZrM48cuh99Dp9Rsd7jZ6br4Ecd5UBGYPZN
hByxQhos0Q1JdYZcz54vXkcPlw5ZPHyehvKqn04ca9RN0v2ue+Na4yBjecJwm6e/
Rn6+JyJ94FFLqbaT6whsZKvJcM2G/fy7sdmZm+LckF3LnrlauStgcv+mKETo+aZv
MU3Idrb8ZCpYSIvxNJxlAEXHCBvY2rM/jvnBthKiH2w2dNHApKG8lzFUTGdPCuwY
BuaQB5kgdWDB2iS7D3Kl
=/TPV
-END PGP SIGNATURE-



iMex 5a. Edición - Google Analytics, Advergames, Streaming, Realidad Aumentada y Mucho Más

2010-10-11 Thread Lic. Adriana Vargas
Para mayores informes responda con sus datos completos o bien siga el
link
a continuacisn y llene el formulario anexo para recibir un folleto con
detalles del evento

Congress & Marketing | Capacitacisn por Mixico - Newsletter

Congreso Nacional iMex Internet Marketing Experts

Descargue 

Congreso Nacional iMex Internet Marketing Experts

 25 y 26 de Noviembre de 2010
 Mixico D.F.
 Dma 1 9:00am - 2:30pm y 4:00pm a 8:00pm
 Dma 2 9:00am - 2:30pm

Introduccisn

Vuelve a la Cd. de Mixico el Magno Congreso Internet Marketing Experts
2010 en su V Edicisn. Un evento sin precedentes que propone alternativas
de vanguardia y tecnologma expuestas por lmderes en el ambito.

La mercadotecnia por Internet es altamente rentable, ofrece muchas
ventajas znicas que la publicidad tradicional no puede igualar, asm como
herramientas de alto impacto y desempeqo que desarrollaran un verdadero
vmnculo entre su empresa y su mercado meta.

Digital Marketing
Google Analitycs
Advert Games
Social Media
Mobile Marketing
Realidad Aumentada
y Mas!

Presentado por

Vismtenos en www.afinandoideas.com

Facebook

Twitter

Lic. Adriana Vargas
Sales Development Representative
Line 1: +52 (33) 1201-6898
Line 2: +52 (33) 1562-1784
Line 3: +52 (33) 3110-6502

Preventa Especial 
Hasta el 15 de Octubre
Promocisn Especial a Grupos

Copyright (C) 2010, Congress & Marketing Online S.C. Derechos reservados.
Congress & Marketing, El logo de Congress & Marketing, y Congress &
Marketing Online S.C. son marcas registradas y/o sus filiales en Estados
Unidos, Canada, Colombia, Brasil y Uruguay. ADVERTENCIA Congress &
Marketing no cuenta con alianzas estrategicas de ningun tipo dentro de la
republica mexicana. NO SE DEJE ENGAQAR - DIGA NO A LA PIRATERIA. Todos
los logotipos, marcas comerciales e imagenes son propiedad de sus
respectivas corporaciones y se utilizan con fines informativos solamente.

Este Mensaje ha sido enviado a misc@openbsd.org como usuario de Congress
& Marketing o bien un usuario le refirio para recibir este newsletter.
Como usuario de Congress & Marketing, en este acto autoriza de manera
expresa que Congress & Marketing le puede contactar vma correo
electrsnico u otros medios. Tenga en cuenta que la gestisn de nuestras
bases de datos es de suma importancia y no es intencisn de la empresa la
inconformidad del receptor.



Re: insecure scheduler in OpenBSD 4.7

2010-10-11 Thread Tomas Bodzar
First of all people don't use NVIDIA crap for hosting platform (or any
other use). Or at least they try to avoid it as much as possible. As
you can see in your dmesg you have quite a lot of unsupported parts of
HW (or badly working/set).

It's fault of other OSs' that NVIDIA plays game about "available open
source drivers" and that they want to play it. Couple of NVIDIA
developers said during interviews that they don't care about open
source systems, they develop only for payed systems. And not only SW
part is crap in their case ;-)

Anyway bigger problem is on your side as you don't want to learn or
see differences in OpenBSD design and why is that and more
specifically why it's better. You're looking at it from the point of
view of Linux and other systems because you think that there is
everything fine in them and that it's secure.

On Mon, Oct 11, 2010 at 10:41 PM, Dmitry-T  wrote:
> I'm install OpenBSD 4.7 (dmesg attached)
>
> uname -a
> OpenBSD d1.my.domain 4.7 GENERIC#112 amd64
>
> Run as root:
> dd if=/dev/wd0c of=/dev/null bs=1m &
> dd if=/dev/wd0c of=/dev/null bs=1m &
> dd if=/dev/wd0c of=/dev/null bs=1m &
>
> top
>
> load averages: B 3.12, B 2.50, B 1.49 B  B 16:54:08
> 37 processes: B 36 idle, 1 on processor
> CPU states: B 0.1% user, B 0.0% nice, B 7.3% system, B 3.6% interrupt, 89.1%
idle
> Memory: Real: 35M/339M act/tot B Free: 2393M B Swap: 0K/3071M used/tot
>
> B PID USERNAME PRI NICE B SIZE B  RES STATE B  B  WAIT B  B  B TIME B  B CPU
COMMAND
> B 754 root B  B  -14 B  B 0 2232K 1228K sleep B  B  inode B  B  0:24 B 6.10%
dd
> 25914 root B  B  B -5 B  B 0 2216K 1224K sleep B  B  getblk B  B 0:24
B 6.05% dd
> 21919 root B  B  -14 B  B 0 2204K 1224K sleep B  B  inode B  B  2:08 B 5.96%
dd
>
> iostat wd0 1
>
> B  B  B tty B  B  B  B  B  B wd0 B  B  B  B  B  B  cpu
> B tin tout B KB/t t/s MB/s B us ni sy in id
> B  0 B  B 0 B 2.00 5141 10.04 B  0 B 0 23 13 64
> B  0 B  B 0 B 2.00 5021 9.81 B  0 B 0 16 10 74
> B  0 B 299 B 2.00 5206 10.17 B  0 B 0 21 B 8 71
> B  0 B  B 0 B 2.00 5066 9.90 B  0 B 0 15 B 8 77
>
>
> Run as _normal user_:
> dd if=/dev/urandom of=/dev/null
>
> Try to recover ballance:
> renice 20 -p 30996
> renice -20 -p 21919 25914 754
>
> top
>
> load averages: B 3.53, B 3.55, B 3.00 B  B 17:12:19
> 38 processes: B 1 running, 36 idle, 1 on processor
> CPU states: B 0.0% user, B 0.0% nice, 98.4% system, B 1.6% interrupt, B 0.0%
idle
> Memory: Real: 36M/339M act/tot B Free: 2394M B Swap: 0K/3071M used/tot
>
> B PID USERNAME PRI NICE B SIZE B  RES STATE B  B  WAIT B  B  B TIME B  B CPU
COMMAND
> 30996 teldi B  B 104 B  20 B 216K B 200K run B  B  B  - B  B  B  B  4:48
97.95% dd
> 21919 root B  B  -14 B -20 2204K 1224K sleep B  B  inode B  B  2:15 B 0.15%
dd
> 25914 root B  B  -14 B -20 2216K 1224K sleep B  B  inode B  B  0:31 B 0.00%
dd
> B 754 root B  B  B -5 B -20 2232K 1228K sleep B  B  getblk B  B 0:31 B 0.00%
dd
>
> iostat wd0 1
>
> B  B  B tty B  B  B  B  B  B wd0 B  B  B  B  B  B  cpu
> B tin tout B KB/t t/s MB/s B us ni sy in id
> B  1 B 283 B 2.00 375 0.73 B  0 B 0 99 B 1 B 0
> B  0 B  B 0 B 2.00 374 0.73 B  0 B 0100 B 0 B 0
> B  0 B  B 0 B 2.00 375 0.73 B  0 B 0 98 B 2 B 0
> B  0 B  B 0 B 2.00 382 0.75 B  0 B 0 99 B 1 B 0
>
> Disk read speed fell from 10 Mb/s to 0.8 Mb/s B (22 Mb/s to 0.9 Mb/s in test
with livecd).
> CPU for first three dd (root processes!) fell from 18.1% to 0.2%.
> renice not work in this situation.
>
> It is not secure. One user script or program may load CPU and
> database or another servers lost speed in disk operations.
> This is hole for DOS attacks in OpenBSD design.
>
> How you use the OpenBSD as web servers and hosting platform?
> Permanently catch and kill processes?
>
> --
> Dmitry Telegin
> OpenBSD 4.7 (GENERIC) #112: Wed Mar 17 20:43:49 MDT 2010
> B  B dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
> real mem = 2951479296 (2814MB)
> avail mem = 2864992256 (2732MB)
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf06d0 (66 entries)
> bios0: vendor American Megatrends Inc. version "1001" date 04/19/2006
> bios0: ASUSTeK Computer INC. A8N-VM CSM
> acpi0 at bios0: rev 2
> acpi0: tables DSDT FACP APIC MCFG OEMB
> acpi0: wakeup devices PCE0(S4) PCE1(S4) PCE2(S4) PS2K(S4) PS2M(S4) UAR1(S4)
NSMB(S4) USB0(S4) USB2(S4) NMAC(S5) P0P1(S4) HDAC(S4) MC97(S4) SLPB(S4)
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: AMD Athlon(tm) 64 Processor 3000+, 2169.41 MHz
> cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,MMX,FXSR,SSE,SSE2,SSE3,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
> cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB
64b/line 16-way L2 cache
> cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully
associative
> cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully
associative
> cpu0: AMD erratum 89 present, BIOS upgrade may be required
> cpu0: apic clock runn

Re: Netbook for OpenBSD?

2010-10-11 Thread Дмитрий Царьков
On Tue, Oct 12, 2010 at 4:32 AM, Mikle Krutov  wrote:
> Not only for yota after some time of actual using:
> netbook warms up fast as hell even after apm -L
> zzz (& apm -S & apm -z) does not suspend it
> At least, out of box.
> Dmitry, do you have the same problems?

No temperature issues. My avarage uptime is about a week, and netbook
isn't hot, though I run apmd with "-C" option.

Right now tried zzz for the first time - and it's OK (I'm running
05-Oct-2010 snapshot with Intel Link 5150 disconnected and external
urtw0 device).

-- 
Dmitrij D. Czarkoff



Re: Netbook for OpenBSD?

2010-10-11 Thread Дмитрий Царьков
On Tue, Oct 12, 2010 at 4:32 AM, Mikle Krutov  wrote:
> Not only for yota after some time of actual using:
> netbook warms up fast as hell even after apm -L
> zzz (& apm -S & apm -z) does not suspend it
> At least, out of box.
> Dmitry, do you have the same problems?

No. Mine is generally always on with some rare reboots - and it's
cool, though I run apmd with "-C" option.

-- 
Dmitrij D. Czarkoff



Re: insecure scheduler in OpenBSD 4.7

2010-10-11 Thread Fred Crowson
On 11 October 2010 23:49, Brad Tilley  wrote:
> On 10/11/2010 04:59 PM, Martin Schrvder wrote:
>> 2010/10/11 Dmitry-T :
>>> How you use the OpenBSD as web servers and hosting platform?
>>
>> RTFAQ
>>
>>> Permanently catch and kill processes?
>>
>> man ulimit
>
> What do you see when you man ulimit?

Isn't l33t speak for "hey man your really pushing me up and over the limit?"



Re: insecure scheduler in OpenBSD 4.7

2010-10-11 Thread Brad Tilley
On 10/11/2010 04:59 PM, Martin Schrvder wrote:
> 2010/10/11 Dmitry-T :
>> How you use the OpenBSD as web servers and hosting platform?
> 
> RTFAQ
> 
>> Permanently catch and kill processes?
> 
> man ulimit

What do you see when you man ulimit?

> Best
>Martin



Re: Netbook for OpenBSD?

2010-10-11 Thread Mikle Krutov
On Mon, Oct 11, 2010 at 06:34:20PM +, Mikle Krutov wrote:
> 1) I've bought Acer Aspire One 531 as recommended. Everything works OK. 
> (except for Yota)
Not only for yota after some time of actual using: 
netbook warms up fast as hell even after apm -L
zzz (& apm -S & apm -z) does not suspend it
At least, out of box. 
Dmitry, do you have the same problems?

-- 

Old mercenaries never die. They go to hell and regroup.

With best regards, Mikle Krutov, Bercut ltd. Technical Support department



Re: insecure scheduler in OpenBSD 4.7

2010-10-11 Thread Gilles Chehade
On Tue, Oct 12, 2010 at 02:09:58AM +0400, Dmitry-T wrote:
> 12.10.10, 01:22, "Firas Kraiem" :
> 
> >  You're the naive one. If a user can DOS the system just by doing dd, it
> >  means the system's policy is very weak, so the user can probably just as
> >  well throw a forkbomb.
> 
> dd only example.
> Look around: Linux, Mac OS X, FreeBSD... why defend a design error?
> 

Why don't you use Linux or Mac OS X or FreeBSD then ?

I hear Ubuntu has a new release, you really *really* want to try it
out as it has every single feature you can think off and probably a
lot more. I can only encourage you to go download it and never turn 
back... sshhh... don't say a word, just leave, we'll be ok ;-)

Gilles

-- 
Gilles Chehade



Re: insecure scheduler in OpenBSD 4.7

2010-10-11 Thread Dmitry-T
12.10.10, 01:22, "Firas Kraiem" :

>  You're the naive one. If a user can DOS the system just by doing dd, it
>  means the system's policy is very weak, so the user can probably just as
>  well throw a forkbomb.

dd only example.
Look around: Linux, Mac OS X, FreeBSD... why defend a design error?


-- 
Dmitry Telegin



Re: insecure scheduler in OpenBSD 4.7

2010-10-11 Thread Dmitry-T
12.10.10, 00:59, "Martin SchrC6der" :

> 2010/10/11 Dmitry-T :
>  > How you use the OpenBSD as web servers and hosting platform?
>  
>  RTFAQ

I'm search "hosting" in FAQ and find only 
14.18 - Optimizing disk performance


>  > Permanently catch and kill processes?
>  
>  man ulimit

It is not a panacea.
Web servers have limit for the maximum amount of cpu time, but 
php script can rerun itself.


-- 
Dmitry Telegin



Re: insecure scheduler in OpenBSD 4.7

2010-10-11 Thread Firas Kraiem
On 11/10/2010 23:12, Dmitry-T wrote:
> 12.10.10, 00:54, "Ted Unangst" :
> 
>> On Mon, Oct 11, 2010 at 4:41 PM, Dmitry-T  wrote:
>>  > Run as _normal user_:
>>  > dd if=/dev/urandom of=/dev/null
>>  
>>  > It is not secure. One user script or program may load CPU and
>>  > database or another servers lost speed in disk operations.
>>  > This is hole for DOS attacks in OpenBSD design.
>>  >
>>  > How you use the OpenBSD as web servers and hosting platform?
>>  > Permanently catch and kill processes?
>>  
>>  echo yes | rmuser `ps ua -p \`pgrep dd\` | tail -1 | awk '{print $1}'`
> 
> This is naive :)

You're the naive one. If a user can DOS the system just by doing dd, it
means the system's policy is very weak, so the user can probably just as
well throw a forkbomb.



Re: insecure scheduler in OpenBSD 4.7

2010-10-11 Thread Henning Brauer
* Dmitry-T  [2010-10-11 22:45]:
> How you use the OpenBSD as web servers and hosting platform?
> Permanently catch and kill processes?

you have repeatedly demonstrated that you plain don't understand
a) UNIX
b) the numbers you see
c) the fact that a computer has more ressources than a freakin' CPU
d) much more that I am not willing to work out ofr you

and I for one and sick of tired of you completely unfounded whining
and will not waste more time on it.

and fwiw, i run shitloads of OpenBSD servers for hosting purposes.

-- 
Henning Brauer, h...@bsws.de, henn...@openbsd.org
BS Web Services, http://bsws.de
Full-Service ISP - Secure Hosting, Mail and DNS Services
Dedicated Servers, Rootservers, Application Hosting



Re: insecure scheduler in OpenBSD 4.7

2010-10-11 Thread Dmitry-T
12.10.10, 00:54, "Ted Unangst" :

> On Mon, Oct 11, 2010 at 4:41 PM, Dmitry-T  wrote:
>  > Run as _normal user_:
>  > dd if=/dev/urandom of=/dev/null
>  
>  > It is not secure. One user script or program may load CPU and
>  > database or another servers lost speed in disk operations.
>  > This is hole for DOS attacks in OpenBSD design.
>  >
>  > How you use the OpenBSD as web servers and hosting platform?
>  > Permanently catch and kill processes?
>  
>  echo yes | rmuser `ps ua -p \`pgrep dd\` | tail -1 | awk '{print $1}'`

This is naive :)
dd only example, you need to search users who load CPU.
And with voracious programs you also have to be careful.

-- 
Dmitry Telegin



Re: insecure scheduler in OpenBSD 4.7

2010-10-11 Thread Martin Schröder
2010/10/11 Dmitry-T :
> How you use the OpenBSD as web servers and hosting platform?

RTFAQ

> Permanently catch and kill processes?

man ulimit

Best
   Martin



Re: insecure scheduler in OpenBSD 4.7

2010-10-11 Thread Ted Unangst
On Mon, Oct 11, 2010 at 4:41 PM, Dmitry-T  wrote:
> Run as _normal user_:
> dd if=/dev/urandom of=/dev/null

> It is not secure. One user script or program may load CPU and
> database or another servers lost speed in disk operations.
> This is hole for DOS attacks in OpenBSD design.
>
> How you use the OpenBSD as web servers and hosting platform?
> Permanently catch and kill processes?

echo yes | rmuser `ps ua -p \`pgrep dd\` | tail -1 | awk '{print $1}'`



insecure scheduler in OpenBSD 4.7

2010-10-11 Thread Dmitry-T
I'm install OpenBSD 4.7 (dmesg attached)

uname -a
OpenBSD d1.my.domain 4.7 GENERIC#112 amd64

Run as root:
dd if=/dev/wd0c of=/dev/null bs=1m &
dd if=/dev/wd0c of=/dev/null bs=1m &
dd if=/dev/wd0c of=/dev/null bs=1m &

top

load averages:  3.12,  2.50,  1.4916:54:08
37 processes:  36 idle, 1 on processor
CPU states:  0.1% user,  0.0% nice,  7.3% system,  3.6% interrupt, 89.1% idle
Memory: Real: 35M/339M act/tot  Free: 2393M  Swap: 0K/3071M used/tot

  PID USERNAME PRI NICE  SIZE   RES STATE WAIT  TIMECPU COMMAND
  754 root -140 2232K 1228K sleep inode 0:24  6.10% dd
25914 root  -50 2216K 1224K sleep getblk0:24  6.05% dd
21919 root -140 2204K 1224K sleep inode 2:08  5.96% dd

iostat wd0 1

  ttywd0 cpu
 tin tout  KB/t t/s MB/s  us ni sy in id
   00  2.00 5141 10.04   0  0 23 13 64
   00  2.00 5021 9.81   0  0 16 10 74
   0  299  2.00 5206 10.17   0  0 21  8 71
   00  2.00 5066 9.90   0  0 15  8 77


Run as _normal user_:
dd if=/dev/urandom of=/dev/null

Try to recover ballance:
renice 20 -p 30996
renice -20 -p 21919 25914 754

top

load averages:  3.53,  3.55,  3.0017:12:19
38 processes:  1 running, 36 idle, 1 on processor
CPU states:  0.0% user,  0.0% nice, 98.4% system,  1.6% interrupt,  0.0% idle
Memory: Real: 36M/339M act/tot  Free: 2394M  Swap: 0K/3071M used/tot

  PID USERNAME PRI NICE  SIZE   RES STATE WAIT  TIMECPU COMMAND
30996 teldi104   20  216K  200K run   - 4:48 97.95% dd
21919 root -14  -20 2204K 1224K sleep inode 2:15  0.15% dd
25914 root -14  -20 2216K 1224K sleep inode 0:31  0.00% dd
  754 root  -5  -20 2232K 1228K sleep getblk0:31  0.00% dd

iostat wd0 1

  ttywd0 cpu
 tin tout  KB/t t/s MB/s  us ni sy in id
   1  283  2.00 375 0.73   0  0 99  1  0
   00  2.00 374 0.73   0  0100  0  0
   00  2.00 375 0.73   0  0 98  2  0
   00  2.00 382 0.75   0  0 99  1  0

Disk read speed fell from 10 Mb/s to 0.8 Mb/s  (22 Mb/s to 0.9 Mb/s in test 
with livecd).
CPU for first three dd (root processes!) fell from 18.1% to 0.2%.
renice not work in this situation.

It is not secure. One user script or program may load CPU and
database or another servers lost speed in disk operations.
This is hole for DOS attacks in OpenBSD design.

How you use the OpenBSD as web servers and hosting platform?
Permanently catch and kill processes?

-- 
Dmitry Telegin
OpenBSD 4.7 (GENERIC) #112: Wed Mar 17 20:43:49 MDT 2010
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 2951479296 (2814MB)
avail mem = 2864992256 (2732MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf06d0 (66 entries)
bios0: vendor American Megatrends Inc. version "1001" date 04/19/2006
bios0: ASUSTeK Computer INC. A8N-VM CSM
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP APIC MCFG OEMB
acpi0: wakeup devices PCE0(S4) PCE1(S4) PCE2(S4) PS2K(S4) PS2M(S4) UAR1(S4) 
NSMB(S4) USB0(S4) USB2(S4) NMAC(S5) P0P1(S4) HDAC(S4) MC97(S4) SLPB(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Athlon(tm) 64 Processor 3000+, 2169.41 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 
16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: AMD erratum 89 present, BIOS upgrade may be required
cpu0: apic clock running at 241MHz
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 11, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (PCE0)
acpiprt2 at acpi0: bus 2 (PCE1)
acpiprt3 at acpi0: bus 3 (PCE2)
acpiprt4 at acpi0: bus 4 (P0P1)
acpicpu0 at acpi0
aibs0 at acpi0
acpibtn0 at acpi0: SLPB
acpibtn1 at acpi0: PWRB
pci0 at mainbus0 bus 0
"NVIDIA C51 Host" rev 0xa2 at pci0 dev 0 function 0 not configured
"NVIDIA C51 Memory" rev 0xa2 at pci0 dev 0 function 1 not configured
"NVIDIA C51 Memory" rev 0xa2 at pci0 dev 0 function 2 not configured
"NVIDIA C51 Memory" rev 0xa2 at pci0 dev 0 function 3 not configured
"NVIDIA C51 Memory" rev 0xa2 at pci0 dev 0 function 4 not configured
"NVIDIA C51 Memory" rev 0xa2 at pci0 dev 0 function 5 not configured
"NVIDIA C51 Memory" rev 0xa2 at pci0 dev 0 function 6 not configured
"NVIDIA C51 Memory" rev 0xa2 at pci0 dev 0 function 7 not configured
ppb0 at pci0 dev 2 function 0 "NVIDIA C51 PCIE" rev 0xa1
pci1 at ppb0 bus 1
ppb1 at pci0 dev 3 function 0 "NVIDIA C51 PCIE" rev 0xa1
pci2 at ppb1 bus 2
ppb2 at pci0 dev 4 function 0 "NVIDIA C51 PCIE" rev 0xa1
pci3 at ppb2 bus 3
vga1 at pci3 dev 0 function 0 vendor "NVIDIA", unknown product 0x0615 rev 0xa2
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)

Re: quick EuroBSDCon report

2010-10-11 Thread Henning Brauer
* Marc Espie  [2010-10-11 15:25]:
> Nice event.

yup.

> Hotel probably ways too expensive, but since I paid for it with my time and
> my talks, I didn't care all that much.

it is actually in the same league as usual.

> Surprisingly, just one NetBSD talk (Alistair Crooks).  Where did they hide ?

again, that is even slightly above the average for a *BSDcon.

> There were non-OpenBSD talks. The opening lecture was... a bit out of place.
> PHK said that BSD is dying and he's going to do XML and Apple instead (more

yea, we need to bend over and prostiture us to stay relevant!

> or less)... oh yeah, and no-one is doing userland development these days.

that statement is pbly right for "Free"BSD.

> I already put my slides on http://www.openbsd.org/papers/ and more will
> probably follow.

oh. good reminder. I'll go find the right laptop...

-- 
Henning Brauer, h...@bsws.de, henn...@openbsd.org
BS Web Services, http://bsws.de
Full-Service ISP - Secure Hosting, Mail and DNS Services
Dedicated Servers, Rootservers, Application Hosting



OpenBSD & Xen Server & Watchdog Timeout & PCI Passthrough

2010-10-11 Thread Keith
 I'm trying to get a working OBSD virtual machine with networking 
working as a DomU in a xen server but keep coming up again network 
Watchdog Timeout errors. So I spent today trying to get PCI pass-though 
working with Xen and OBSD with the belief that if I could get some 
network cards into the VM so to speak then the watchdog timeout errors 
would go and the nic's might actually work but they didn't.


I've tested the actual server (PowerEdge R310) work with OpenBSD 4.7 so 
I know that it works fine.

I've tried the stable and the beta versions of Citrix Xen Server.
I've tried the latest Xen Cloud Platform.

Does anyone have any idea whats causing these issues ?

Thanks
Keith



Re: quick EuroBSDCon report

2010-10-11 Thread Matthias Ochs

Am 11.10.10 15:57, schrieb Peter N. M. Hansteen:

Marc Espie  writes:


Nice event.


Yes, definitely.  It turned out very nice, with more OpenBSD content
than the last few had, and high quality stuff at that.


Indeed. Very nice weekend. And thanks to Peter for a very useful pf 
tutorial.


Also I had the pleasure to buy the new 4.8 CDs directly from Theo - 
thank you very much for bringing them (and of course for making 
OpenBSD...) !


Best,

Matthias



Re: Why renice not work in OpenBSD?

2010-10-11 Thread Dmitry-T
11.10.10, 19:35, "Michal" :

> > Dmitry-T>  Is in OpenBSD lacks developers?
>  >
>  > That might as well be the last message you post here.
>  >
>  > Any little help you would get, you've just offended them.
>  >
>  reading his e-mails, I don't think he is trying to be offensive, I think 
>  his English is just poor

Thank you for your understanding.

-- 
Dmitry Telegin



Re: Why renice not work in OpenBSD?

2010-10-11 Thread Dmitry-T
11.10.10, 19:29, "Randal L. Schwartz" :

> > "Dmitry-T" == Dmitry-T   writes:
>  
>  Dmitry-T> Is in OpenBSD lacks developers?
>  
>  That might as well be the last message you post here.
>  
>  Any little help you would get, you've just offended them.

I did not want to offend. Maybe the reason in my english.


-- 
Dmitry Telegin



Re: Why renice not work in OpenBSD?

2010-10-11 Thread Dmitry-T
thank you

11.10.10, 23:43, "GP" :

> As far as I know this is not possible.
>  
>  On 10/11/2010 7:24 AM, Dmitry-T wrote:
>  > 11.10.10, 22:02, "GP" :
>  > 
>  >> Don't compare OpenBSD and Linux, because OpenBSD and Linux are made
>  >>  differently. As claudio mentioned nice make sense *only* for CPU tasks,
>  >>  not IO tasks. So if you don't like it keep using Linux, otherwise you
>  >>  must live with how OpenBSD is doing things.
>  > 
>  > I understand. 
>  > How adminisrator in OpenBSD can give IO tasks more CPU?
>  > This is very important for good control.
>  > 
>  > 
>  
>  


-- 
Dmitry Telegin



Re: Why renice not work in OpenBSD?

2010-10-11 Thread Michal

Dmitry-T>  Is in OpenBSD lacks developers?

That might as well be the last message you post here.

Any little help you would get, you've just offended them.

reading his e-mails, I don't think he is trying to be offensive, I think 
his English is just poor




Re: Why renice not work in OpenBSD?

2010-10-11 Thread Randal L. Schwartz
> "Dmitry-T" == Dmitry-T   writes:

Dmitry-T> Is in OpenBSD lacks developers?

That might as well be the last message you post here.

Any little help you would get, you've just offended them.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
 http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.posterous.com/ for Smalltalk discussion



Re: Why renice not work in OpenBSD?

2010-10-11 Thread Jordi Espasa Clofent
Read again and again Claudio's responses until you really understand. 
The key is there.


--
I will face my fear. I will permit it to pass over me and through me. 
And when it has gone past I will turn the inner eye to see its path. 
Where the fear has gone there will be nothing. Only I will remain.




Re: Why renice not work in OpenBSD?

2010-10-11 Thread Kevin Chadwick
On Mon, 11 Oct 2010 15:34:22 +0400
Dmitry-T  wrote:

> 11.10.10, 15:13, "Claudio Jeker" :
> 
> > On Mon, Oct 11, 2010 at 12:16:19PM +0200, Martin Pelikan wrote:
> >  > 2010/10/11, Claudio Jeker :
> >  > > CPU consumed by the kernel is not accounted by the scheduler. All the
> >  > > work done by urandom is system time.
> >  > 
> >  > And for the curious people who can't see the obvious: why is that?
> >  > 
> >  
> >  Because that's the way Unix and in particular BSD and its scheduler were
> >  built. The kernel is assumed to be efficent and never doing lot of
> >  computation. With the addition of crypto in the kernel this may no longer
> >  be true but it does not affect normal operation. In other words nobody
> >  ever bothered to fix this.
> 
> In FreeBSD and Mac OS X run "dd if=/dev/urandom of=/dev/null" 
> not change read speed from disk...
> Is in OpenBSD lacks developers?
> 
> -- 
> Dmitry Telegin
> 
 You need to think hard about your test and it's criteria. Often
 universities skew results to get funding, but you have no excuse.

It may be that the macosx and freebsd kernel gave more of a reason to
change this because their kernel is bloated and something hit them in
the face. I guess you haven't tried it on a proper install yet, either
but it would mean nothing anyway, unless you can crash the system as a
normal user.

All projects lack quality developers and OpenBSD needs quality!!
developers more than most projects.

Are there any problems caused by not having enough developers. As far
as I can tell No and I would think it would be far more likely that too
many developers of lesser quality would cause problems.



Re: Netbook for OpenBSD?

2010-10-11 Thread Mikle Krutov
On Thu, Oct 07, 2010 at 01:54:19AM +, Mikle Krutov wrote:
> Hello, list! 
> I'm  a FreeBSD user (a very little experience with openbsd in the past),
> but i'm kind of interested in any bsd flavour (i like *nix, but dislike
> linux for some reasons).
> So, the question is if there is any positive experience with using
> OpenBSD on modern netbooks of the following: 
> 1) Samsung N127
> 2) ASUS Eee PC 900AX
> 3) MSI U120-094
> Or any other models with 10" monitor and 4+ battery lifetime?
> By positive i mean mainly correctly & stable working wireless. 
> If nothing fits, please give me a recommendation which usb wireless card
> should i use. 
> Thank you for your time,
> -- 
> The way of the world is to praise dead saints and prosecute live ones.
>   -- Nathaniel Howe
> 
> With best regards, Krutov Mikle, Bercut ltd. Technical Support department
So, if anyone interested: 
1) I've bought Acer Aspire One 531 as recommended. Everything works OK. 
(except for Yota)
2) In my city (Saint Petersburg), i've had positive experience with
computer store Key with booting from my liveusb.


Thank you for your replies and help,

-- 

Old mercenaries never die. They go to hell and regroup.

With best regards, Mikle Krutov, Bercut ltd. Technical Support department



Re: quick EuroBSDCon report

2010-10-11 Thread Peter N. M. Hansteen
Marc Espie  writes:

> Nice event.

Yes, definitely.  It turned out very nice, with more OpenBSD content
than the last few had, and high quality stuff at that.

This reminds me I forgot to spam misc@ about my own conference report,
it's up at 
http://bsdly.blogspot.com/2010/10/eurobsdcon-2010-finest-software-tool-is.html
if you're into that kind of thing.  Posted before I left Karlsruhe, on 
the evening right after the conference ended.

Cheers,
Peter

-- 
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
http://bsdly.blogspot.com/ http://www.bsdly.net/ http://www.nuug.no/
"Remember to set the evil bit on all malicious network traffic"
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.



quick EuroBSDCon report

2010-10-11 Thread Marc Espie
Nice event.

Hotel probably ways too expensive, but since I paid for it with my time and
my talks, I didn't care all that much.

Surprisingly, just one NetBSD talk (Alistair Crooks).  Where did they hide ?
Do they still think it's a FreeBSD conference masquerading as an open
forum ?


Lots of stuff, got to meet people face to face and discuss various things.
(a bit exhausting)

There were non-OpenBSD talks. The opening lecture was... a bit out of place.
PHK said that BSD is dying and he's going to do XML and Apple instead (more
or less)... oh yeah, and no-one is doing userland development these days.
(so basically, I don't exist, and ditto for a lot of OpenBSD).


A few OpenBSD talks: Reyk, Thib&Oga, Henning, myself.  Not really Theo,
except for the shape of things to come.

Kuddoes to Dru Lavigne for all the stuff she does.

I already put my slides on http://www.openbsd.org/papers/ and more will
probably follow.



Re: Why renice not work in OpenBSD?

2010-10-11 Thread Jacob Yocom-Piatt

 On 10/11/10 02:27, Dmitry-T wrote:

11.10.10, 08:46, "Tomas Bodzar":


  6) Did you test it on real OpenBSD, real HW and latest release or snapshot?

I'm search stable and secure OS.
I'm test: my work Mac OS X 10.6.3, FreeBSD 8.1 on livecd 
frenzy-1.3-ju-release-rus, my home Linux Debian - renice work more correct.
Why renice algorithm depends from hardware and why I need install OS on HDD?
Is this renice behavior typical only for BSDanywhere and atypical for OpenBSD?



use linux, you are clearly a moron, it will suit you better.

you have posted to this list about a dozen times in a 12 hour period, 
this is a sign you are an idiot. you complain about not being able to 
renice i/o, another sign. you are not even using openbsd on vmware, yet 
another sign you are an idiot. i'd say the case that you are an idiot is 
pretty well settled.


when you are using an OS you will rarely or never renice processes, it 
is a total waste of time. get a faster machine or let your machine sit 
and do its work. micromanaging a computer is a fool's errand.




Re: Why renice not work in OpenBSD?

2010-10-11 Thread David Coppa
On Mon, Oct 11, 2010 at 1:34 PM, Dmitry-T  wrote:
> In FreeBSD and Mac OS X run "dd if=/dev/urandom of=/dev/null"
> not change read speed from disk...
> Is in OpenBSD lacks developers?

Maybe.
But it doesn't lack moronic whiners on its mailing lists, that's for sure!

-david-



Re: Why renice not work in OpenBSD?

2010-10-11 Thread Dmitry-T
11.10.10, 13:16, "Bret S. Lambert" :

>  > Yes of course, but... all my  "dd" processes use CPU. 
>  > After run "dd if=/dev/urandom of=/dev/null"
>  > first three "dd if=/dev/wd0c of=/dev/null bs=1m" reduce their part of CPU 
> and 
>  > run "renice" not recover their part of CPU.
>  
>  numbers or GTFO

Write in your system 3 lines for numbers or GTFO

top
dd if=/dev/your_disk of=/dev/null bs=1m
dd if=/dev/urandom of=/dev/null

-- 
Dmitry Telegin



Re: Why renice not work in OpenBSD?

2010-10-11 Thread Dmitry-T
11.10.10, 15:13, "Claudio Jeker" :

> On Mon, Oct 11, 2010 at 12:16:19PM +0200, Martin Pelikan wrote:
>  > 2010/10/11, Claudio Jeker :
>  > > CPU consumed by the kernel is not accounted by the scheduler. All the
>  > > work done by urandom is system time.
>  > 
>  > And for the curious people who can't see the obvious: why is that?
>  > 
>  
>  Because that's the way Unix and in particular BSD and its scheduler were
>  built. The kernel is assumed to be efficent and never doing lot of
>  computation. With the addition of crypto in the kernel this may no longer
>  be true but it does not affect normal operation. In other words nobody
>  ever bothered to fix this.

In FreeBSD and Mac OS X run "dd if=/dev/urandom of=/dev/null" 
not change read speed from disk...
Is in OpenBSD lacks developers?

-- 
Dmitry Telegin



Re: Why renice not work in OpenBSD?

2010-10-11 Thread Dmitry-T
11.10.10, 22:02, "GP" :

> Don't compare OpenBSD and Linux, because OpenBSD and Linux are made
>  differently. As claudio mentioned nice make sense *only* for CPU tasks,
>  not IO tasks. So if you don't like it keep using Linux, otherwise you
>  must live with how OpenBSD is doing things.

I understand. 
How adminisrator in OpenBSD can give IO tasks more CPU?
This is very important for good control.


-- 
Dmitry Telegin



Re: Why renice not work in OpenBSD?

2010-10-11 Thread Dmitry-T
10.10.10, 14:51, "Kevin Chadwick" :

>  >It is not secure. One script or program may load CPU and 
>  >database or another servers lost speed in disk operations.
>  
>  Even if renice did have that affect you need to be root to drop it to
>  -20 so why shouldn't root be able to use all resources, roots the only
>  user that can fill your disks (at default) completely too.

I'm run dd if=/dev/urandom of=/dev/null _without_ renice and
disk read speed fell from 22Mb/s to 0.9Mb/s. Root with renice do not 
correct situation - it is not normal.


>  If you need the
>  latest flash content and the easiest install and maintenance, then
>  OpenBSD isn't for you.

I'm lookin OpenBSD as hosting platform.


>  Installing to hdd will be easier and a
>  better indication.

I will try to install.


-- 
Dmitry Telegin



Re: Why renice not work in OpenBSD?

2010-10-11 Thread GP
Don't compare OpenBSD and Linux, because OpenBSD and Linux are made
differently. As claudio mentioned nice make sense *only* for CPU tasks,
not IO tasks. So if you don't like it keep using Linux, otherwise you
must live with how OpenBSD is doing things.

On 10/11/2010 6:37 AM, Dmitry-T wrote:
> 11.10.10, 13:57, "Claudio Jeker" :
> 
>>  > After run "dd if=/dev/urandom of=/dev/null"
>>  > first three "dd if=/dev/wd0c of=/dev/null bs=1m" reduce their part of CPU 
>> and 
>>  > run "renice" not recover their part of CPU.
>>   
>>  CPU consumed by the kernel is not accounted by the scheduler. All the
>>  work done by urandom is system time.
> 
> It is strange... not well and not securely.
> In Linux (test 2.6.35):
> - run "dd if=/dev/urandom of=/dev/null" not change read speed from disk
> - renice 20 for first three "dd if=/dev/wd0c of=/dev/null bs=1m" and
> renice -5 for "dd if=/dev/urandom of=/dev/null" change throughput from 30Mb/s 
> to 5Mb/s
> - renice -20 for "dd if=/dev/urandom of=/dev/null" slows the system, but not 
> freeze
> 

-- 
GP



Re: Why renice not work in OpenBSD?

2010-10-11 Thread Claudio Jeker
On Mon, Oct 11, 2010 at 12:16:19PM +0200, Martin Pelikan wrote:
> 2010/10/11, Claudio Jeker :
> > CPU consumed by the kernel is not accounted by the scheduler. All the
> > work done by urandom is system time.
> 
> And for the curious people who can't see the obvious: why is that?
> 

Because that's the way Unix and in particular BSD and its scheduler were
built. The kernel is assumed to be efficent and never doing lot of
computation. With the addition of crypto in the kernel this may no longer
be true but it does not affect normal operation. In other words nobody
ever bothered to fix this.

-- 
:wq Claudio



Re: Why renice not work in OpenBSD?

2010-10-11 Thread Kevin Chadwick
On Mon, 11 Oct 2010 11:27:45 +0400
Dmitry-T  wrote:

> 11.10.10, 08:46, "Tomas Bodzar" :
> 
> >  6) Did you test it on real OpenBSD, real HW and latest release or snapshot?


>http://bsdanywhere.org/faq
>" What is the primary focus of BSDanywhere?
>A mostly __unmodified__ OpenBSD kernel and userland"

I believe (if it's the right one) that it was meant to make it easier to
give openbsd a go.

> 
> I'm search stable and secure OS. 

>For check renice, run renice -20 for last dd - OpenBSD froze, even
>mouse.
renice works just fine

>It is not secure. One script or program may load CPU and 
>database or another servers lost speed in disk operations.

Even if renice did have that affect you need to be root to drop it to
-20 so why shouldn't root be able to use all resources, roots the only
user that can fill your disks (at default) completely too.

Security, stability and integrity are very different things often
working against each other. OpenBSD is definately the most secure by a
long way as that is it's primary goal and as it can go for long periods
easily without updates, likely the most stable. One OpenBSD specific
example of security and integrity contradicting each other is that the
security protections can actually make programs such as firefox more
likely to crash (arguably less stable) because of bugs in these
programs that are tolerated by other os. This leads to fixing these
bugs, making those programs more secure and stable. If you need the
latest flash content and the easiest install and maintenance, then
OpenBSD isn't for you.

> I'm test: my work Mac OS X 10.6.3, FreeBSD 8.1 on livecd 
> frenzy-1.3-ju-release-rus, my home Linux Debian - renice work more correct.
> Why renice algorithm depends from hardware and why I need install OS on HDD?

There's anonymos (old) And I have a couple of my own Openbsd livecd
here, one with a virus scanner on it but it's old now (3.8). There are
guides for building them that are easy to follow. But it won't be as
quick as you will probably like. Installing to hdd will be easier and a
better indication.

> Is this renice behavior typical only for BSDanywhere and atypical for OpenBSD?
> 
> --
> Dmitry Telegin



Re: Why renice not work in OpenBSD?

2010-10-11 Thread Dmitry-T
11.10.10, 13:57, "Claudio Jeker" :

>  > After run "dd if=/dev/urandom of=/dev/null"
>  > first three "dd if=/dev/wd0c of=/dev/null bs=1m" reduce their part of CPU 
> and 
>  > run "renice" not recover their part of CPU.
>   
>  CPU consumed by the kernel is not accounted by the scheduler. All the
>  work done by urandom is system time.

It is strange... not well and not securely.
In Linux (test 2.6.35):
- run "dd if=/dev/urandom of=/dev/null" not change read speed from disk
- renice 20 for first three "dd if=/dev/wd0c of=/dev/null bs=1m" and
renice -5 for "dd if=/dev/urandom of=/dev/null" change throughput from 30Mb/s 
to 5Mb/s
- renice -20 for "dd if=/dev/urandom of=/dev/null" slows the system, but not 
freeze

-- 
Dmitry Telegin



Re: Why renice not work in OpenBSD?

2010-10-11 Thread Martin Pelikán
2010/10/11, Claudio Jeker :
> CPU consumed by the kernel is not accounted by the scheduler. All the
> work done by urandom is system time.

And for the curious people who can't see the obvious: why is that?

-- 
Martin Pelikan



Re: Why renice not work in OpenBSD?

2010-10-11 Thread Claudio Jeker
On Mon, Oct 11, 2010 at 12:45:39PM +0400, Dmitry-T wrote:
> 11.10.10, 12:13, "Claudio Jeker" :
> 
> >  You try to renice I/O bound
> >  processes. The scheduler priority only matters when processes are CPU
> >  bound.
>   
> Yes of course, but... all my  "dd" processes use CPU. 
> After run "dd if=/dev/urandom of=/dev/null"
> first three "dd if=/dev/wd0c of=/dev/null bs=1m" reduce their part of CPU and 
> run "renice" not recover their part of CPU.
 
CPU consumed by the kernel is not accounted by the scheduler. All the
work done by urandom is system time.

-- 
:wq Claudio



Re: Why renice not work in OpenBSD?

2010-10-11 Thread Bret S. Lambert
On Mon, Oct 11, 2010 at 12:45:39PM +0400, Dmitry-T wrote:
> 11.10.10, 12:13, "Claudio Jeker" :
> 
> >  You try to renice I/O bound
> >  processes. The scheduler priority only matters when processes are CPU
> >  bound.
>   
> Yes of course, but... all my  "dd" processes use CPU. 
> After run "dd if=/dev/urandom of=/dev/null"
> first three "dd if=/dev/wd0c of=/dev/null bs=1m" reduce their part of CPU and 
> run "renice" not recover their part of CPU.

numbers or GTFO

> 
> -- 
> Dmitry Telegin



Re: help on maximum performance from alix 1d

2010-10-11 Thread Dimitar Vassilev
2010/10/11 Stuart Henderson :
> Someone else replied offlist which I thought was worth responding
> to here,
>
>>On 2010-10-10, Stuart Henderson  wrote:
[snip]
>>> The CPU and chipset are way too slow to handle wire-speed gigabit.
>>> You'll be better off with an Atom, VIA, or probably even a 350MHz PII.
>>>
>>
>>Alix is very best ! AMD Geode 500Mhz processor. PII is one dinosaur
>>.
>
> It's not just about the clock speed of the CPU. Lots of other things
> affect network forwarding performance (cache, memory bandwidth, pci
> controller, type of NICs).
>
> There are some fairly good cheap low-power geode gx/lx-based systems,
> but I'm honestly surprised you even get 150Mb/s through them.
Thanks,
I missed the offlist thing for reasons that I either hit reply button
too quickly or fell into the bit bucket and I didn't look into it.
I'm using routerboard 44GV card with 4 gigabit interfaces.
The test I did was over ftp/sftp to one of the boxes in the home lab.
mtu is about 1492 and I'm able to get gigabit speed between the lab
boxes as they are cross-hooked into two procurve gigabit switches /
the ones with 8 ports/ for  simulating redundancy and do not go to the
alix box, but switch only.
Thought of switching the routerboard 44GV to quad gigabit intel, but
if I'm going to invest such amount of money, better get one more horse
powered one.
Unfortunately most of the embedded boxes I've seen come with realtek chipset.
Yet the joy is that if you make your pick correctly you will get a PCI
and plug your existing adapter/ get a new one.
So seems that I will have to migrate to something more powerful if I
want to have gigabit everywhere.
Could you give recommendations for something in Europe/ reasonable
shipping costs to EU?

I'm thinking of the following options:
#1 http://www.bvm-store.com/ProductDetail.asp?fdProductId=344
#2 http://nexcom.kd85.com or something similar
#3 
http://www.google.co.uk/search?q=embedded+quad+gigabit&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a

Thanks for your help and happy sailing!
Best regards,
Dimitar



Re: Why renice not work in OpenBSD?

2010-10-11 Thread Dmitry-T
11.10.10, 12:13, "Claudio Jeker" :

>  You try to renice I/O bound
>  processes. The scheduler priority only matters when processes are CPU
>  bound.
  
Yes of course, but... all my  "dd" processes use CPU. 
After run "dd if=/dev/urandom of=/dev/null"
first three "dd if=/dev/wd0c of=/dev/null bs=1m" reduce their part of CPU and 
run "renice" not recover their part of CPU.

-- 
Dmitry Telegin



Re: Why renice not work in OpenBSD?

2010-10-11 Thread Claudio Jeker
On Sun, Oct 10, 2010 at 11:17:37PM +0400, Dmitry-T wrote:
> My test OpenBSD:
> 
> load from livecd bsdanywhere46-amd64
> 
> in different consoles:
> 
> dd if=/dev/wd0c of=/dev/null bs=1m
> dd if=/dev/wd0c of=/dev/null bs=1m
> dd if=/dev/wd0c of=/dev/null bs=1m
> iostat
> top
> 
> run:
> dd if=/dev/urandom of=/dev/null
> and disk read speed jump from 22Mb/s to 0.9Mb/s!
> 
> renice 20 for last dd - throughput not change!
> renice -20 for first three dd  - throughput not change!
> For check renice, run renice -20 for last dd - OpenBSD froze, even mouse.
> 
> It is not secure. One script or program may load CPU and 
> database or another servers lost speed in disk operations.
> 
> In Linux (test on 2.6.35 libre) renice work correct...
> Why renice not work in OpenBSD?
> 

This is not how scheduling priorities work. You try to renice I/O bound
processes. The scheduler priority only matters when processes are CPU
bound.

I also don't get it why people always use /dev/*random as input
source for tests -- random numbers are not for free. 

-- 
:wq Claudio



Re: help on maximum performance from alix 1d

2010-10-11 Thread Stuart Henderson
Someone else replied offlist which I thought was worth responding
to here,

>On 2010-10-10, Stuart Henderson  wrote:
>> On 2010-10-09, Dimitar Vassilev  wrote:
>>> Hi guys,
>>> I got the following setup
>>>   bridge2 gig
>>> switches---home lab
>>> Inet---alix 1d box with quad gigabit---<
>>>   DHCP usr lan
>>>
>>> The alix box is alix 1d with 256mb RAM and from home lab 2 home lab
>>> segment I'm able to get gigabit speed. my problem is that from usr lan
>>> to home lab, I'm able to get 150 mbit/s max though all interfaces are
>>> gig ones.
>>
>> The CPU and chipset are way too slow to handle wire-speed gigabit.
>> You'll be better off with an Atom, VIA, or probably even a 350MHz PII.
>>
>
>Alix is very best ! AMD Geode 500Mhz processor. PII is one dinosaur
>.

It's not just about the clock speed of the CPU. Lots of other things
affect network forwarding performance (cache, memory bandwidth, pci
controller, type of NICs).

There are some fairly good cheap low-power geode gx/lx-based systems,
but I'm honestly surprised you even get 150Mb/s through them.



Re: Why renice not work in OpenBSD?

2010-10-11 Thread Dmitry-T
11.10.10, 08:46, "Tomas Bodzar" :

>  6) Did you test it on real OpenBSD, real HW and latest release or snapshot?

I'm search stable and secure OS. 
I'm test: my work Mac OS X 10.6.3, FreeBSD 8.1 on livecd 
frenzy-1.3-ju-release-rus, my home Linux Debian - renice work more correct.
Why renice algorithm depends from hardware and why I need install OS on HDD? 
Is this renice behavior typical only for BSDanywhere and atypical for OpenBSD?

--
Dmitry Telegin



Re: Why renice not work in OpenBSD?

2010-10-11 Thread Dmitry-T
11.10.10, 00:19, "Martin SchrC6der" :

> 2010/10/10 Dmitry-T :
>  > load from livecd bsdanywhere46-amd64
>  
>  Then go to http://bsdanywhere.org/mailinglists and complain there.

My test very simple, please test your system. 
Is your original OpenBSD show identical results?


--
Dmitry Telegin