SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2011-10-02 23:10:52

mahatman2
#! Die Hard
From: Chattanooga TN
Registered: 2009-09-13
Posts: 551

Zram: A good idea?


Punch all your friends.

Offline

Be excellent to each other!

#2 2011-10-02 23:50:39

el_koraco
#!/loony/bun
From: inside Ed
Registered: 2011-07-25
Posts: 4,749

Re: Zram: A good idea?

Last edited by el_koraco (2011-10-02 23:51:41)

Offline

#3 2011-10-03 04:18:18

mahatman2
#! Die Hard
From: Chattanooga TN
Registered: 2009-09-13
Posts: 551

Re: Zram: A good idea?

Last edited by mahatman2 (2011-10-03 04:19:00)


Punch all your friends.

Offline

#4 2011-10-04 03:37:36

tradetaxfree
#! CrunchBanger
Registered: 2011-03-05
Posts: 126

Re: Zram: A good idea?

modprobe -nv zram

Last edited by tradetaxfree (2012-08-09 13:58:48)

Offline

#5 2011-10-04 12:00:53

GuruX
#! Die Hard
Registered: 2009-01-18
Posts: 527

Re: Zram: A good idea?

I really don't get the benefit of zRam or compcache. Instead of filling your swap with data, you put a compressed swap on ram?
But if you run without swap, you won't get any benefits unless you are tight on ram? Or if you run a system with swappiness set to 0.

Offline

#6 2011-10-04 12:53:56

tradetaxfree
#! CrunchBanger
Registered: 2011-03-05
Posts: 126

Re: Zram: A good idea?

With 2 gig RAM I run without swap as it hardly ever got used. I also suspend to RAM rather than hibernate so I don't need a swap partition. I think the main benefit will come with running virtual machine(s). I've not found any disadvantages as yet & it's a simple tweak.

It will be interesting for SSD users also.

Offline

#7 2011-10-04 13:01:32

mahatman2
#! Die Hard
From: Chattanooga TN
Registered: 2009-09-13
Posts: 551

Re: Zram: A good idea?

@tradetaxfree: I found out why it wants to uninstall important things: I do not have zram on my kernel tongue

Well, that's one mystery solved!


Punch all your friends.

Offline

#8 2011-10-04 13:18:49

tradetaxfree
#! CrunchBanger
Registered: 2011-03-05
Posts: 126

Re: Zram: A good idea?

Last edited by tradetaxfree (2011-10-04 15:27:20)

Offline

#9 2011-10-06 14:30:12

jeffreyC
#! Die Hard
Registered: 2010-09-02
Posts: 596

Re: Zram: A good idea?


There's a reason you separate military and the police. One fights the enemies of the state, the other serves and protects the people. When the military becomes both, then the enemies of the state tend to become the people.

Offline

#10 2012-05-10 19:22:34

Shnatsel
New Member
Registered: 2012-05-09
Posts: 2

Re: Zram: A good idea?

Offline

#11 2012-06-17 22:04:15

tradetaxfree
#! CrunchBanger
Registered: 2011-03-05
Posts: 126

Re: Zram: A good idea?

Last edited by tradetaxfree (2012-07-12 17:20:48)

Offline

#12 2012-06-17 22:35:04

omns
#! wanderer
From: ~/
Registered: 2008-11-25
Posts: 5,131

Re: Zram: A good idea?

Moved to Help & Support smile

Offline

#13 2012-06-18 06:14:35

Awebb
The Singularity
Registered: 2009-07-23
Posts: 2,812

Re: Zram: A good idea?

Yo dawg...

People really put their swap in the RAM to circumvent slow drives, which takes away free RAM which accelerates the need for swap? What exactly did I miss?


I'm so meta, even this acronym

Offline

#14 2012-06-18 10:42:11

tradetaxfree
#! CrunchBanger
Registered: 2011-03-05
Posts: 126

Re: Zram: A good idea?

