What is zram?

Search This thread

ratheeshraj

Senior Member
May 17, 2011
86
1
Kochi
Whats the current build version of devoid.franco? Is it v5?
Can someone explain what is zram?

Sent from my LG-P500 using XDA App
 

xpowa

Member
Apr 1, 2011
23
6
Here it is:
franciscofranco said:
The zram module creates RAM based block devices: /dev/ramX (X = 0, 1, ...).
Pages written to these disks are compressed and stored in memory itself.
These disks allow very fast I/O and compression provides good amounts of
memory savings.

Basically is for storing swapped pages into compressed memory ram.
 
  • Like
Reactions: ThaDFazz

sholimar

Senior Member
Feb 25, 2011
130
50
Hehe... doktornotor has a point, though!
I've read these forums for 2 weeks before rooting/flashing etc., and the time it takes to create a new thread is the same time it takes to press SEARCH - "zram" and going through a few posts. There's quite a number of explanations, for techy to noob users. :)

Sent from my LG-P500 using XDA Premium App
 

cmangalos

Senior Member
Nov 12, 2010
325
16
Cardona, Rizal
well, you just waste the page of this thread by bashing the thread starter,
not all people is good and have been on the android for a long time,
the thread starter will not ask this if he knows the function of zram,
are you guys proof which shows person on xda are rude,
please be guided by the rules on this forum,
help the newbies, , dont bash them or make them shame,
now i shame on you guys

this might help,

Creates RAM based block devices: /dev/zramX (X = 0, 1, ...).
Pages written to these disks are compressed and stored in memory
itself. These disks allow very fast I/O and compression provides
good amounts of memory savings.

This is enhancement over existing ramzswap driver which creates
virtual block devices (/dev/ramzswapX) which could be used only
as swap disks.

Now, with the ability to handle any kind of I/O request, zram
devices have lot more use cases:
- /tmp storage
- various caches under /var
- swap disks
- maybe even more!
 
  • Like
Reactions: lee yun khong

Djidara

Senior Member
Mar 21, 2011
82
39
Vinkovci
well, you just waste the page of this thread by bashing the thread starter,
not all people is good and have been on the android for a long time,
the thread starter will not ask this if he knows the function of zram,
are you guys proof which shows person on xda are rude,
please be guided by the rules on this forum,
help the newbies, , dont bash them or make them shame,
now i shame on you guys

now look, they may be rude but they are right. i mean u will hear same thing on every forum in world, "use search", or google if u wish to learn more.
on the other hand, if u want to search instead of them, and answer any question that has answer 2 clicks away, knock yourself out.

sorry for offtopic
 
  • Like
Reactions: sholimar

daniequy

Member
May 15, 2011
34
14
I think it is not a bad question, we all now basically what is it but I don't think many ppl know how it really works and why why didn't use it before.
 

cmangalos

Senior Member
Nov 12, 2010
325
16
Cardona, Rizal
now look, they may be rude but they are right. i mean u will hear same thing on every forum in world, "use search", or google if u wish to learn more.
on the other hand, if u want to search instead of them, and answer any question that has answer 2 clicks away, knock yourself out.

sorry for offtopic

i believe the thread starter searched google before making thread about zram, common people, xda is made to share, not to stomp new ones,

Sent from my LG-P500 using XDA Premium App
 

soberspine

Senior Member
May 22, 2011
175
30
I flashed zram on my phone but I don't see any differences, performance improvements, free ram? Do I need to do anythiing else?

Can someone explain me as simple as posibile what zram does.
Beside making a sd-ext partition and flash zram do I need to install another application?
 
D

doktornotor

Guest
I flashed zram on my phone but I don't see any differences, performance improvements, free ram? Do I need to do anythiing else?

Uh. If you are expecting more free RAM from this then you completely missed the bus. zram is using RAM to create a fast compressed swap space. Also, it has nothing to do with ext partitions on your SD card or whatever. Google for Linux swap to get a basic clue on what swapping is.
 

soberspine

Senior Member
May 22, 2011
175
30
"If the system happens to need more memory resources or space, inactive pages in physical memory are then moved to the swap space therefore freeing up that physical memory for other uses."

is this something like paging file in windows?

how do I know if zram is working? my sd-ext partition is empty...

I apologize if I bother with my questions but I don't know where or what to search.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    Maybe if you bothered reading the very first post on the franco thread then you would not have to ask such ridiculous questions.



    U just love going around this forum bashing people, dont u?
    2
    do I enter those commands as they are in terminal emulator?
    I get adb not found
    what should I see?

    You could enter that in the terminal emulator. To use ADB, you have to download the Android SDK (google for that) and install it on your machine, than launch the adb service from the path of installation (navigate to ex: program files/android/platform-tools/adb using your command prompt - on win, or ex: /home/android-sdk/platform-tools/adb if you have linux and put the sdk in your home folder.) - read more about adb on google.

    Advice: Do not think about Android running smartphones as you would about a windows pc. You don't need free ram. If you're ram is almost full, it means Android is working well, you're processes are prepared to launch apps at any time. So on Android, ram used => good! If you kill your apps with a brainless task manager, all you do is force your CPU to reopen them and write in the memory again, using more battery and processing power => let the os deal with that, it does it better than you.

    Hoped that helped a little, for any Qs, we are here!
    Cheers mates!
    1
    Here it is:
    franciscofranco said:
    The zram module creates RAM based block devices: /dev/ramX (X = 0, 1, ...).
    Pages written to these disks are compressed and stored in memory itself.
    These disks allow very fast I/O and compression provides good amounts of
    memory savings.

    Basically is for storing swapped pages into compressed memory ram.
    1
    well, you just waste the page of this thread by bashing the thread starter,
    not all people is good and have been on the android for a long time,
    the thread starter will not ask this if he knows the function of zram,
    are you guys proof which shows person on xda are rude,
    please be guided by the rules on this forum,
    help the newbies, , dont bash them or make them shame,
    now i shame on you guys

    this might help,

    Creates RAM based block devices: /dev/zramX (X = 0, 1, ...).
    Pages written to these disks are compressed and stored in memory
    itself. These disks allow very fast I/O and compression provides
    good amounts of memory savings.

    This is enhancement over existing ramzswap driver which creates
    virtual block devices (/dev/ramzswapX) which could be used only
    as swap disks.

    Now, with the ability to handle any kind of I/O request, zram
    devices have lot more use cases:
    - /tmp storage
    - various caches under /var
    - swap disks
    - maybe even more!
    1
    well, you just waste the page of this thread by bashing the thread starter,
    not all people is good and have been on the android for a long time,
    the thread starter will not ask this if he knows the function of zram,
    are you guys proof which shows person on xda are rude,
    please be guided by the rules on this forum,
    help the newbies, , dont bash them or make them shame,
    now i shame on you guys

    now look, they may be rude but they are right. i mean u will hear same thing on every forum in world, "use search", or google if u wish to learn more.
    on the other hand, if u want to search instead of them, and answer any question that has answer 2 clicks away, knock yourself out.

    sorry for offtopic