Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: 280Z28 on February 03, 2006, 10:24:20 am

Title: Wanted to buy a new laptop, instead I made mine faster for cheap, here's how.
Post by: 280Z28 on February 03, 2006, 10:24:20 am
I've been having lots of trouble with my laptop being slow. I use it at work all day and it's been hindering my performance there. :( I was going to buy a nice new Athlon 64 FX60 with a 17" monitor (http://www.xtremenotebooks.com/index.php?section=configurator&regular_model_id=1054&model_id=1057&include_type=14_inch&category=), but I decided to see what I could do to mine for cheaper. It's a P4 3.0 with HT, 800MHZ FSB, dual DDR, 7200rpm 60gb hard drive, the works. It's a couple years old, but it should be fast enough for me to work with.

I noticed I was constantly running out of memory. 512mb is not enough for development. AT ALL. So I started by ordering 2gb Corsair PC3200 DDR for it. That's my only expense in what I did. $250 is so much cheaper than a $3500 laptop!

I defragmented my hard drive. I didn't realize my scheduled task for that was disabled (now fixed). I had 120,000+ excess fragments!

Delete unused files. I was down to under 1gb free space. :( With the help of Treesize (freeware version) (http://www.jam-software.com/freeware/index.shtml) I was able to rapidly free up 10GB extra drive space. I highly recommend this easy to use piece of freeware.

In one sitting I have a whole new machine (functionality wise).

Lesson to be learned: (fairly) simple maintainance of your computer pays off in the long run, and keeps you from having to spend money on tons of new hardware just to keep things usable. :cool:
Title: Re: Wanted to buy a new laptop, instead I made mine faster for cheap, here's how
Post by: 280Z28 on February 03, 2006, 10:34:45 am
BTW, I'm not new to computers at all, I've just been lazy. :o
Title: Re: Wanted to buy a new laptop, instead I made mine faster for cheap, here's how.
Post by: Michael on February 03, 2006, 01:04:20 pm
Lesson to be learned: (fairly) simple maintainance of your computer pays off in the long run, and keeps you from having to spend money on tons of new hardware just to keep things usable. :cool:

I normally take care of my notebook, but this does not prevent it to stop working :). Anyway, you are right. A bit of maintenance, some additional memory and may be a larger hard-disk can in most of the cases increase the performance of your "old" notebook. Regarding the hard-disk is the thing somehow funny. I have an hard-disk of GB, but when the free space is under 15-20% then the notebook works quite bad.

Michael
Title: Re: Wanted to buy a new laptop, instead I made mine faster for cheap, here's how.
Post by: TDragon on February 03, 2006, 03:15:52 pm
I noticed I was constantly running out of memory. 512mb is not enough for development. AT ALL.
This, my friend, is indeed the primary factor in computer performance. Consider the following scenario.

The computer I use at work came advertised as a workhorse, with a screamin' P4 2.8Ghz processor. My home PC, on the other hand, is putting along with a budget Sempron 2600+, running at 1.6Ghz. One PC takes 5 minutes to compile a clean install of Code::Blocks' SVN sources, the other takes 20.

Oh, did you think my work PC took 5 minutes? Think again. The P4 uses up all of its 512Mb of RAM in a matter of milliseconds, and spends the next 19+ minutes chugging away in virtual memory on the hard drive. Little Sempron, on the other hand, has another 256Mb stick of DDR to work with, and it sails through never touching the virtual memory.

If your computer has to use Windows' virtual memory at all during the course of the day, buying more RAM is the smartest upgrade you could do.
Title: Re: Wanted to buy a new laptop, instead I made mine faster for cheap, here's how.
Post by: Michael on February 03, 2006, 03:47:59 pm
If your computer has to use Windows' virtual memory at all during the course of the day, buying more RAM is the smartest upgrade you could do.

I fully agree :). I have remarked this when I have added 512 MB to the notebook I used at work (for a total of 1 GB). Compared to my private notebook (512 MB - 64 MB shared video ram), the difference in compiling C::B is relatively huge (around 12-15 minutes). The processor speed is approximately the same for both notebooks.

Michael
Title: Re: Wanted to buy a new laptop, instead I made mine faster for cheap, here's how
Post by: rickg22 on February 03, 2006, 07:56:15 pm
I always wanted a utility like treesize. I had programmed one in pascal, in the good ol' DOS days, but it didn't work well with NTFS partitions. Thanks for the tip! :)

