linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* compression of swap pages
@ 2003-11-27 14:35 sygalula
  0 siblings, 0 replies; only message in thread
From: sygalula @ 2003-11-27 14:35 UTC (permalink / raw)
  To: linux-mm

Hello,

I'm working on a student's project. currently trying to modify swap file
contents (in order to try compressing them later).

I'm trying to change the pages being written to the swap file (via xor) and
change them back, after reading them (via same xor).

While writing a page to the swap, in rw_swap_page(), I mark the page with a flag
so that in rw_swap_page_base(), I would know to change it(xor).

While reading a page from the swap, in rw_swap_page(), I mark the page with a
flag, so that in end_buffer_io_async() I would know to change it back(xor).

The system crashes - so obviously, I'm missing something here...

Would really appriciate help...

Yaron Galula
sygalula@t2.technion.ac.il
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-11-27 14:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-27 14:35 compression of swap pages sygalula

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox