So I says:
>     6) Some kind of 'rlimit' before/after benchmark or example,
>        the kind that anyone can test, (not system critical),
>        would be good.

Just came up with:

        # compress a endless string of "y", send it to '/dev/null'
        # limit it to 5 seconds, show how long 'bash' thinks it took,
        # and print the exit code.
        % time yes | rlimit -t 5 -- gzip > /dev/null ; echo $?
        Killed

        real    0m12.783s
        user    0m11.161s
        sys     0m1.464s
        137

HTH...



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to