On Mon, Sep 19, 2011 at 1:54 PM, Andrew Chen <[email protected]> wrote:
> From: Andrew Chen <[email protected]>
>
> gf16/gf17 create 10 files and keep them growing and shrinking.
> But when the number of created file (-S) can be divided exactly
> by the rate shrinkfile() is involked (-T), the shrinking will
> always happen on the same file. This may cause the tests run out
> of memory and unexpected OOM killer be launched.
>
> The amount of consumed memory depends on the speed of CPU/Bus.
> In our machine, CPU 400 MHz/Bus 100 MHz, about 240 MB free memory
> was consumed before the test finished.
>
> To prevent this, we adjusts the shrinkfile() rate (-T) slightly
> to ensure it cannot be divided by the number of created file (-S).
>
> Signed-off-by: Andrew Chen <[email protected]>
> ---
>    v2: fixed wrong execution order of gf18 and restated the problem
>
>  ltp-full-20101031/runtest/fs |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/ltp-full-20101031/runtest/fs b/ltp-full-20101031/runtest/fs
> index e6741a0..2a3ffdb 100644
> --- a/ltp-full-20101031/runtest/fs
> +++ b/ltp-full-20101031/runtest/fs
> @@ -14,8 +14,8 @@ gf12 mkfifo $TMPDIR/gffifo17; growfiles -b -W gf12 -e 1 -u 
> -i 0 -L 30 $TMPDIR/gf
>  gf13 mkfifo $TMPDIR/gffifo18; growfiles -b -W gf13 -e 1 -u -i 0 -L 30 -I r 
> -r 1-4096 $TMPDIR/gffifo18
>  gf14 growfiles -W gf14 -b -e 1 -u -i 0 -L 20 -w -l -C 1 -T 10 -f glseek19 -S 
> 2 -d $TMPDIR
>  gf15 growfiles -W gf15 -b -e 1 -u -r 1-49600 -I r -u -i 0 -L 120 -f Lgfile1 
> -d $TMPDIR
> -gf16 growfiles -W gf16 -b -e 1 -i 0 -L 120 -u -g 4090 -T 100 -t 408990 -l -C 
> 10 -c 1000 -S 10 -f Lgf02_ -d $TMPDIR
> -gf17 growfiles -W gf17 -b -e 1 -i 0 -L 120 -u -g 5000 -T 100 -t 499990 -l -C 
> 10 -c 1000 -S 10 -f Lgf03_ -d $TMPDIR
> +gf16 growfiles -W gf16 -b -e 1 -i 0 -L 120 -u -g 4090 -T 101 -t 408990 -l -C 
> 10 -c 1000 -S 10 -f Lgf02_ -d $TMPDIR
> +gf17 growfiles -W gf17 -b -e 1 -i 0 -L 120 -u -g 5000 -T 101 -t 499990 -l -C 
> 10 -c 1000 -S 10 -f Lgf03_ -d $TMPDIR
>  gf18 growfiles -W gf18 -b -e 1 -i 0 -L 120 -w -u -r 10-5000 -I r -l -S 2 -f 
> Lgf04_ -d $TMPDIR
>  gf19 growfiles -W gf19 -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -o 
> O_RDWR,O_CREAT,O_TRUNC -u -f gf08i_ -d $TMPDIR
>  gf20 growfiles -W gf20 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1-256000:512 
> -R 512-256000 -T 4 -f gfbigio-$$ -d $TMPDIR
> --
> 1.6.5
>
>

Hi Cyril,

Is this OK?


-- 
BR,
Andrew

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to