Swap nearing max

Discussion of the Meteohub software package

Moderator: Mattk

Post Reply
FishAlaska
Junior Boarder
Junior Boarder
Posts: 38
Joined: Thu Mar 26, 2009 5:02 am

Swap nearing max

Post by FishAlaska »

When I look at the swap file size it is near the max....what do I do about this? It says it is 103mb of 127 and is at 81% Is this a problem?

Store bought NSLU2 Linksys with meteohub on it from new. Bought from Ambient.
User avatar
d_l
Expert Boarder
Expert Boarder
Posts: 140
Joined: Fri Mar 13, 2009 12:58 am
Location: Reno, Nevada USA
Contact:

Re:Swap nearing max

Post by d_l »

I can't say if it is a problem, but how long has it been since you rebooted the NSLU2. Also which firmware version is running?

Whenever my swapfile starts to accumulate some usage, I reboot the NSLU2 and it has reset to 0% for a while afterwards.

From my experience with another NSLU2 running factory stock firmware and acting as an FTP server receiving smallish image files, it is a good practice to periodically reboot an NSLU2. After about ~10000 or so file writes between reboots, the read/write speed of the NSLU2 degrades noticably. Perhaps the swap file on it is becoming filled and the reboot restores it to 0%. Just a guess.
FishAlaska
Junior Boarder
Junior Boarder
Posts: 38
Joined: Thu Mar 26, 2009 5:02 am

Re:Swap nearing max

Post by FishAlaska »

That makes sense....but everytime I reboot this thing it wants to lose all my settings.

I dont know what firmware is on it....it is right from the factory.

SoftwareLinux Kernel: 2.6.21.7 132 BogoMIPS, 30 MB RAM, NSLU2 (133 MHz)
MeteoHub: Version 4.2a ©2009 by Boris Pasternak, info@meteohub.de
System ID: activated

StorageSwap: 99MB of 127MB used (77%)
System: 217MB of 402MB used (53%)
Data: 93MB of 1322MB used (7%)

Date and TimeUTC: 21.04.2009 02:29:32
Time Zone: America/Denver
Local Time: 20.04.2009 20:29:32
Uptime: 17 days, 2 hours, 44 minutes
System Load: 0.67, 1.57, 1.77
User avatar
d_l
Expert Boarder
Expert Boarder
Posts: 140
Joined: Fri Mar 13, 2009 12:58 am
Location: Reno, Nevada USA
Contact:

Re:Swap nearing max

Post by d_l »

It has 4.2a which is the previous version from the most recent 4.2b so it isn't much out of date.

It shouldn't lose any settings when you use the Reboot button on the Maintenance page. If it does, then something else is wrong.

I see that the system clock speed is 133 MHz. That is the speed for the older NSLU2 models and is considered underclocked. Hackers discovered that the speed could be safely doubled with a minor modification of the motherboard and began to do it on their NSLU2s. Subsequently Linksys began selling the NSLU2 with the speed doubled to 266 MHz.
cbhiii
Gold Boarder
Gold Boarder
Posts: 306
Joined: Fri Feb 15, 2008 2:02 am
Location: Michigan, USA
Contact:

Re:Swap nearing max

Post by cbhiii »

Here's a webpage that talks about the underclocking problem and how to fix it. I did it and it worked just fine.

http://www.nslu2-linux.org/wiki/HowTo/OverClockTheSlug
Station: Davis Vantage Pro2 Plus
Hardware: Raspberry Pi 2 (Meteohub status)
FishAlaska
Junior Boarder
Junior Boarder
Posts: 38
Joined: Thu Mar 26, 2009 5:02 am

Re:Swap nearing max

Post by FishAlaska »

Thanks.....I did it also and it worked. I have a rain0 sensor not reporting to meteohub now....it dropped before I overclocked and I thought I had it back but not. It appears on the WMR200 console but does not get through to meteohub.
binbags
Expert Boarder
Expert Boarder
Posts: 121
Joined: Tue Nov 06, 2007 9:25 am
Location: Glossop, UK

Re:Swap nearing max

Post by binbags »

FishAlaska wrote:Thanks.....I did it also and it worked. I have a rain0 sensor not reporting to meteohub now....it dropped before I overclocked and I thought I had it back but not. It appears on the WMR200 console but does not get through to meteohub.
*Woops wrong section, sorry*!!

Hi

Try pressing the reset button on the rain sensor, then do another search in the meteohub sensor section.
Post Reply