ArchiveOrangemail archive

Compressed Caching for Linux


linux-mm-cc.lists.laptop.org
(List home) (Recent threads) (86 other One Laptop per Child lists)

Subscription Options

  • RSS or Atom: Read-only subscription using a browser or aggregator. This is the recommended way if you don't need to send messages to the list. You can learn more about feed syndication and clients here.
  • Conventional: All messages are delivered to your mail address, and you can reply. To subscribe, send an email to the list's subscribe address with "subscribe" in the subject line, or visit the list's homepage here.
  • Low traffic list: less than 3 messages per day
  • This list contains about 551 messages, beginning Jun 2006
  • 0 messages added yesterday
Report the Spam
This button sends a spam report to the moderator. Please use it sparingly. For other removal requests, read this.
Are you sure? yes no

Is swap notify in 2.6.34?

Ad
Clemens Eisserer 1274471084Fri, 21 May 2010 19:44:44 +0000 (UTC)
Hi,

First of all a big thank you work working on compcache!
Is sawp notify support already in 2.6.34, or if not, is integration
into mainline planned?

Thanks again, Clemens
John McCabe-Dansted 1274504806Sat, 22 May 2010 05:06:46 +0000 (UTC)
On Sat, May 22, 2010 at 3:44 AM, Clemens Eisserer wrote: > First of all a big thank you work working on compcache! > Is sawp notify support already in 2.6.34
Apparently not: /msg00177.html >, or if not, is integration > into mainline planned?
Yes, Nitin Gupta has recently resubmitted the patches http://lkml.org/lkml/2010/5/7/54 Now Torvalds seems to be happy :) http://lkml.org/lkml/2010/5/7/224 OT: There was some discussions of the stats ioctl http://lkml.org/lkml/2010/5/8/11 I found the old /proc/rzstats type interface more useful myself. Currently I need to do a sudo just to read some stats. I could set up some SUID binary to do this for me but I am not sure why the old /proc/ interface was replaced.
Nitin Gupta 1274511917Sat, 22 May 2010 07:05:17 +0000 (UTC)
On 05/22/2010 10:35 AM, John McCabe-Dansted wrote: > On Sat, May 22, 2010 at 3:44 AM, Clemens Eisserer wrote: >> First of all a big thank you work working on compcache! >> Is sawp notify support already in 2.6.34 > > Apparently not: > /msg00177.html > >> , or if not, is integration >> into mainline planned? > > Yes, Nitin Gupta has recently resubmitted the patches > http://lkml.org/lkml/2010/5/7/54 > > Now Torvalds seems to be happy :) > http://lkml.org/lkml/2010/5/7/224 >
Its now in mainline. So, it will be part of 2.6.35 :)
> OT: There was some discussions of the stats ioctl > http://lkml.org/lkml/2010/5/8/11 > I found the old /proc/rzstats type interface more useful myself. > Currently I need to do a sudo just to read some stats. I could set up > some SUID binary to do this for me but I am not sure why the old > /proc/ interface was replaced. > >
I'm now planning to export stats through /sys interface. Also, I've changes under testing that allow ramzswap devices to be used for *any* purpose, not just for swap. So, you could now say create ext4 filesystem over these devices and mount it as /tmp. Considering generic nature of these devices, now they will be renamed as /dev/zramX (X = 1, 2 ...). Thanks, Nitin
Clemens Eisserer 1274515653Sat, 22 May 2010 08:07:33 +0000 (UTC)
Hi Nitiin,

> Its now in mainline. So, it will be part of 2.6.35 :)

That is really great news, looking foreward to update Fedora-13 one day ;)

Thanks again, Clemens
John McCabe-Dansted 1275276775Mon, 31 May 2010 03:32:55 +0000 (UTC)
On Sat, May 22, 2010 at 3:01 PM, Nitin Gupta wrote: >>> First of all a big thank you work working on compcache! >>> Is sawp notify support already in 2.6.34
... > Its now in mainline. So, it will be part of 2.6.35 :) Weird I have updated to the latest kernel but I cannot find swap_slot_free_notify in swap.h. $ git pull Already up-to-date. $ grep url .git/config url = git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git $ grep notify include/linux/swap.h $ Am I looking in the "wrong" mainline?
Nitin Gupta 1275278992Mon, 31 May 2010 04:09:52 +0000 (UTC)
On 05/31/2010 09:02 AM, John McCabe-Dansted wrote: > On Sat, May 22, 2010 at 3:01 PM, Nitin Gupta wrote: >>>> First of all a big thank you work working on compcache! >>>> Is sawp notify support already in 2.6.34 > ... >> Its now in mainline. So, it will be part of 2.6.35 :) > > Weird I have updated to the latest kernel but I cannot find > swap_slot_free_notify in swap.h. > > $ git pull > Already up-to-date. > $ grep url .git/config > url = git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git > $ grep notify include/linux/swap.h > $ > > Am I looking in the "wrong" mainline? >
You are looking at the right tree but the wrong file. Changes are in include/linux/blkdev.h, mm/swapfile.c and ramzswap_drv.c. See these three commits: (git show <commit_no>) commit b27256439568950f30864ccecaeb6dfb588089d5 swap: Add flag to identify block swap devices commit b3a27d0529c6e5206f1b60f60263e3ecfd0d77cb swap: Add swap slot free callback to block_device_operations commit 107c161b7ddeeb7da43509cc6b29211885ccd9af Staging: ramzswap: Handler for swap slot free callback Thanks, Nitin
Home | About | Privacy