Linux-kernel mailing list archive 1999-23,: Re: O(1) scheduler need help

# Re: O(1) scheduler need help

willy tarreau (wtarreau@yahoo.fr)
Tue, 8 Jun 1999 11:41:01 +0200 (CEST)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Alan Cox: "Re: PROBLEM:Kernel Oops Running NT inside VMWARE 1.0 Under 2.3.5"
- Previous message: Alan Cox: "Re: Preparations for ZD's upcoming Apache/Linux benchmark"

Hi Davide !

this night, I was dreaming of threads ... Here is
a tiny program which can be used for your tests.

It creates sequentially 1 to 40 threads (tunable),
each working autonomously and during a fixed amount
of time, which I set to 10 seconds. They all do the
same work - it can be loops or syscalls - and count
how much iterations have been done. At the end of
the test, the main thread collects measures and
prints on stdout the number of threads and the
average iterations/second reached during the test.

It's easily usable with gnuplot.

As I have obtained different results on P200MMX and
K6-2/360, I'd like other people to feed back, and
even to me more imaginative than me concerning what
to put in the thread loop.

The program comes here, gzipped then uuencoded. As I
can only post from yahoo from where I'm at the moment,
I don't know what this mail will look like :-(

I hope that at least the program will be readable. If
not, I'll mail it in raw form ...

Willy Tarreau

Reply-to: willy@meta-x.org

begin 644 threads.c.gz
M'XL("/#@7#<"`W1H<F5A9',N8P"55FUOVS80_FS_BHN+-'+\)ODM=AT'2]M@
M*YHV0Y.B*]8@H"7:XBJ+&DG9,8;^]]U1;XZ##9L^Q-&1O'ONN>>.ZIW6`>ZX
M-ES!4BHP(8?O7,4\.M&@$\X#$#%H/^1!&HEXU<7MSILF>-/I%'KP1431#NZ8
M4IRE<+ZEUY_6W+#.8U>JU44=MW^5*?@LAD#"-F2&;S#4#FU;%AO8"A-B4*$A
M47*EV+H-B]3`NY,UQ-+@:<5U(F,M%A&W`%F\@[70J>9=>,V!;9GBZ(`9$,:&
M"3G;"`0521;@>0:AU*8+EYHV8)QU&AD,BH`#'K3)N!:KT(!AW]%=L$%4;,4U
MR"7<?OBU2QF\,[!@6OB,DO7QI,%U!BLEMT@)L+5,,14\D+G%M3B`-6<Z1?1X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BNSYHS`.9?H#1;%F(K:,
M,K7RV^"'3,'I*;YL*,F*X#9PI3(_3TNZ85'*<]8LN%(8<V]6J>1\7E5\S]R:
M.UZK?.N-FI;:3`*S4@('HJHM$X6AEPYV`:)J-[[%;ZBB=$D>!^7$Q+9IM*M0
MS=E3]LJ%C$.*F]\2CH->YP=B>4E=(.[;\/'S]74;'"O*T^;+4I?9"B9P-`?7
MNGN&,[\D$>-3YW.T="X`T68\$]0:SA,EE=-HV#=;-(_^S4I<VZ]H@%]"?NAD
M"&D/KC]G"6[>P]&W^`L3EBFK0-3>W@5H^;:\41_4,OJQN6NY^*LR4)(5LP5W
M!ZT$I/;M?CA8"/L!@YX7(A)F9SL0=?@,[,^2L-K<_U/9JFX4]U8C2$&&9G^P
M9>X0E;;3GKX'$8JQ@Y]A1?'KB2YRPDO?D/06!;#@-$>X#12DBE;M]RM^A8+F
M?Z8<1WZW7J,)74"U7?&O@.V.UGP?=X;:+D!O_F0B6]RV+3RJS+-Z7+BEXT,F
M]WKG.$!*VY6AD-/A""08N9<&2O,XBNS!JN+M#'YSMC=P2*%0S)6_`8\'F<GP
#"P``
`
end

___________________________________________________________
Do You Yahoo!?
Votre e-mail @yahoo.fr gratuit sur http://courrier.yahoo.fr

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

- Next message: Alan Cox: "Re: PROBLEM:Kernel Oops Running NT inside VMWARE 1.0 Under 2.3.5"
- Previous message: Alan Cox: "Re: Preparations for ZD's upcoming Apache/Linux benchmark"