Linux w\ 4GB RAM and S939 A64 ?

C-Otto

Weaksauce
Joined
Oct 26, 2004
Messages
95
Hello!

I am expecting my new A64 with 2GB RAM (Infineon DDR400) soon and want to upgrade to 4GB sometimes. Before that, following problem has to be solved:

There are rumours that memory "after" the first 3.5GB is used for PCI/AGP-Address-Space, so you can only use about 3.5GB RAM with current S939-Boards.
Is that true? Is there a way to use 4GB RAM?
What has to be set up in the kernel (I use Linux)?
Is there a difference between the boards (I'll get a Abit AV8)?

Thanks for every answer and link to further information!
 
I'm not sure on this, but I seem to recall this having to do with the OS you use (IIRC Win 2k/XP Pro 32-bit only support 2GB max and you'll have to go to the Win2k/2k3 server for more memory support; not sure about Linux). The other would be about it running in 32-bit mode rather than 64-bit. IIRC, 32-bit Processor setups top out at 4GB w/o hardware/software extentions, and even then, there's that 3.5GB problem. I forget the reason, tho, but I do believe it was partially to do with the OS and the limitation of 32-bit processors.
 
All modern operating systems use paged/segmented memory. It's a trivila task for a OS to figure out all of the memory mapped regions and simply exclude them from it's page/segment allocation scheme. It's not a huge deal. you might be able to use ALL of it, but you could use MOST of it. You may want to look into using winxp64bit or maybe a linux flavor with 64bit.

I have to ask, is 2GB not enough? What are you running? I could understand if you were doing some sort of crazy-go-nuts science stuff or even some top notch rendering/video editing. Some of these things would probably be better addressed with a clustered/distributed environment. On the flip side, if this is a server and I can see the benefits. If you're trying to get more fps out of Doom3/HL2/Farcry, this probably isn't the best approach.
 
The problem is that 32bit procs have 32b (4GB) worth of memory adresses available. This includes everything that's treated like memory -

* RAM
* Swap
* Devices mapped into memory
* memory mapped files

and whatnot. There are some hacks (that need support in hardware) that can be done (but I'm pretty sure you need to buy hardware with support for it - mad-crazy-go-nuts server gear) to get around this. The short answer is :

If you need this kind of memory, you should be running a 64b OS; if you need to run 32b apps, you probably don't need this kind of memory. Don't buy another 2GB of memory - save the money & spend it on beer+hookers or coke+strippers or whatever else turns your crank.
 
Of course I am running 64 bit, why shouldn't I?
I will certainly think about not spending the money, although an Ipod and/or a Powerbook might be my next big buy.
Please post following answers to the thread mentioned above.
 
As I already stated, I already use Linux (and have been happy with it for quite a time now) and will not switch to Windows. I know Linux is able to handle a lot of memory, but I don't know about all possible problems. The main concern is the mainboard, why this thread was started here. I guess I will try it and return the RAM if it does not work (possible within 14 days without reason if you order it).
I guess I don't need 2 or 4 GB RAM, but more RAM always means more speed (mostly because of cache). I had a Duron 800 (later 1300) with (about) 1 GB RAM for the last years and now it's time to spend some money to buy something serious. I like spending money for PC components and RAM is nothing to be ashamed of :) Of course I understand your questions, but having 4 GB RAM is quite cool I think :) Additionally, I use my workstation for several server tasks (I have 100mbit to the university and Internet), but nothing of that is RAM critical (although more RAM means more cache means more speed).

Thanks for your answers, but a definitive answer would help even more.
 
More cache for what? Let me guess hd access? You'd be better of getting either a scsi setup or a raid or something with memory for onboard cache from the hd, etc. because unless u run the same app atleast twice within a certain amount of time, u won't see any benefit from "cache"!
 
As you might not know, linux programs use many different libraries (like DLLs for windows). So running several different programs (I do that!) causes many many different libraries (so normal files) to be loaded. Having a lot of RAM certainly helps here. Additionally I serve some files on the university P2P, where cache hits occur quite frequently - so my HD has less work to do.
I am thinking of upgrading my disk system, but that's another story.
 
http://www.hardforum.com/showthread.php?t=830766

Ice Czar said:
there are extremely few aps actually coded to employ 64bit
and most that are simply take advantage of the larger memory addressability available
so unless your friend has more than 2GB of memory go with 32bit as everyone else has pointed out.

(64bit allows a single ap to employ more than 2GB for a thread\process, additionally its allows for more RAM than 4GB on the board, for instance my board will support 16GB of RAM)

http://www.lostcircuits.com/cpu/panorama/
http://www.anandtech.com/cpu/showdoc.html?i=1815
https://renderman.pixar.com/products/news/rps11.5.3_release.html

