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.
  • This list contains about 551 messages, beginning Jun 2006
  • This list doesn't seem to be active
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

linux-2.6.36, builtin zram: sys/block/zram0/blocksize kaputt

Ad
clemens fischer 1288556732Sun, 31 Oct 2010 20:25:32 +0000 (UTC)
'uname -rms' -> Linux 2.6.36-spott i686

Hi,

I've been running compcache.googlecode.com/hg since 2.6.34.x.  The
latest interface needed only

    echo "$disksize" > /sys/block/zram0/disksize &&
    mkswap -L zram0 /dev/zram0 && swapon -p 55 /dev/zram0

and I got compressed swap for what little my machine usually had to do
with swapping, keeping thos eblocks off the disk.

Now this interface seems gone from what I read in zram.txt, and the
older zramconfig was resurrected.

Is this going to be permanent or was an older compcache version merged?
If it is permanent, where do I get the userspace from, I mean, what hg
version do I need to check out for them?  I noticed zramconfig somewhere
in the repo, but they must be in older revisions, because the current
code doesn't have it.


gruss, clemens fischer
regards, clemens fischer
Nitin Gupta 1289174575Mon, 08 Nov 2010 00:02:55 +0000 (UTC)
Hi,On Sun, Oct 31, 2010 at 4:25 PM, clemens fischer <
 wrote:

> 'uname -rms' -> Linux 2.6.36-spott i686
>
> I've been running compcache.googlecode.com/hg since 2.6.34.x.  The
> latest interface needed only
>
>    echo "$disksize" > /sys/block/zram0/disksize &&
>    mkswap -L zram0 /dev/zram0 && swapon -p 55 /dev/zram0
>
> and I got compressed swap for what little my machine usually had to do
> with swapping, keeping thos eblocks off the disk.
>
> Now this interface seems gone from what I read in zram.txt, and the
> older zramconfig was resurrected.
>
> Is this going to be permanent or was an older compcache version merged?
> If it is permanent, where do I get the userspace from, I mean, what hg
> version do I need to check out for them?  I noticed zramconfig somewhere
> in the repo, but they must be in older revisions, because the current
> code doesn't have it.
>I guess you are trying to use the mainline version of zram -- zramconfig is
now gone as we want to switch to /sys interface instead. Currently, mainline
version is in a bit inconsistent state and some important fixes have not yet
reached mainline due to time constraints. I hope to fix that in near future.
 In the mean time, please use zram code from project hg repository.

Thanks,
Nitin
clemens fischer 1289231863Mon, 08 Nov 2010 15:57:43 +0000 (UTC)
> Nitin Gupta:

> I guess you are trying to use the mainline version of zram -- zramconfig is
> now gone as we want to switch to /sys interface instead. Currently, mainline
> version is in a bit inconsistent state and some important fixes have not yet
> reached mainline due to time constraints. I hope to fix that in near future.
>  In the mean time, please use zram code from project hg repository.I already tried that, but it doesn't build with 2.6.36:

/src/bulk/linux/filesystems/compcache/compcache-dev
0 4 # make
make -C "/lib/modules/2.6.36-spott/build" M=/src/bulk/linux/filesystems/compcache/compcache-dev modules
make[1]: Entering directory `/mnt/backup/no-backup/usr/src/linux-2.6.36.y.git'
  CC [M]  /src/bulk/linux/filesystems/compcache/compcache-dev/zram_drv.o
.../compcache-dev/zram_drv.c: In function zram_make_request:
.../compcache-dev/zram_drv.c:461:2: error: implicit declaration of function bio_rw_flagged
.../compcache-dev/zram_drv.c:461:6: error: BIO_RW_DISCARD undeclared (first use in this function)


regards, clemens
Home | About | Privacy