PDA

View Full Version : Which applications benefit from 4GB or more?


sabriah
03-26-2009, 05:32 PM
Which applications benefit from 4GB or more in RAM? I can imagine databases, servers, and video editing. But what else?

I cannot remember seeing any benchmarks where going from 2GB to 4GB would give you any benefit (possibly except in Vista). But, I could be mistaken. I run 64-bits so 4GB wouldn't be an issue.

Yes, RAM is "cheap" now, but I would like to have some hard evidence before I shell out $30 for another 2GB for my home machine... :)

grantek
03-26-2009, 06:48 PM
Windows maybe? That seems to be the consensus among the people I've heard selling (and justifying buying) RAM these days :)

Personally I'm happy with 2GB and don't notice any heavy swap activity.

If you're not doing any multimedia editing, the only other legitimate use for a large amount memory that I can think of is virtualisation (running one or more Xen/VBox/KVM etc. guests on your computer).

Some games may benefit from more memory, but I doubt you'd notice the difference even with most modern games.

Wyatt
03-26-2009, 07:02 PM
Things that benefit from more memory? Heavy multitasking, compiling, and Firefox. That said, I get by with 2GB, though I'll admit to the temptation of having more.

Ex-Cyber
03-26-2009, 07:32 PM
EDA (e.g. Xilinx/Altera tools, silicon compilers/simulators, etc.) and numerical computing (e.g. MATLAB/Octave) come to mind as likely candidates, although non-engineers probably don't care about such things. Ultimately it depends on the size of your design or data sets, but the footprint can grow pretty fast.

Melcar
03-26-2009, 07:36 PM
For normal Linux desktop use 2GB is really enough. 4GB is a bit overkill in my opinion. Despite x86_64 using more memory by default, I rarely use more than 2GB on a single desktop session.

RealNC
03-26-2009, 08:03 PM
I've put 6GB in my PC and made 4GB of it a tmpfs partition (like a ramdisk) :P

suokko
03-26-2009, 10:28 PM
Extra memory helps if your use scenario includes large total size of frequently used files. Unless you have very fast raid array to make read latency acceptable.

So my idea of what memory is required for low latency:
surfing/mail 256M (minimal mem: xfce, midori, etc)
-,,- 512M (gnome, kde, win xp)
office work/gaming 1G
high end gaming 2G
Heavy computer work 4+G (graphics, engineering, data mining, software development, etc)

Of course you can squeeze limits down if you know a bit more about computers and where to find light applications to save memory. But managing low memory system takes time each day ... time is money and memory is cheaper.

PS. I don't even have 1G memory but maybe soon. My computer is about retire soon as I'm currently running dd_rescue /dev/sda2 - | ssh server.local "gzip > sda2_recover.img.gz"

sabriah
03-27-2009, 03:19 AM
Heavy computer work 4+G (graphics, engineering, data mining, software development, etc)


Ok, I found the argument for me, here at Phoronix - http://www.phoronix.com/scan.php?page=article&item=606&num=4

Kernel compilation! :)

Kano
03-27-2009, 03:51 AM
Compiling does not need much memory, 1 GB would be enough for that task. VM are consuming much memory.

Hephasteus
03-27-2009, 06:53 PM
Swap usage doesn't really tell you much with linux. Most programs that can or do or want to use large amounts of ram usually manage memory themselves. Swaps really just a air bag for when things get totally out of control.

Compiling uses huge amounts of ram. Unfortunately I'm no linux guru I just know enough to know that until you put so little ram in a linux computer that it has no choice it won't use swap and if you put a ton of ram in a linux system you have to tweak some programs to get them to use it.

Don't try to run virtual machines without big ram. THAT I KNOW. Wine will even pig out on ram pretty good if it can and in standard linux fashion sip it sparingly if it can't.

I can tell ya though. Ram is cheap. Buy it cause if we lose one more big ram supplier that will stop.

Wyatt
03-28-2009, 04:40 AM
...until you put so little ram in a linux computer that it has no choice it won't use swap...
As I recall, this isn't quite true...from what I've read and experienced, the kernel will swap out old pages for its caching strategy even if some memory is left.