however you might consider throwing a dual boot to a Linux 64bit on there
(Suse\Novell 9.1 Pro) and Cinelerra

just a quick cut and paste and back to work ;)

+

Opteron Memory Guide
NUMA FAQ (Non-Uniform Memory Access)
Error Correcting Memory - Part I
Error Correcting Memory - Part II: Myths and Realities
Virtual Memory In XP
Memory Timings @ Lost Circuits
Corsair Memory Basics Interactive Macromedia Breeze presentation
 
If I understand this right, it doesn't seem like you can give a good reason, other than the "coolness factor" for having 4gb. Only reason I would want to go over 1gb, would be if I did VMWare stuff. My games are perfectly happy with 1gb.

Throw out some everyday apps that you run. I am 99% sure you don't need 4gb, or even 2gb.
 
Yea, regardless of whether you're using Windows or Linux, these is still some type of Swap/pagefile being used. Even with 2gb ram, you might bottleneck because of your slow HD access. I don't feel like doing the calculations, but I'm pretty certain that with standard ATA (maybe even SATA), 2gb would bottleneck. On the flipside, I kind of compare the "more more = better" debate to video cards: I used to havea Fx5600 that boasted 256mb ram, but the fx5600 of the same card except with 128mb blew it out of the water. Why? because the ram on the 128 was better than on the 256, so the more crappy ram ended up bottlenecking the card. It's a stretch, but ultimately you'll see that after 2gb, you do'nt see anything happening unless you're testing the integrity of molecules or rendering astronomical 3d frames.
 
I don't play (3D-)games on my computer, so that does not matter. Here are some things I already do and of course will continue to do:

