Re: invoking zcache w/o using a workload
Hi Asim :) On Thu, Aug 16, 2012 at 2:40 AM, Asim wrote: > Thanks Mulyadi - I was able to trigger clean cache by reducing the > memory and using dd to create a file larger than RAM. Good to hear your success, man! :) I learn something from you too. Looking forward to hear about your experiment's result in near future -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: invoking zcache w/o using a workload
Thanks Mulyadi - I was able to trigger clean cache by reducing the memory and using dd to create a file larger than RAM. -Asim On Mon, Aug 13, 2012 at 10:42 PM, Mulyadi Santosa wrote: > On Tue, Aug 14, 2012 at 1:53 AM, Asim wrote: >> Thanks Mulyadi for your response. >> >> zcache has cleancache (a third level page cache) and front swap(swap >> cache). I am trying to trigger clean cache and now the swap device. >> But my guess is reducing the memory should also cause these evictions >> rapidly. > > Awaiting news from you about this experiment :) > > -- > regards, > > Mulyadi Santosa > Freelance Linux trainer and consultant > > blog: the-hydra.blogspot.com > training: mulyaditraining.blogspot.com ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: invoking zcache w/o using a workload
On Tue, Aug 14, 2012 at 1:53 AM, Asim wrote: > Thanks Mulyadi for your response. > > zcache has cleancache (a third level page cache) and front swap(swap > cache). I am trying to trigger clean cache and now the swap device. > But my guess is reducing the memory should also cause these evictions > rapidly. Awaiting news from you about this experiment :) -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: invoking zcache w/o using a workload
Thanks Mulyadi for your response. zcache has cleancache (a third level page cache) and front swap(swap cache). I am trying to trigger clean cache and now the swap device. But my guess is reducing the memory should also cause these evictions rapidly. Thanks, Asim On Sun, Aug 12, 2012 at 11:56 PM, Mulyadi Santosa wrote: > Hi... > > On Mon, Aug 13, 2012 at 3:58 AM, Asim wrote: >> Is there a way I can trigger zcache_get/put (specifically clean cache) >> with a simple unit test (as opposed to running a workload) ? This will >> greatly reduce my test/build time. > > I am a new user of zcache (due to playing with recent Mint release). > > I got impression that by reducing mapped memory you have (using "mem=" > kernel parameter) and putting zram/zcache into high priority swap, is > enough to quickly trigger allocation into zcache. of course, you need > memory hogger for that, something like "tail -f /dev/zero". > > CMIIW if misunderstood you... > > > -- > regards, > > Mulyadi Santosa > Freelance Linux trainer and consultant > > blog: the-hydra.blogspot.com > training: mulyaditraining.blogspot.com ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: invoking zcache w/o using a workload
Hi... On Mon, Aug 13, 2012 at 3:58 AM, Asim wrote: > Is there a way I can trigger zcache_get/put (specifically clean cache) > with a simple unit test (as opposed to running a workload) ? This will > greatly reduce my test/build time. I am a new user of zcache (due to playing with recent Mint release). I got impression that by reducing mapped memory you have (using "mem=" kernel parameter) and putting zram/zcache into high priority swap, is enough to quickly trigger allocation into zcache. of course, you need memory hogger for that, something like "tail -f /dev/zero". CMIIW if misunderstood you... -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
invoking zcache w/o using a workload
Hi, I was playing around with zcache and fiddling with different compression algorithms. Furthermore, I was integrating some checksum algorithms for cleancache for my own project goals. Unfortunately, I need to run a workload to trigger zcache. Is there a way I can trigger zcache_get/put (specifically clean cache) with a simple unit test (as opposed to running a workload) ? This will greatly reduce my test/build time. I was wondering if there is an existing unit test-suite. Or I could write a simple kernel module to trigger put/get but I was wondering how to go about invoking these operations. My guess is calling cleancache_get/free using a page off (get_free_page) will not invoke zcache. Any suggestions will be useful. Thanks, Asim ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies