Does kernel 2.6 has some trick on Context Switch

"Pu Jiangbo" <[email protected]>
Newsgroups gmane.linux.usb.devel,gmane.spam.detected
Message-ID <[email protected]>
Dear all,
	I've used LMBench to benchmark context switch between 2.4 and 2.6, and found an interesting thing that
when the thread size is between 0~1024KByte, the switching time increased as everyone predicted, however, when
bigger than 2M, it sharply decreased, like this:
256Kbyte/4 Processes: 47.3 ms
512Kbyte/4 Processes: 140.97 ms
1MByte/4 Processes: 142.63 ms
2MByte/4 Processes: 17.88 ms
4M----------------: 17.25 ms
8M----------------:	10.00 ms

when at a Linux 2.4 in the same PC:
512K/4P:	155.06 ms
1M/4P:		153.09 ms
2M/4P:		74.71 ms
4M/4P:		132.84 ms
8M/4P:		809.36 ms

I'm very comfused at this result, could anyone know something about that? Thank you very much!


Sincerely, Brooks
2007-05-18

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.