![]() | |||||||||||
Messages in this thread |
Alan Cox <alan@lxorguk.ukuu.org.uk> wrote: > > I would still expect the only thing to materially improve swap latency > to be a log structured swap, possibly with a cleaner which tidies > together pages that are referenced together. > Maybe. It'd be nice to show some benefit from the "organise pages by virtual address" patch first. But then, maybe that doesn't help because there is little correlation between address congruency and time-of-reference. That's hard to believe though. hm. The patch _does_ do what I wanted it to do. Maybe I tested it with silly workloads. > > You also want contiguous runs of at least 64K and probaly a lot more on > bigger memory systems. I used 1MB. +/* + * We divide the swapdev into 1024 kilobyte chunks. We use the cookie and the + * upper bits of the index to select a chunk and the rest of the index as the + * offset into the selected chunk. + */ +#define CHUNK_SHIFT (20 - PAGE_SHIFT) - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ | ||||||||||
| Last update: 2005-03-22 14:06 [from the cache] ©2003-2008 | |||||||||||