• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Swap file on HDD  (Read 1525 times)
mgillespie
Full Member
***

Karma: 7
Posts: 239



View Profile
« on: August 13, 2009, 02:19:21 PM »

Hi, I am getting regular occurances of the following in my DMESG:

Code:
page allocation failure. order:3, mode:0x4020

Looking into this some more, it seems it occurs when my memory is exhausted.  I suspect this is because I am not running a swap file/partition.

I have created a 500MB swapfile on my USB HDD, and it seems to have stopped the errors, but having the page file on my HDD means it never spins down !

Is there another solution?   I have been thinking of creating the swap file on SD card. Is this a safe thing to do?  Will it prematurely damage the card?
Logged

Rabeeh Khoury
Administrator
Full Member
*****

Karma: 5
Posts: 218


View Profile
« Reply #1 on: August 13, 2009, 02:22:14 PM »

What are you running?
The plug has 512MB of DDR.
Logged

mgillespie
Full Member
***

Karma: 7
Posts: 239



View Profile
« Reply #2 on: August 13, 2009, 03:01:13 PM »

What are you running?
The plug has 512MB of DDR.


Lighttpd (PHP5)
TwonkyMediaserver
SSHD
Screen (wtorrent/rTorrent session)

I agree it's not alot, but I was under the impression that Linux would use up any available memory, as unused memory is wasted memory.  However if a page page request comes in, it can't do anything with it..
 
Logged

dattaway
Jr. Member
**

Karma: 5
Posts: 91



View Profile WWW
« Reply #3 on: August 16, 2009, 01:31:10 PM »

Your torrent session is likely using an amazing amount of memory paging.  Use the "top" command and sort by memory useage with the "M" key to see the offenders.  Top also has a handy "kill" feature if you want to prune the process tree.  The "?" command will show other tricks it can do.
Logged

Pages: [1]
Print
Jump to: