oai tataie io nu m-am luat de nimeni nish nu m-am apucat de mancat
semintze in public da' o fac acuma...
daca imi zicea ca are 300 de scripts generate de some program , same
time, de vreo 300k fiecare, care trebe procesate si rulate cat mai
rapid, probabil ca taceam din gura.
in fine ...
si ca sa ma dau dupa dulap, aia's posmagi, nu-s posmagi muietzi right? ;)
incarcarea sistemului?
hai sa vedem
wc test.sh
101 201 804 test.sh
time tail -n $[`wc -l test.sh|awk ' { print $1;}'`-4] test.sh
>&/dev/null | sh
real 0m0.008s
user 0m0.010s
sys 0m0.000s
... sa incercam mai mult
[EMAIL PROTECTED] root]# time tail -n $[`wc -l test.sh|awk ' { print $1;}'`-4]
test.sh >&/dev/null | sh
real 0m0.008s
user 0m0.010s
sys 0m0.000s
[EMAIL PROTECTED] root]# w
[EMAIL PROTECTED] root]# wc -l test.sh
4998 test.sh
mai mult
[EMAIL PROTECTED] root]# a=10000 ; while [ $a -lt 40000 ] ; do echo "echo $a"
>> test.sh ; let a=$a+1 ; done
[EMAIL PROTECTED] root]# time tail -n $[`wc -l test.sh|awk ' { print $1;}'`-4]
test.sh >&/dev/null | sh
real 0m0.012s
user 0m0.010s
sys 0m0.000s
[EMAIL PROTECTED] root]# wc -l test.sh
34998 test.sh
[EMAIL PROTECTED] root]#
mai mult
[EMAIL PROTECTED] root]# a=10000 ; while [ $a -lt 40000 ] ; do echo "echo $a"
>> test.sh ; let a=$a+1 ; done
[EMAIL PROTECTED] root]# cat /proc/loadavg && time tail -n $[`wc -l test.sh|awk
' { print $1;}'`-4] test.sh >&/dev/null | sh && cat /proc/loadavg
0.15 0.10 0.12 1/210 4877
real 0m0.013s
user 0m0.000s
sys 0m0.010s
0.15 0.10 0.12 1/210 4883
[EMAIL PROTECTED] root]# wc -l test.sh
64998 test.sh
[EMAIL PROTECTED] root]#
apai na, is pipes colea... procesu de generat ce vrea omu ii
secvential... ce load vrei sa apara acolo? are un singur script generat
de un cron
nu cred ca depinde de pipe-urile mele atat cat depinde de scriptul lui?
... pipes alea ... 0(2num_lines) ?? ... si ti-am lasat numa 3 procese in
lantz ca sa nu te mai iei de mine ;)
ma duc la bere amu gata
Teodor Cimpoesu wrote:
>adi ciobanu wrote:
>
>
>>apai na...posmagii
>>
>>
>
><bofh-style>
>daca tot te-ai luat de el fac si io o gluma apropos de "highloads",
>folosesti 4 binare pentru a taia 4 linii, la 100 de linii care este
>incarcarea sistemului? *evil grin*
></bofh-style>
>
>
>
>>[EMAIL PROTECTED] root]# cat test.sh
>>#!/bin/bash
>>echo 1
>>echo 2
>>echo 3
>>echo 4
>>echo 5
>>echo 6
>>echo 7
>>[EMAIL PROTECTED] root]# cat test.sh | tail -n $[`wc -l test.sh|awk ' { print
>>$1;}'`-4] | sh
>>
>>
>
>-- Teodor
>
>---
>Detalii despre listele noastre de mail: http://www.lug.ro/
>
>
>
>
>
>
---
Detalii despre listele noastre de mail: http://www.lug.ro/