On 11/22/05, E.Gryaznova <[EMAIL PROTECTED]> wrote:
> Sander wrote:
>
> >E.Gryaznova wrote (ao):
> Something like
> for i in cfq noop anticipatory deadline
> do
>   echo $i > /sys/block/hda/queue/scheduler && cat
> /sys/block/hda/queue/scheduler && echo "foo" >/root/test && time vim +"s/
> foo/bar/" +"wq" /root/test
> done

Done, I had to output to vim's output to /dev/null due to it clearing the term.

for i in cfq noop anticipatory deadline
do
echo $i  > /sys/block/hda/queue/scheduler
cat /sys/block/hda/queue/scheduler
echo "foo" > /root/test; time vim +"s/foo/bar/" +"wq" /root/test>/dev/null
done

Results:
noop anticipatory deadline [cfq]
Vim: Warning: Output is not to a terminal

real    0m2.464s
user    0m0.046s
sys     0m0.022s
[noop] anticipatory deadline cfq
Vim: Warning: Output is not to a terminal

real    0m2.188s
user    0m0.045s
sys     0m0.018s
noop [anticipatory] deadline cfq
Vim: Warning: Output is not to a terminal

real    0m2.213s
user    0m0.044s
sys     0m0.021s
noop anticipatory [deadline] cfq
Vim: Warning: Output is not to a terminal

real    0m2.422s
user    0m0.046s
sys     0m0.018s

Linux rocket 2.6.15-rc1-mm2 #6 SMP PREEMPT Tue Nov 22 11:02:59 PST
2005 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
AuthenticAMD GNU/Linux
--
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.

Reply via email to