- IRC/MP3/IM/Surfing
- Editing and reencoding Videos (DV to XviD)
- Webserver, FTP-Server, Gameserver (http://waaaghtv.gamesports.de), some "large" databases, smbd, printserver for 300 people (with accounting)
- a lot of apps that help me survive (sendmail, spamassassin, esd, cron, xrootconsole, ...)
- valknut (direct connect P2P with 100mbit and some GB traffic per day)
- sometimes VMWare to test some Windows $hit (mainly to give support to other users)

My harddisk is kind of slow, because I only have two 7200rpm drives, but I am quite happy with that. My CPU was way to slow, so I updated it and I bought "the right" RAM for it. It's quite dumb to buy 2x512 MB when you want to upgrade to more than 2 GB sometimes. Another reason is I already had 1 GB in my (very) old computer and think a new computer has to have more RAM.

As a conclusion from my side:
2 GB RAM might be enough for all of these apps combined. Another n GB would surely speed up the whole process because of the caching. A nice RAID solution surely would, too. Because I am the guy who wants both, I have to know if 4 GB are a problem. I already know RAID is not.
 
I don't quite get your answer.
I already use Linux and Cinelerra and will not change anything with that. Windows (whatever version) is NO alternative. My distribution of choise (either Debian Desktop or Gentoo) offer 64bit packages or self compiling. My board only provides 4 * 1 GB as a maximum and my question is, if there is a problem when I use these 4 GB RAM. Switching to 32bit does not help, because the 4 GB question remains (and 4 GB is still possible with 32bit). I'll have a look at your links, thanks for that.
 
You never said anything about running in 64bit mode or Linux or what you'd actually be using it for.

Unless there's some design flaw in the s939 chipsets, the A64 is perfectly capable of working with more than 3.5GB of RAM in 64 bit mode. I haven't heard of any such design limitations, but I can't be 100% sure that they're not - there've been plenty of boards in the past that wouldn't properly support high memory configurations.

64bit Linux is pretty much just as stable as 32bit is but don't plan on using any 32bit binaries - it's not worth the trouble 'cuz nobody has a good biarch distribution out. 32bit binaries include things like the flash plugin.

...and you probably don't really want to run all that server stuff on your desktop. It's one thing to have a HTTPer & FTPer up so you can share stuff with your friends, but the moment that other people actually rely on the the server, for reasons of security, performance & stability, you shouldn't be using it as a desktop. You say your old Duron's already running this stuff? Leave it there.
 
I actually said "I use Linux" in my first post.
Is there really a problem when running 32bit binaries like flash? I think not, because both the CPU and the OS are capable of 32bit.
I don't get why you are concerned about security, stability and performance. My A64 is a bit faster than my Duron (I think) and I do not reboot my workstation more than a few times in a year - mainly to put new hardware in it. All the servers I mentioned are not high traffic, so a downtime from about 1 day (worst case) is absolutely OK. Concerning security, I am the only user sitting in front of the attached monitor and all other users (I know all of them) with accounts have no known possibilty to access my data. I am thinking of leaving my Duron system as a second server, but I am not sure about this.
 
C-Otto said:
I don't quite get your answer.
I already use Linux and Cinelerra and will not change anything with that. Windows (whatever version) is NO alternative. My distribution of choise (either Debian Desktop or Gentoo) offer 64bit packages or self compiling. My board only provides 4 * 1 GB as a maximum and my question is, if there is a problem when I use these 4 GB RAM. Switching to 32bit does not help, because the 4 GB question remains (and 4 GB is still possible with 32bit). I'll have a look at your links, thanks for that.

Merged, Title Edited and Moved to the right forum

since I actually run 4GB of Memory I tossed out a few links before I scuttled out the door based on what I saw in the first thread, it is however unreasonable for you to expect members to cobble together the pertainent information spread accross 2 different threads
especially when you didnt supply all the pertainent info upfront in either thread

if your employing a 64 bit OS (say Suse 9.1 Pro )
and the AV8 you wont have the 3.5 GB limitation on memory, but unless an ap is specifically coded to employ more than 2GB of memory you will be limited to that
however it looks more like multitasking as opposed to heavy memory access is your thing
I dont really see the need to use more than 2GB, with the possible exception of encoding or video editing + multitasking, but the additional multitasking wouldnt eat an additional 2GB

as mentioned, your likely to hit a threshold where multiprocessing will hold an advantage over going past 2GB, might try reading those links

http://www.anandtech.com/cpu/showdoc.html?i=1815
AMD's 64-bit strategy - x86-64
The benefits of a 64-bit microprocessor architecture are mainly memory related; if you take two identical microprocessors, make one 64-bit and one 32-bit, the advantage of the 64-bit CPU is that it can address much more memory than the 32-bit CPU (2^64 vs. 2^32). For those that were hitting the limits of 32-bit memory addressability (4GB), Intel's only high performance solution was to transition to Itanium, but if all you're looking for is more than 4GB of memory and solid x86 performance, then you're SOL from Intel's perspective.

AMD's 64-bit strategy is significantly different; AMD has always been focused on the current customer needs, not on the vision of the computing future 5 - 10 years from now and this is reflected in their 64-bit strategy. The strategy is simple and has been done before in the past; stick with a high-performing x86 core, and simply extend the ISA to support 64-bit memory addressability - the end result is what AMD likes to call x86-64.

In legacy mode, the K8 will run all native 16 or 32-bit x86 applications, the processor basically acts just as a K7 would.

Things get interesting in "long" mode where a 64-bit x86-64 compliant OS is required; in this mode, the K8 can either operate in full 64-bit mode or in compatibility mode. Full 64-bit mode allows for all of the advantages of a 64-bit architecture to be realized, including 64-bit memory addressability. One of the major features of the K8 architecture is the fact that the number of general purpose registers is doubled when in x86-64 mode, and thus this feature is also taken advantage of in full 64-bit mode.

Compatibility mode gives you none of the advantages of a 64-bit architecture on the application level, as it is designed for running 32-bit apps on a 64-bit OS (hence the name compatibility); The extra registers and 64-bit register extensions are ignored in this mode. Compatibility mode is important because of the 2GB process size limitation under Windows OSes. Although 32-bit Windows offers support for a maximum of 4GB of memory, each process can only use a maximum of 2GB of memory - the remaining 2GB is reserved for the OS. By running a 64-bit version of Windows (when released) and a 32-bit application, compatibility mode allows for each 32-bit process to have up to a full 4GB of memory, with the OS using anything above that marker.

Finally we have 64-bit long mode, where there is more than meets the eye. In addition to > 4GB memory addressability, in 64-bit long mode, applications have access to twice as many named general purpose registers. Remember that registers are basically high speed memory locations on the microprocessor where temporary values are stored. For example, if you were to compute the sum of two numbers, both of those numbers as well as the final result would be stored in these registers.

There is an immediate advantage if your running over 4GB of RAM and a 64bit Operating System (Linux or Windows 64bit Evaluation and while not that many applications are coded to employ the long mode, animation, video encoding ect will be among the first
but then youd need to actually see if any of the aps are coded in long mode, or simply take advantage of the greater memory addressability like this example
> http://www.lostcircuits.com/cpu/panorama/
also linked above

the AV8 employs a HyperTransport tunnel
but its of limited use with only a single processor, you basically have a dual channel settup, not Quad or more, but review the Opteron Memory Guide never the less and the NUMA link
 
C-Otto said:
I don't play (3D-)games on my computer, so that does not matter. Here are some things I already do and of course will continue to do:

- IRC/MP3/IM/Surfing
- Editing and reencoding Videos (DV to XviD)
- Webserver, FTP-Server, Gameserver (http://waaaghtv.gamesports.de), some "large" databases, smbd, printserver for 300 people (with accounting)
- a lot of apps that help me survive (sendmail, spamassassin, esd, cron, xrootconsole, ...)
- valknut (direct connect P2P with 100mbit and some GB traffic per day)
- sometimes VMWare to test some Windows $hit (mainly to give support to other users)

My harddisk is kind of slow, because I only have two 7200rpm drives, but I am quite happy with that. My CPU was way to slow, so I updated it and I bought "the right" RAM for it. It's quite dumb to buy 2x512 MB when you want to upgrade to more than 2 GB sometimes. Another reason is I already had 1 GB in my (very) old computer and think a new computer has to have more RAM.

As a conclusion from my side:
2 GB RAM might be enough for all of these apps combined. Another n GB would surely speed up the whole process because of the caching. A nice RAID solution surely would, too. Because I am the guy who wants both, I have to know if 4 GB are a problem. I already know RAID is not.

As I said, if you are doing VMware, I can understand 2gb, or perhaps more. If you are testing, you want to give each OS at least 512mb, and depending on the applications on it, perhaps more. No offense, but you keep giving goofy reasons for wanting 4gb - "Another reason is I already had 1 GB in my (very) old computer and think a new computer has to have more RAM." Come on man, that's ridiculous. My pc now has 1gb, and I'm transferring this ram to my new machine. I don't think that it has to have more ram, just because it's the next iteration of my uber rig.

What kind of "large" databases are you speaking of? What application?

You keep mentioning caching, but my feeling is that you don't know what you are talking about. In this rig, assuming you aren't running more than one instance of VMWare, which takes 1gb, I don't see you needing more than 2gb.

Here's what I do, to tell if my system needs more RAM (I know you are using Linux, so perhaps there is a Linux program that doesn't something similar). I open task manager, and click on the performance tab. I run all the programs that I would possibly run, at the same time. I then look to see if my available physical memory is low. I also look at the Peak number under Commit Charge. If the Total number is more than my physical ram, it's time to upgrade.

Yes, RAID 0 would speed up your hard drive access. Put your money into places that would make a difference in overall system performance. Don't throw ram in for the peace of mind, or the coolness factor. That's just a waste.
 
ameoba said:
64bit Linux is pretty much just as stable as 32bit is but don't plan on using any 32bit binaries - it's not worth the trouble 'cuz nobody has a good biarch distribution out. 32bit binaries include things like the flash plugin.
You apparently have never used Gentoo, then. While it is true that you cannot link 32-bit binaries against 64-bit libraries, it is very easy to run both 64-bti and 32-bit binaries on a multilib Gentoo system. I know because I do it every day on several Opteron machines. It does require some forethought and work, though. For example, to visit websites with flash, I have to open up a 32-bit copy of Firefox, so the 32-bit binary flash executable with work properly. If you have an Nvidia card, then you can play 32-bit binary games even on a 64-bit system, due to Nvidia spending a good bit of time working to ensure compatability. Gentoo provides libraries which enable this support.
C-Otto said:
Is there really a problem when running 32bit binaries like flash? I think not, because both the CPU and the OS are capable of 32bit.
Only in the fact that you cannot run a 32-bit binary that tries to link against a 64-bit library. If you run Gentoo, then multilib is enabled by default on amd64, so all you need is to enable 32-bit binary support in your kernel configuration and you are off and running.
peteyboy23 said:
You keep mentioning caching, but my feeling is that you don't know what you are talking about. In this rig, assuming you aren't running more than one instance of VMWare, which takes 1gb, I don't see you needing more than 2gb.
Linux by default will cache all disk accesses in physical memory until all the physical memory is used. It will release this memory for application,s but large amounts of RAM definitely does increase disk performance under Linux. It is a function of the kernel.
peteyboy23 said:
Yes, RAID 0 would speed up your hard drive access. Put your money into places that would make a difference in overall system performance. Don't throw ram in for the peace of mind, or the coolness factor. That's just a waste.
Please don't make the mistake of switching to a RAID0 setup. With your usage mentioned earlier in the thread, you would benefit much more from moving to a single Raptor or a single SCSI drive than you would from additional RAM. RAID0 increases access times and loses any benefit when dealing with lots of small files.

I have a simple rule that I abide by when making decisions that in the end are OS-related. Never take advice from people that run a dfifferent OS than you, as they tend to base their recommendations on their OS and not yours.

I do agree with everyone that you are not doing anything which would warrant another 2GB of RAM in your system. I would venture to guess that you would see little to no improvement in performance.

By the way, I have 4GB of RAM in my system, but I do development and video editing. During development, I *never* use all 4GB of RAM, even when bulding the Gentoo releases, which is probably the most intensive development task I take part in. Buy yourself some SCSI loving and enjoy as your 15K RPM drive pulls files at blistering speeds that make Raptor owners run home crying to mommy. It will be a much better use of your money.
 
Back
Top