New Computer System

Hi, I'd like to get a new desktop computer system; I'm currently using a 1.8 GHz C2D with 2 GB of memory with debian squeeze. It doesn't seem up to the job any more; HD movies are choppy; iceweasel is sluggish. I use my computer system for typical desktop reasons: Gnome Internet browsing Evolution mail client amarok Watching movies Basic image processing with gimp. I'm thinking of getting something along the lines of: i7 3.4 GHz 4GB DDR3 2 TB HD Graphics card. I'll probably stick with debian but I might try out ubuntu and linux mint distros. Does this sound reasonable? Any suggestions or recommendations?

David Zuccaro <david.zuccaro@optusnet.com.au> wrote:
I'm thinking of getting something along the lines of:
i7 3.4 GHz 4GB DDR3 2 TB HD Graphics card.
I'll probably stick with debian but I might try out ubuntu and linux mint distros.
Does this sound reasonable?
Yes. You could consider an SSD for the operating system if you want software to load more quickly, then just use the hard drive for data files. I would lean toward more RAM (and a slower CPU if the budget's tight). Make sure it's a modern board with SATA III and USB 3.0 included.

Hi, You may not have to replace your old computer. The biggest, cheapest boost you can give an ageing computer is more RAM. 2GB is tiny by today's standards. I use GKrellM http://freecode.com/projects/gkrellm to watch the free memory, swap usage and swap rate, and disk I/O rates. When your computer is running slow, look at the little graphs to see which resource is slowing things down. Then you can make informed decisions about what needs improving. Keep away from swap! Avoiding re-reading from disk using memory buffer caching. CPU speed, RAM size, disk size etc have been following Moore's law and getting better all the time, but disk rotation and seek times have not. Ideally, you want to read some file in from disk _once_ after you boot, and not have to re-read it if you run that program again. For example, if you use DDR2 RAM, add a 4GB kit for $56 http://www.msy.com.au/product.jsp?productId=5312 Or, if you use DDR3 RAM, add a 4GB kit for $32 http://www.msy.com.au/product.jsp?productId=5177 === If buying a new computer, give it at least 8GB DDR3 for $62. http://www.msy.com.au/product.jsp?productId=5177 If you feel the need for speed, you could put your root partition on a SSD, or use a motherboard that uses a SSD to transparently cache a normal disk. You shouldn't be swapping, so don't put that on the SSD :-) John On 21 April 2013 12:55, David Zuccaro <david.zuccaro@optusnet.com.au> wrote:
Hi,
I'd like to get a new desktop computer system; I'm currently using a 1.8 GHz C2D with 2 GB of memory with debian squeeze. It doesn't seem up to the job any more; HD movies are choppy; iceweasel is sluggish.
I use my computer system for typical desktop reasons:
Gnome Internet browsing Evolution mail client amarok Watching movies Basic image processing with gimp.
I'm thinking of getting something along the lines of:
i7 3.4 GHz 4GB DDR3 2 TB HD Graphics card.
I'll probably stick with debian but I might try out ubuntu and linux mint distros.
Does this sound reasonable?
Any suggestions or recommendations?
_______________________________________________ luv-talk mailing list luv-talk@lists.luv.asn.au http://lists.luv.asn.au/listinfo/luv-talk

On Sun, 21 Apr 2013, David Zuccaro <david.zuccaro@optusnet.com.au> wrote:
I'd like to get a new desktop computer system; I'm currently using a 1.8 GHz C2D with 2 GB of memory with debian squeeze. It doesn't seem up to the job any more; HD movies are choppy; iceweasel is sluggish.
For the "choppy" movies, what player are you using? If you use mplayer then run it from the command-line and it'll tell you if the CPU is too slow. One of my systems has an Intel E4600 CPU (2.4GHz dual core) and it plays 1080p movies poorly (drops frames and gives mplayer warnings). Sometimes I use avconv to scale down movies before watching them. Movie playing isn't that important to me so scaling a movie file to 720p and then scaling it up again at play back time while theoretically losing quality in practice doesn't impact my enjoyment. Anyway that system doesn't have the fastest graphics card, my main purchase criteria were supporting a 27" monitor at full resolution (2560*1440 rules out lots of graphics cards) and having no fan. If video performance was important to me I'd investigate a new video card before a new system. When iceweasel performs poorly how much swap is in use and is the hard drive light on a lot? Iceweasel performance is probably limited by RAM use - although it's apparently not as bad as Chromium. How much RAM does your system support? Many Intel systems have crappy chipsets that limit you to 4GB physical address space of which ~700MB is reserved for IO giving a maximum of 3.3GB of usable RAM. Even if you have one of those chipsets designed to be obsolete then you will still be able to improve performance a lot by upgrading the RAM. I've got a bunch of systems with 3.3G of RAM which perform quite nicely. But 8G will be better if you can do it (and RAM is cheap nowadays). SSD makes a huge difference for IO performance. Most reports about reliability make Intel look good. Intel won't necessarily be the best but they have a good enough history that you probably won't regret buying one. I've got a bunch of Intel SSDs in production and they are working really well - not as fast as I hoped and they have some specific bad corner cases for writing but for reading they do really well. Put swap on your SSD. An SSD is not at all like a USB flash device. Swap on a USB flash device will kill it quickly but Intel SSDs and other serious devices are designed for write-back caching on ZFS and other uses that are very write intensive. They will survive any reasonable swap use. That said you should get enough RAM that you aren't swapping a lot anyway, even on SSD paging hurts performance.
I use my computer system for typical desktop reasons:
Gnome Internet browsing Evolution mail client amarok Watching movies Basic image processing with gimp.
I'm thinking of getting something along the lines of:
i7 3.4 GHz Graphics card.
If you are doing software decoding of high resolution video then even that might not satisfy you. When a 2.4GHz CPU has problems with 1080p you can expect that the next step up in resolution could give problems for a 3.4GHz CPU. As it seems that your only CPU intensive task is playing movies you should make the graphics card a priority. In fact you might want to start by putting a new graphics card in your current system before you even buy a new system (PCIe cards work in all modern systems).
4GB DDR3
Don't upgrade to a system with only 4GB. While 4GB will give you a significant benefit it's not enough to be part of an upgrade from your current system. If 4GB of RAM will do the job then keep your current system.
2 TB HD
Upgrading hard drives is a major PITA. So when you buy a drive you should buy the biggest that isn't really expensive to delay your next purchase. 4TB disks are unreasonably expensive but 3TB disks aren't much more expensive than 2TB disks. Get 3TB. Disks die on occasion. Get 2*3TB disks in a RAID-1 for bulk storage. Use a SSD for swap, root, /home, and anything else that's not really big and for which performance matters. A 120G SSD should cover all that. A 3TB RAID-1 array has plenty of space for a cron job to backup the 120G SSD. -- My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/

Russell Coker wrote:
For the "choppy" movies, what player are you using? If you use mplayer then run it from the command-line and it'll tell you if the CPU is too slow.
Note that it'll also suggest that if, for example, your GPU driver lacks XV support and X is using 30% of the CPU to do the render. In that case getting a better driver might suffice.
One of my systems has an Intel E4600 CPU (2.4GHz dual core) and it plays 1080p movies poorly (drops frames and gives mplayer warnings). Sometimes I use avconv to scale down movies before watching them.
Most of the stuff I "watch", -vo null is even better -- it's just some guy standing in front of a lectern anyway :-)

Hi Russell, Thanks for your detailed and considered comments and thanks to the others that responded also. On Sun, 2013-04-21 at 19:58 +1000, Russell Coker wrote:
On Sun, 21 Apr 2013, David Zuccaro <david.zuccaro@optusnet.com.au> wrote:
For the "choppy" movies, what player are you using?
Totem Also I don't have a video card, I'm using an onboard graphics controller: 00:02.0 VGA compatible controller: Intel Corporation 82945G/GZ Integrated Graphics Controller (rev 02) This is the motherboard: http://www.gigabyte.com/products/product-page.aspx?pid=2304#sp I put in an extra 2GB stick so now its memory capacity has been maxed out.
If you use mplayer then run it from the command-line and it'll tell you if the CPU is too slow.
One of my systems has an Intel E4600 CPU (2.4GHz dual core) and it plays 1080p movies poorly (drops frames and gives mplayer warnings). Sometimes I use avconv to scale down movies before watching them. Movie playing isn't that important to me so scaling a movie file to 720p and then scaling it up again at play back time while theoretically losing quality in practice doesn't impact my enjoyment.
Using mplayer seems to give much better performance than totem.
Anyway that system doesn't have the fastest graphics card, my main purchase criteria were supporting a 27" monitor at full resolution (2560*1440 rules out lots of graphics cards) and having no fan.
If video performance was important to me I'd investigate a new video card before a new system.
When iceweasel performs poorly how much swap is in use and is the hard drive light on a lot?
No. This is not a swap issue. No swap is in use just complex (buggy resource intensive, badly put together web pages. I think I will make do with what I have at this stage. I will definitely need a bigger HD and as you say swapping to a new HD is going to be a PITA but it needs to be done. top also gives memory usage. free -m total used free shared buffers cached Mem: 3288 3122 165 0 50 2598 -/+ buffers/cache: 473 2814 Swap: 2863 0 2863
Iceweasel performance is probably limited by RAM use - although it's apparently not as bad as Chromium.
How much RAM does your system support?
4GB
Many Intel systems have crappy chipsets that limit you to 4GB physical address space of which ~700MB is reserved for IO giving a maximum of 3.3GB of usable RAM.
Looks like I have one of those. :( I added /sbin/sysctl vm.swappiness=05 to my start up script as Steve suggested. Seems to have helped but not sure. In summary I think I will do some upgrading before I buy a new system; and look into getting a graphics card. Thanks everyone for your comments.

On Sun, Apr 21, 2013 at 12:55:34PM +1000, David Zuccaro wrote:
I'd like to get a new desktop computer system; I'm currently using a 1.8 GHz C2D with 2 GB of memory with debian squeeze. It doesn't seem up to the job any more; HD movies are choppy; iceweasel is sluggish.
1. RAM as others have mentioned, 2GB of RAM is not enough these days. if you can upgrade the RAM in your current computer to 4 or 8GB, you might be able to avoid upgrading everything else. if your current motherboard takes DDR3 RAM, it's worth first trying anyway - if it doesn't fix all your performance problems, you can re-use the DDR3 RAM in a replacement m/b. an 8G kit of DDR3-1333 RAM starts from around $58. btw, DDR-1333 or DDR3-1600 is probably good enough. you can buy faster RAM (1866 or 2133 or even higher) but you're unlikely to notice any significant difference in system performance....certainly not enough to be worth paying significantly more. OTOH, DDR3-2133 costs $73 for an 8GB kit, only $15 more than DDR3-1333 so might be worth considering if your apps process large amounts of data in RAM (gimp, maybe) if your m/b takes DDR2 RAM then it' still possible that upgrading RAM alone may be enough, but it's a bigger gamble....if it doesn't work, you'll just be throwing the money away unless you have a use for a 2nd computer after you buy a new one. DDR2 is pretty much obsolete, and more expensive than newer DDR3 - 4GB of DDR2 costs $56. 2. VIDEO CARD you don't mention what your current graphics card is, or what driver it's using - or whether it has hardware video decoding features that your video software (Totem aka Movie Player in gnome?) makes use of. You may find that simply upgrading the video card along with the RAM will improve movie playing performance. And, again, it's worth trying because a new card can be re-used if you end up having to replace the computer. spending around $150 for a mid-range card should be enough for now and for the next few years - you pay a massive premium for higher end cards and IMO they don't offer enough performance gain to be worth the extra money (unless you're a gamer with a ridiculously large budget) for around that price, you can can get an nvidia 650Ti ($155), Radeon 7770 ($135) or Radeon 7790 ($165) both AMD Radeon and nvidia GPUs have open source drivers (built into the kernel), but they lag behind the closed-source drivers (both available as dkms packages for debian) for both performance and features. (personally, i still mostly use nvidia cards with the closed source nvidia drivers. they just work and have given me no hassles over the years. i've been waiting for years for the open source drivers to be good enough. i do have some machines using the open radeon or nouveau drivers, and for some purposes, they are good enough. mostly, though, i still prefer the closed nvidia driver) Alternatively, if you do go for a new system with an i7 CPU, you may find that the built-in Intel GPU is good enough - they're low-end if you're a gamer, but more than adequate for video playing, and they have good open source drivers. BTW, i can't remember whether squeeze is still Gnome 2 or if Gnome 3 is available....wheezy, however has gnome 3. If you run gnome 3, you *will* need a good graphics card, it has so much irritating animation and other pointless bling that it runs like a dog without a good modern GPU. (and if gnome3 pisses you off, you can always switch to xfce...you can still run gnome apps but without the brain-damaged tablet-on-a-desktop interface. xfce is quite similar to how gnome 2 was before the gnome3 abomination made gnome unusable :)
I'm thinking of getting something along the lines of:
i7 3.4 GHz
ok, you probably mean the i7-3770 at around $309. a great CPU, built in Intel HD4000 graphics, and only draws a maximum 77 Watts. LGA1155 socket, so a large range of motherboards to choose from. btw, it's worth spending money on a good quality motherboard - if the m/b is shit, the entire system will be shit. whenever i upgrade a system, I spend at least ten times as much effort comparing the differences between motherboards than i do for all other components combined. if you don't care about the built-in graphics, an AMD FX-8350 may be a good option. Windows gamers gave the AMD bulldozer (1st generation) and piledriver (2nd gen) CPUs bad reviews, but they've always been great for multi-tasking and multi-threaded performance on linux, especially the 2nd gen piledriver chips (which fixed many of the flaws in the original bulldozer series). The FX-8350 @ $209 is $100 cheaper than the i7-3770, and a decent AM3 motherboard is also about $50 to $100 cheaper (e.g. Sabertooth Z77 for i7 @ $244 vs Sabertooth 990FX for AMD CPUs at $197) the price difference is about enough to pay for a mid-range graphics card. one of the really nice things about AMD CPUs is that AMD actually care about upgradability - you can pretty much assume that if you get a current generation motherboard (currently "AM3") then it will be compatible with at least the next generation of CPUs and probably the generation after that. e.g. an AMD AM3 motherboard can take any AM3 CPU from the $39 Sempron LE-145 to the $209 FX-8350. They can also take the discontinued Phenom II CPUs (not available new anymore, and probably not worth hunting for 2nd hand) AMD have already stated that they'll be releasing the 3rd generation "Steamroller" CPUs for the AM3 socket next year. Intel, by contrast, seem perversely and deliberately confusing & anti-upgrade with motherboard chipsets and CPU sockets....you can safely assume that any future upgrade will require upgrading almost everything - motherboard and CPU and probably RAM.
4GB DDR3
8GB is better, and only costs another $30. RAM is cheap, and the more you have, the better - avoid swapping and cache disk access.
2 TB HD
as Russell suggested, a RAID-1 array is better/safer. but if you don't need the extra terabyte of storage, 2x2TB drives is a lot cheaper than the 2x3TB drives he suggested.
I'll probably stick with debian but I might try out ubuntu and linux mint distros.
if you're happy with debian then switching to ubuntu will probably annoy you (recent ubuntu releases even annoy many ubuntu users). mint might be worth a try, or perhaps aptosid (aka sidux - based on debian sid). craig -- craig sanders <cas@taz.net.au>

On Mon, Apr 22, 2013 at 01:22:39PM +1000, Craig Sanders wrote:
2 TB HD
as Russell suggested, a RAID-1 array is better/safer. but if you don't need the extra terabyte of storage, 2x2TB drives is a lot cheaper than the 2x3TB drives he suggested.
i'll also agree with Russell's suggestion about using an SSD for the operating system. it'll boot faster, and both loading apps and apt-get upgrades will be faster. also, swapping to SSD is faster than swapping to mechanical disks - the ideal is to avoid swapping entirely, but sometimes it's unavoidable (or even desirable - why waste actual RAM on code that's not being executed when it can be swapped out). i've taken to using zram as my primary swap device in recent months - it's essentially a compressed ramdisk block device, and it's a lot faster than swapping to SSD or mechanical disk. I also have a lower-priority swap partition on SSD. like tmpfs, zram doesn't actually use any RAM unless there's data swapped to it. so you can allocate, e.g., 4GB out of 8GB RAM to zram without worrying about wasting memory. i can't remember what kernel version first got zram but it's definitely in 3.4 and later kernels. i'm pretty sure it's in 3.2 kernels too. craig -- craig sanders <cas@taz.net.au>

On 22/04/13 13:58, Craig Sanders wrote:
On Mon, Apr 22, 2013 at 01:22:39PM +1000, Craig Sanders wrote:
i've taken to using zram as my primary swap device in recent months - it's essentially a compressed ramdisk block device, and it's a lot faster than swapping to SSD or mechanical disk. I also have a lower-priority swap partition on SSD.
like tmpfs, zram doesn't actually use any RAM unless there's data swapped to it. so you can allocate, e.g., 4GB out of 8GB RAM to zram without worrying about wasting memory. craig hi
suggest changing the priority of the memory system to use a swap space with this commend in your boot sequence /sbin/sysctl vm.swappiness=05 Steve

Craig Sanders wrote:
i've taken to using zram as my primary swap device in recent months [...] like tmpfs, zram doesn't actually use any RAM unless there's data swapped to it. so you can allocate, e.g., 4GB out of 8GB RAM to zram without worrying about wasting memory.
I've been ambivalent enough about zram to not bother with it yet[0]. I take it you're capping it at 50% of your 8GB? What's your typical RAM breakdown look like (free -m output)? I assume you'd have a non-negligible amount of zlib CPU churn when paging out to zram -- is that noticable? I suppose it is, but only when you have pegged BOTH CPU and RAM. [0] I had enough bad swap thrash experiences under 2.6 that I've run without swap ever since, relying on the OOM killer if the GUI browser decides to be extra stupid. Incidentally, I've NEVER run a personal computer with more than 1GB RAM (of which the onboard GPU gets about a quarter), so it IS possible -- just not for WIMPs :-) (My racked kit of course, get gobs of RAM -- to cache filesystem metadata, if nothing else.) total used free shared buffers cached Mem: 728 576 152 0 115 353 -/+ buffers/cache: 106 622 Swap: 0 0 0

On Mon, Apr 22, 2013 at 06:10:17PM +1000, Trent W. Buck wrote:
I've been ambivalent enough about zram to not bother with it yet[0]. I take it you're capping it at 50% of your 8GB?
25% of my 16GB (ram is cheap, and swapping to disk or even ssd is slow). if swap usage ever came close to 4GB i'd consider upping zram to 50%.
What's your typical RAM breakdown look like (free -m output)?
depends on what i've been running recently. at the moment, i've got no swap used (9 days uptime since last reboot). $ free -m total used free shared buffers cached Mem: 16047 15581 466 0 0 1831 -/+ buffers/cache: 13749 2298 Swap: 12287 0 12287 $ cat /proc/swaps Filename Type Size Used Priority /dev/sda2 partition 4194300 0 0 /dev/sdb2 partition 4194300 0 0 /dev/zram0 partition 4194300 0 5 sda and sdb are both OCZ Vector 240GB SSDs, with partitions for raid-1 /, raid-1 /boot, swap space, as well as partitions for ZIL and L2ARC for my ZFS disks. with 16GB RAM, i could probably get away with no swap disk (esp. with zram), but i'd rather have it and not need it, than vice-versa...even a small amount of swap space can mean the difference between a functioning system and semi-random process termination or even system freeze (as has happened to me recently on some mythtv transcodes because mythtranscode is buggy and some DVB recordings confuse the hell out of it).
I assume you'd have a non-negligible amount of zlib CPU churn when paging out to zram -- is that noticable? I suppose it is, but only when you have pegged BOTH CPU and RAM.
can't say i've noticed it. the system certainly feels a lot more responsive when swapping to zram compared to how it used to feel swapping to SSD. CPU is a Phenom II x6 1090T, which spends most of its time idling down at 800Mhz due to the on-demand governor, so there's plenty of CPU power available.
[0] I had enough bad swap thrash experiences under 2.6 that I've run without swap ever since, relying on the OOM killer if the GUI browser decides to be extra stupid.
the trouble with relying on the OOM killer is that what it kills is semi-random...e.g. the bloated ram hog might be iceweasel or chromium, but it kills postfix or sshd or something else important.
Incidentally, I've NEVER run a personal computer with more than 1GB RAM (of which the onboard GPU gets about a quarter), so it IS possible -- just not for WIMPs :-)
yep. lots of things are possible. you can even eat a bowl of corn-flakes with miniature tweezers if you really want to. sometimes, though, you just can't help thinking - "fuck it, i'll lash out and buy a spoon, they're really cheap these days". :-) IMO more RAM is still the cheapest, best upgrade you can get for a system..and has been for as long as i can remember. 10 years or so ago, i would have been recommending getting at least 256 or 512MB. these days, 8GB or even 16GB costs about as much as 256/512MB did back then. (note the remarkably imprecise time there "10 or so years ago". could have been 15 years for that size ram, i really can't remember. and don't want to :) craig -- craig sanders <cas@taz.net.au>

Craig Sanders wrote:
the trouble with relying on the OOM killer is that what it kills is semi-random...e.g. the bloated ram hog might be iceweasel or chromium, but it kills postfix or sshd or something else important.
Granted. You can tweak OOM to make it avoid / never kill certain processes -- Ubuntu does this for sshd by default. But IME the OOM killer gets it right most of the time, whereas in the same pathological cases, with swap, the system became unusuable enough that all I could do was hold down the power button -- obviously much worse. YMMV &c. To be fair, that was a long time ago, in the 2.6 years, and probably on a celeron or sempron and 7200 IDEs.

Trent W. Buck <trentbuck@gmail.com> wrote:
You can tweak OOM to make it avoid / never kill certain processes -- Ubuntu does this for sshd by default. But IME the OOM killer gets it right most of the time, whereas in the same pathological cases, with swap, the system became unusuable enough that all I could do was hold down the power button -- obviously much worse. YMMV &c.
To be fair, that was a long time ago, in the 2.6 years, and probably on a celeron or sempron and 7200 IDEs.
And it probably also antedates the improvements made to page reclaim in the kernel. There have been many VM changes since then, as documented at LWN. Of course, that won't help if the system truly is running out of memory.

On Tue, 23 Apr 2013, "Trent W. Buck" <trentbuck@gmail.com> wrote:
You can tweak OOM to make it avoid / never kill certain processes -- Ubuntu does this for sshd by default. But IME the OOM killer gets it right most of the time, whereas in the same pathological cases, with swap, the system became unusuable enough that all I could do was hold down the power button -- obviously much worse. YMMV &c.
http://doc.coker.com.au/projects/memlockd/ I wrote memlockd to alleviate some of those swap problems. The idea is that if you lock the files which are critical to system recovery (libc, /etc/passwd, sshd, kill, ps, and related things) into RAM then you have a better chance of recovering from such a problem before hitting a timeout (either system login timeout or human patience timeout). http://etbe.coker.com.au/2007/09/28/swap-space/ One of my more popular blog posts concerns the history of swap space and the way that the most common advice about swap size is bad. http://etbe.coker.com.au/2012/12/31/modern-swap-use/ In a more recent post I compared developments in RAM size vs developments in hard drive speed which makes it seem that swap is 400* less effective now than it was in 1988. I didn't consider the case of SSD which of course changes things. A single SSD would make swap maybe 5* less effective than it was in 1988 and a system with 5*SSD for swap (which isn't at all unreasonable given that an Intel SSD costs $100 vs $1000+ for a hard disk in 1988) would make swap as effective now as it was in 1988. -- My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/
participants (7)
-
Craig Sanders
-
David Zuccaro
-
Jason White
-
John Mann
-
Russell Coker
-
Steve Roylance
-
Trent W. Buck