Re: More memory = slower system???? WTF?



On Friday 27 January 2006 02:31, Captain Dondo stood up and spoke the
following words to the masses in /comp.os.linux.misc...:/

> I just upgraded my system from 1 GB RAM to 4 GB RAM. You would think
> this would speed it up....

That largely depends on the hardware and on the kernel used, actually.

> Nope. It is noticeably slower than before....

That is possible, yes...

> I mean really slower. A compile that took 30 minutes now takes an
> hour....
>
> Click on a xterm and it may take 30 seconds for a response.
>
> Try to highlight text in an xterm and it may take 5 or 20 seconds to
> respond....
>
> It feels like it's made disk access much slower, but there is no disk
> access - everything is in RAM and there is very little disk
> activity...
>
> No errors or messages anywhere. No instability that I've noticed.
> System runs cooler doing compiles, which would seem to say CPUs are
> less taxed but gkrellm shows CPU usage at 99%, same as before.
>
> The system is a 3.2GHz Intel, hyperthreaded, on an Asus mobo...
>
> So... Any ideas? Suggestions? /proc tweaks?

First of all, Asus is not too supportive in respect to GNU/Linux.
Secondly, having hyperthreading enabled may help increase speed up to a
30% gain, provided that your kernel supports SMP - and if the machine
physically *is* an SMP - SMT as well.

Thirdly, the amount of cache matters a great deal in respect to the
installed physical memory. If your physical memory increases that much
in capacity, the hit-to-miss ratio of the cache drops significantly.

> System is running 2.6.8 kernel; tomorrow I will compile a more recent
> kernel and see if that will help...

If you really _do_ mean 2.6.8 and not 2.6.8.1, then I would strongly
suggest using a more recent kernel. 2.6.8.1 was released only *one*
*day* after 2.6.8 was, and with good reason: there are some serious
flaws in 2.6.8. I experienced this myself - I actually had a kernel
crash with that one.

> But I am open to suggestions at this point....

I'm afraid that there's not all that much you can do. Check the
following:
- Is hyperthreading enabled?
- Are you compiling with /-j3/ - the amount of CPU's plus one?
- Is the installed memory type of the same latency and frequency as the
original memory?
- How large is your L2 cache, and do you have an L3? Are they enabled?
- What compiler are you using, and what compiler was used to build the
system? (/gcc/ 4.0.x appears to generate slower code than 3.5.)
- Does your kernel match the /glibc/ that your system was compiled
against? (e.g. Are you using a 2.6 kernel in a system that was compiled
for a 2.4 kernel?)
- Does your kernel _support_ multiprocessing and multithreading - i.e.
SMP and SMT? - and does it "see" all your memory? (You need a
HighMem-enabled kernel in order to be able to access 4 GB.)

That's about all I can bring up... The rest is up to you, I'm afraid.
;-)

--
With kind regards,

*Aragorn*
(Registered GNU/Linux user #223157)
.



Relevant Pages

  • Re: OS-question
    ... MacOS X supports>4GB of RAM on IA32 and so does FreeBSD but I don't know ... Linux can use up to 64 Gigabytes of physical memory on x86 systems. ... If you are compiling a kernel which will never run on a machine with ...
    (comp.arch)
  • Re: 2.6.0-test9 - poor swap performance on low end machines
    ... > the detriment of other tasks that are on the runqueue and still need ram. ... The test compile was not of the kernel but of a file in a C++ program ... Being able to choose a manual setting for swappiness is not "futile". ...
    (Linux-Kernel)
  • Re: Debian Question: linux-image-2.6...-k7 vs. linux-image-2.6...-amd64
    ... I were to install and use AMD64 Kernel. ... programs can get more virtual address space, ... not making my OS 100% 64-bit because I heard it is a hassle to compile both 32-bit and 64-bit programs which I do not have time for. ... and installing the 64-bit system in the first place. ...
    (comp.os.linux.hardware)
  • Re: Distributions
    ... | general there are a lot of packages for people to use. ... kernel, have to run on a multitude of different systems, they tend to be ... and slower than if you compile those packages, ... can have that stability with virtually any distro. ...
    (Debian-User)
  • Re: Distributions
    ... Ubuntu is based on Debian, ... | general there are a lot of packages for people to use. ... kernel, have to run on a multitude of different systems, they tend to be larger ... and slower than if you compile those packages, ...
    (Debian-User)