Guspaz wrote:
Unless you're buying a Linode with more than 3 or 4 gigs of RAM, you probably don't want/need 64-bit.
Don't need it then, either. PAE, unless you're committing a >3GB (or 2GB?) working set of data in one application. In most workloads, like, say, worker MPM in Apache 2, each process will be able to take advantage of a few gigs itself. The OS will use the extra RAM for page cache regardless.
sblantipodi wrote:
I would like to know how much RAM a LAMP server (configured in the same way on both 32 and 64 bit OS) eats on both platform.
I was curious myself, so I deployed
this StackScript on both CentOS 5.4 i686 and CentOS 5.4 x86_64; after all, just how much higher is the memory demand with the pointer overhead? Nothing was changed beyond how the StackScript booted the system.
Code:
CentOS release 5.4 (Final)
Kernel 2.6.32.12-linode25 on an i686
li184-10 login: root
Password:
[root@li184-10 ~]# free -m
total used free shared buffers cached
Mem: 348 280 67 0 8 221
-/+ buffers/cache: 50 297
Swap: 255 0 255
Doing 131.72 requests/sec during
ab -n 100000 -c 100 http://... from a different location (intentionally network-bound so it was a light load):
Code:
total used free shared buffers cached
Mem: 348 293 54 0 8 224
-/+ buffers/cache: 60 288
Swap: 255 0 255
Reboot into x86_64...
Code:
CentOS release 5.4 (Final)
Kernel 2.6.32.12-x86_64-linode12 on an x86_64
li184-10 login: root
Password:
[root@li184-10 ~]# free -m
total used free shared buffers cached
Mem: 343 328 15 0 8 237 begin_of_the_skype_highlighting 343 328 15 0 8 237 end_of_the_skype_highlighting
-/+ buffers/cache: 81 261
Swap: 255 0 255
Huh. Again, under ab:
Code:
total used free shared buffers cached
Mem: 343 338 4 0 8 234
-/+ buffers/cache: 95 248
Swap: 255 0 255
Interesting result.
this is really interesting... thanks, really thanks.