Last edited by tradetaxfree (2012-06-18 10:44:48)

Offline

#15 2012-06-18 11:59:09

Awebb
The Singularity
Registered: 2009-07-23
Posts: 2,812

Re: Zram: A good idea?

If I set the swappiness correctly, then the kernel won't swap until it needs to. It would swap earlier, as there is less ram because it is allocated to the zram. I am still not convinced that there is a real scenario for this, that goes beyond a misconfigured swappiness.


I'm so meta, even this acronym

Offline

#16 2012-09-03 22:22:26

nettlebay
New Member
Registered: 2012-09-03
Posts: 1

Re: Zram: A good idea?

:)Hello!
About the Tradetaxfree's script.
I use it without any problem on my Eeebox B-202 with Crunchbang  Waldorf installed. But is it possible to adapt it to ramzswap? Because my wife's Eeepc 700 has not Zram available but only ramzswap ( I prefer not to update the kernel now) .
Thanks in advance.

Offline

#17 2012-09-04 12:04:51

tradetaxfree
#! CrunchBanger
Registered: 2011-03-05
Posts: 126

Re: Zram: A good idea?

Offline

#18 2012-09-14 03:52:47

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 4,148
Website

Re: Zram: A good idea?

Offline

#19 2012-09-14 04:21:32

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 4,148
Website

Re: Zram: A good idea?

To get some benefit with a virtualized machine, should this be done on the host or the guest, or both?

In my case, host has 1GB RAM and guest has been allocated 395 or so. The guest often starts swapping and really slows down, almost freezing sometimes. (apt-xapian-index is a major culprit.)

Last edited by johnraff (2012-09-14 04:24:03)

Offline

#20 2012-09-14 07:43:30

Awebb
The Singularity
Registered: 2009-07-23
Posts: 2,812

Re: Zram: A good idea?

As a side note, guests should not swap at all. They should be allocated enough RAM and the host should do the swapping. If you, for some reason, need swap space for a guest, I would create a seperate disk file on the host and put that in a tmpfs... if you have enough RAM that is.

Once RAM is compressed, it cannot be compressed any further by the same algorithm on the same quality level. Take a 1MB text file and compress it with bzip2 and then compress the archive with bzip2 again. All you will compress on the second run are the archive metadata.

I'd turn swap off for the guests anyway. I'd rather have the host do the swapping and I'd rather allocate too much ram to the guest. This was helpful in a few real life scenarios at least. There is no unique answer to that question. It all depends :-)


I'm so meta, even this acronym

Offline

#21 2012-09-14 12:48:11

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 4,148
Website

Re: Zram: A good idea?

Offline

#22 2012-09-14 13:02:19

Awebb
The Singularity
Registered: 2009-07-23
Posts: 2,812

Re: Zram: A good idea?

If you really want to defeat performance problems, do not use Virtualbox. Either bite the pear and get the free VMWare player or learn how to use qemu. This is, by the way, not motivated by asympathy for Oracle. Virtualbox just sucks, teaches you bad concepts and keps you away from really knowing anything about virtualization.


I'm so meta, even this acronym

Offline

#23 2012-09-14 13:39:15

tradetaxfree
#! CrunchBanger
Registered: 2011-03-05
Posts: 126

Re: Zram: A good idea?

Offline

#24 2012-09-14 15:25:20

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 4,148
Website

Re: Zram: A good idea?

Hmm OK you guys no more Virtualbox. Aah another hard road lies ahead...

Offline

Be excellent to each other!

#25 2012-09-14 15:53:01

el_koraco
#!/loony/bun
From: inside Ed
Registered: 2011-07-25
Posts: 4,749

Re: Zram: A good idea?

virt-manager is a graphical utility to handle most of the tasks. I haven't tried it, just browsed the docs, and it doesn't seem too inconvenient, no harder than LVM or NFS.

Last edited by el_koraco (2012-09-14 15:53:13)

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: bleh

Debian Logo