RealNC
03-28-2009, 07:01 AM
That seems to be true and the reason why you should use a swap partition even with plenty of RAM (though in this case that partition can be very small, as long at it's there). There will be a little bit of swap used for optimization purposes even if you had something like a 500GB RAM machine.

Hephasteus
03-28-2009, 04:11 PM
It's hard to figure out. I remember working on systems with sco unix years ago that used swap alot but those where the 4mb 8mb ram days. I can't remember if swap got used much with redhat 7 which i ran on very old hardware but since I've been running fedora from 4 to 10 I've never seen swap used with 1gb 1.5gb 4gb. My old system got flakey with dual channels and I had to run some with single channel here and there and I think it swapped a bit when I ran 512mb. Reguardless linux really busts it's butt trying to stay within 512mb from what I've seen with it. It keeps active stuff from about 360 mb to 490 mb most of the time on my system. But wine and VM's throw alot of that out the door.
But even vista doesn't need much ram if you run it in 2d graphics. So it seems that heavy ram usage won't come till we see heavy 3d usage.

Still like to understand that all better. It just seems so modularized and there's so much sharing and optimizing of the sharing profiles it's very hard to nail down. It all works like a pool and it seems so good at it's job that increasing the pool has little effect.

My gut says 512mb is where it's at for pure linux. 1gb for pure linux plus wine and 512mb plus whatever size you set for each VM for virtualization.

I played everquest on PEQ server while back and the server for that thing is very modest with only 2gb of ram. It never swaps but my gut tells me it could use tons more ram but never could figure out what perl 5.0 was doing well enough to suggest configuration changes to change it's pool profile. It would rather monkey around with the sharing pool than use more ram. The monkeying around would cause it to ignore the network so long that it dropped dozens of users at a time.

sabriah
03-31-2009, 04:29 PM
Ram is cheap. Buy it cause if we lose one more big ram supplier that will stop.

Ok, that was the argument I needed... :)

$35 for 2GB is not bad.

Oh, now I notice! There are 4 slots, which handle 2GB each!!! And, I have 2 free! I had forgottened.

So, my next thread would obviously be, Wouldn't 8GB RAM be worth an additional $70? ;)

Did the new 2GB help or make any difference? Well, I do think Google Earth load faster, even when I had like six, seven or eight Iceweasel windows open, and playing Amarok, and updating in the background, and smiling at the System Monitor. It might be a psychological effect of sorts only, but my smile outweighs that.

.

BlackStar
03-31-2009, 05:51 PM
I recently upgraded from 4 to 8GB of RAM, simpy because we've hit the bottom of DDR2 prices (they can only go up from here and, indeed, they are slowly starting to).

Did I notice a difference? Only in three cases: a) exporting a ridiculously complex model from blender to some other format (the python exporter allocated something close to 4.5GB of memory!), b) increasing memory limits in GIMP so you can work with 16+MPixel images in GIMP and c) running >3 VMs at the same time.

For everything else, 8GB is overkill.

sabriah
04-01-2009, 01:09 AM
For everything else, 8GB is overkill.

Bill Gates - "640K ought to be enough for anybody"

;)

yotambien
04-01-2009, 05:00 AM
I'm still running with the 1 Gb I got when I bought my laptop. There were only two instances when the thing started to swap (and eventually crashed). One was when, out of curiosity, I decided to render a 3D scene from some molecular simulation program to a file (ps, I think), at ridiculously high quality settings. It choke badly. The other was when working with Inkscape, Gimp, a WindowsXP virtual machine and some other visualization tool performing operations on a fat tiff file (on top of the regular browser, mailer, pdf viewer and what have you).

Most of the time, however, I don't seem to need any more memory. Having said this, if I had a bit more I'd do more often the trick of loading a movie to ram to watch it without banging the HD.

mirv
04-01-2009, 06:10 AM
Increased ram does help with some things (gimp and 16k x 16k pixel images - I'm another who sometimes uses that), but I'd say faster ram is more important if you're not dealing with large data sets. Well, I should say lower overall latency ram is more important. Of course, more memory and lower latency is better.

BlackStar
04-01-2009, 06:53 AM
Bill Gates - "640K ought to be enough for anybody"

;)

So we have to decorate our posts with disclaimers now? :p

"This assessment may not hold in the future. It is not valid for workstation- or server-class workloads. Your mileage may vary."

Btw, I'm pretty sure that wasn't an actual Bill Gates quote, despite its wide circulation. No linky but IIRC Snopes tracked down the original quote.

Edit: Also, faster RAM doesn't really gain you that much. It only plays a role a) if you have enough of it and b) if you already have the best processor and hard disk you can buy. (Paying 50$ for a faster processor will have a much bigger impact in performance compared to faster memory).