Oh, btw, i really recommend people to make various partitions in their drive - leave 10 or 15 gigs for C: where windows resides. Then tell windows (don't ask me how, tweaking the registry works) that the programfiles folder is in (your other partition)\program files. I also have a partition for the multimedia files (music, videos, etc). This way you can just delete your Red vs. Blue videos if you're running out of space :)

As a general rule, storing your data in a separate partition than your program files, does wonders. You know where is what, and the fragmentation of your HD is always kept to a minimum.
Title: Re: Wanted to buy a new laptop, instead I made mine faster for cheap, here's how
Post by: artoj on February 03, 2006, 08:16:49 pm
Regarding the hard-disk is the thing somehow funny. I have an hard-disk of GB, but when the free space is under 15-20% then the notebook works quite bad.

This is a problem in almost all current file systems. When the disk gets about 80 % full, the performance drops rapidly.

This way you can just delete your Red vs. Blue videos if you're running out of space :)

I didn't know there was RvB fans here too! It must be one of the funniest things in the internet :D.

Quote
Simmons: Do you ever wonder why we're here?
Grif: One of life's great mysteries isn't it? Why are we here? I mean, are we the product of some cosmic coincidence? Or is there really a God, watching everything. You know, with a plan for us and stuff. I don't know man, but it keeps me up at night.
Simmons: What? I mean why are we out here, in this canyon.
Grif: Uh... Oh... Yeah...
Simmons: What's all this stuff about God?
Grif: Uh... um... Nothing.
Title: Re: Wanted to buy a new laptop, instead I made mine faster for cheap, here's how
Post by: takeshimiya on February 03, 2006, 09:02:54 pm
That's true, I've been using TreeSize for a year, it's a must.

A simmilar program (but opensource) program for linux is Baobab (if you preffer GTK apps) or KDirStat (if you preffer QT apps).

Hopefully, some day someone will make a wxTreeSize... :P
Title: Re: Wanted to buy a new laptop, instead I made mine faster for cheap, here's how
Post by: 280Z28 on February 04, 2006, 12:14:10 am
That's true, I've been using TreeSize for a year, it's a must.

A simmilar program (but opensource) program for linux is Baobab (if you preffer GTK apps) or KDirStat (if you preffer QT apps).

Hopefully, some day someone will make a wxTreeSize... :P

When you think about it, I bet it's really really easy. :p
Title: Re: Wanted to buy a new laptop, instead I made mine faster for cheap, here's how
Post by: takeshimiya on February 04, 2006, 01:15:02 am
That's true, I've been using TreeSize for a year, it's a must.

A simmilar program (but opensource) program for linux is Baobab (if you preffer GTK apps) or KDirStat (if you preffer QT apps).

Hopefully, some day someone will make a wxTreeSize... :P

When you think about it, I bet it's really really easy. :p

The problem is designing a good interface for it, as always.
Title: Re: Wanted to buy a new laptop, instead I made mine faster for cheap, here's how
Post by: MortenMacFly on February 15, 2006, 02:32:16 pm
I think the most cool software to do such things is "SequoiaView" which can be found here:
http://www.win.tue.nl/sequoiaview/
It really helps you to discover where you waste your HDD space in a pretty cool way. If you use the catalog / file type color scheme feature you can optimise it for your typical file type usage.
Morten.
Edit: added missing words "color scheme"... ;-)
Title: Re: Wanted to buy a new laptop, instead I made mine faster for cheap, here's how
Post by: Michael on February 15, 2006, 03:01:08 pm
I think the most cool software to do such things is "SequoiaView" which can be found here:
http://www.win.tue.nl/sequoiaview/
It really helps you to discover where you waste your HDD space in a pretty cool way. If you use the catalog / file type feature you can optimise it for your typical file type usage.
Morten.

Hello,

I have just downloaded and give it a try. Well, I must admit that it is really cool :D.

Thanks.

Best wishes,
Michael
Title: Re: Wanted to buy a new laptop, instead I made mine faster for cheap, here's how
Post by: Revvy on February 16, 2006, 01:47:06 am
I use windirstat from sourceforge, which appears to do the same as this tool.
Title: Re: Wanted to buy a new laptop, instead I made mine faster for cheap, here's how
Post by: MortenMacFly on February 16, 2006, 11:17:03 am
I use windirstat from sourceforge, which appears to do the same as this tool.
...and is much better (further developed) in addition. Thanks for the hint! :P