On Fri, Oct 28, 2005 at 09:19:14AM -0700, Badari Pulavarty wrote: > My touch tests so far, doesn't really verify data after freeing. I was > thinking about writing cases. If I can use UML to do it, please send it > to me. I would rather test with real world case :) Grab and unpack http://www.user-mode-linux.org/~jdike/truncate.tar.bz2 That will give you a "linux" directory. Make sure that your /tmp is tmpfs with > 192M of space. Run UML - from above the linux directory, this would be something like linux/2.6/linux-2.6.14-rc5/obj/linux con0=fd:0,fd:1 con1=none con=pts ssl=pts umid=debian mem=192M ubda=linux/debian_22 devfs=nomount Log in, the root password is "root". Unplug some memory - linux/uml_mconsole debian config mem=-10M Go back to the UML and try do to something - ps, ls, anything. It will be hung on handling an infinite page fault loop due to a whole lot of pages having been zeroed all of a sudden. This will happen even when you unplug 2 pages (mem=-8K). Only one of them will be madvised because the other is used to keep track of the madvised pages. I also included my patchset in there (linux/2.6/linux-2.6.14-rc5/patches) if you want to build UML from source. Due to my not refreshing the hotplug patch before making the tarball, it's not there. So, I've attached it. Jeff