Hephasteus
04-01-2009, 03:24 PM
I finally got fedora 10 to use swap with 3.4gb (512mb shared ram to video). Brasero used up all my ram and from terminal
$free

******total*******used*****free*****shared****buff ers*****cached
mem***3544076***3520496****23580******0*********66 96*****2945732
-/+ buffers/cache: 568068 2976008
Swap:*8385920******60*****8385860

* for spaces.

energyman
04-01-2009, 03:57 PM
gcc - and yes, it can use lots of ram. I have seen 1gb for every make instance used by kdepim with kdeenablefinal flag. 3 make instances, 3 gb of ram used...

RealNC
04-01-2009, 05:13 PM
It sure helps on quad cores with "make -j5" on large packages. I guess only Arch and Gentoo users have to worry about that though :P

sabriah
04-02-2009, 01:55 AM
I burned a 3.4GB DVD yesterday. While I didn't benchmark it, I could see how the memory monitor went from 1GB allocated to 3.4GB in straight manner. The entire process took less than 5-10 minutes on a 16x DVD burner.

If I recall correctly it took much longer time before.

Do you think my observation was correct? Was it an actual improvement in burning speed thanks to the extra RAM?

RealNC
04-02-2009, 02:11 AM
When burning, there's a write cache that is used as buffer and is quite small (256MB max). Burning happens from that cache only. The rest simply got allocated by the kernel due to extra caching of files, but that doesn't speed up the burn process.

Fixxer_Linux
04-02-2009, 04:20 AM
It sure helps on quad cores with "make -j5" on large packages. I guess only Arch and Gentoo users have to worry about that though :P

Yep, 4Gb and a Quad Core is a real joy on compiling a Gentoo system. You can also use 2 Gb on a TMPFS...

What's the point of 2 Gb versus 4 Gb, when the price for 2 Gb is so cheap ??

RealNC
04-02-2009, 03:23 PM
Yep, 4Gb and a Quad Core is a real joy on compiling a Gentoo system. You can also use 2 Gb on a TMPFS...

Yep, I have 6GB with a 4GB tmpfs :D Funny thing though, it's still not enough for OpenOffice 3, that sucker needs exactly 5.3GB :eek:

What's the point of 2 Gb versus 4 Gb, when the price for 2 Gb is so cheap ??

My thinking too. After the prices dropped significantly, I simply upgraded from 2GB to 6GB for under 40 bucks :)

yesterday
08-11-2009, 12:18 PM
I have 8GB of RAM of which 2GB is devoted to a tempfs like the others here. If anything, the benefit of haveing a large disk cache is always useful.

It would be nice though, to have more specific tweaks to the caching/preloading formula. For example, many OSes try to "learn" what applications you always want loaded, but I would much rather specify if needed. Or for example to prioritise keeping the major desktop gui in memory.

deanjo
08-11-2009, 12:26 PM
Maya and Blender also love ram depending on the model, textures and scene size.

energyman
08-11-2009, 12:56 PM
free
total used free shared buffers cached
Mem: 8173972 3378744 4795228 0 2120 1863168
-/+ buffers/cache: 1513456 6660516
Swap: 23446836 0 23446836

df -h
Dateisystem Größe Benut Verf Ben% Eingehängt auf
rootfs 71G 21G 51G 30% /
/dev/root 71G 21G 51G 30% /
rc-svcdir 1,0M 100K 924K 10% /lib64/rc/init.d
udev 10M 140K 9,9M 2% /dev
shm 3,9G 0 3,9G 0% /dev/shm
/dev/md2 36G 16G 21G 44% /var
/dev/md3 765G 503G 263G 66% /home
/dev/sdc7 222G 62G 160G 28% /mnt/filme
tmpfs 4,0G 0 4,0G 0% /var/tmp/portage
tmpfs 1,0G 552K 1,0G 1% /tmp

model name : AMD Phenom(tm) II X4 955 Processor

:D

got it yesterday (had 6gb 2x2 and 2x1gb and a X2 6000). It is such a beast when it comes to compiling.

:D

BlackStar
08-11-2009, 01:33 PM
Maya and Blender also love ram depending on the model, textures and scene size.

I have seen blender eat up 6GB*of RAM*for breakfast. Granted, it was a large model, but still... :)

Kano
08-11-2009, 04:59 PM
Well you can run more PTS tests in live mode without hd with 8 GB RAM than 4 GB. With 2 GB it is more or less impossible to use toram option for a live image.