[lkml]   [1999]   [May]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: SMP/Swap idea?
> Hey, I got an idea, but I don't know if it has already been or is being
> implemented, but I think it can boost SMP performance. Why not have
> multiple swap files, one for each processor? Processes scheduled to run
> on a given CPU would have a higher probability of being swapped to a
> given swap file... Then you could put two swap files onto two separate
> drives for two processors. I think that could boost performance.... Or
> would there be too much overhead?

Why a special implementation for SMP? I gather that the load balancing should make swapping out pages scale linearly with the number of drives and swapping in pages should be slightly improved.

At least I'd hope this was the case - since I've put swap partitions at the start of both disks in my machine.

I don't see that giving a swap file to an individual processor would help, unless you could give each CPU its own disk controller.

But I imagine what might happen in the case where one CPU is being monopolised by a fairly numerically intensive task while the other is handling more mundane task switching and swapping. The first CPU may never need to swap and so it's disk r/w activity will have bandwidth to spare, while the second CPU may find itself limited by it's ability to swap pages to it's single disk rather than utilising the spare disk throughput on the second disk.

OK... am I wrong? Stupid? Uninformed?


Scott Manley (aka Szyzyg) /------ _@/ Mail -----\
___ _ _ __ __ _ | Armagh Observatory |
/ __| __ ___| |_| |_ | \/ |__ _ _ _ | |___ _ _ | Armagh |
\__ \/ _/ _ \ _| _| | |\/| / _` | ' \| / -_) || | | Northern Ireland |
|___/\__\___/\__|\__| |_| |_\__,_|_||_|_\___|\_, | | BT61 9DG. | |__/ \=====================/

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:51    [W:0.029 / U:5.316 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site