Tag Archives: memory

Discover RAM info without opening your case

Who says you can’t find anything useful on Digg? Not me that’s for sure. I just discovered an ever so handy Linux command to find out what kind of RAM you have.

It’s easy enough, just run
sudo dmidecode --type memory

And you’ll get something back, like:
# dmidecode 2.10
SMBIOS 2.5 present.

Handle 0x1100, DMI type 17, 27 bytes
Memory Device
Array Handle: 0x1000
Error Information Handle: Not Provided
Total Width: 64 bits
Data Width: 64 bits
Size: 2048 MB
Form Factor: DIMM
Set: None
Locator: DIMM_1
Bank Locator: Not Specified
Type: DDR2
Type Detail: Synchronous
Speed: 800 MHz
Manufacturer: AD00000000000000
Serial Number: 0000100B
Asset Tag: 010807
Part Number: HYMP125U64CP8-S6

Pretty cool, huh?

It doesn’t stop there, however.

Valid type keywords are:

Go crazy.

MediaWiki out of memory

A fresh install of MediaWiki on an Ubuntu server was throwing memory errors when trying to save certain pages.

mediawiki Fatal error: Allowed memory size [blah] exhausted (tried to allocate [blah])

The fix is simple – increase MediaWiki’s memory size in /etc/mediawiki/LocalSettings.php, which is only 20MB by default.

I also changed PHP’s maximum allowable memory size in /etc/php5/apache2/php.ini and reloaded the server.