Slow Swap during booting

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

Slow Swap during booting

Postby MrGreen » Thu May 31, 2012 8:21 am

During booting of Pi it gets to SWAP and stops for around a couple of minutes.

Have set up a swapfile in fstab

$this->bbcode_second_pass_code('', '/swapfile none swap defaults 0 0')

Shows up in free -m

$this->bbcode_second_pass_code('', 'Swap: 248 0 248')

Is there anything I can do to improve booting ?
Last edited by MrGreen on Fri Jun 01, 2012 5:38 am, edited 1 time in total.
MrGreen
 
Posts: 54
Joined: Sun Dec 25, 2011 12:55 pm

Re: Slow Sawp during booting

Postby xenoxaos » Thu May 31, 2012 3:18 pm

Is this swapfile on your SD card? If it is, I would remove it from fstab and only use it when ABSOLUTELY necessary. Typically I use my swapfile only when I need to do some heavier compiling. If I need it regularly, I just add a `swapon /swapfile` to my rc.local so everything comes up before it anyway.
Arch Linux ARM exists and continues to grow through community support, please donate today!
xenoxaos
Developer
 
Posts: 323
Joined: Thu Jan 06, 2011 1:45 am

Re: Slow Sawp during booting

Postby MrGreen » Fri Jun 01, 2012 5:38 am

I will of course remove it from fstab.

Was getting lagging while updating [pacman pauses] thought swap would help.

I have edited config files in boot which helps a little, noticed that swap pauses boot for a couple of minutes....

So want to plug in usb drive with ArchBang on it and fire it up :mrgreen:

Thanks for your help, keep up the good work

MrG
MrGreen
 
Posts: 54
Joined: Sun Dec 25, 2011 12:55 pm

Re: Slow Swap during booting

Postby pepedog » Fri Jun 01, 2012 7:24 am

Unless you are running something like xbmc, rename the file /boot/arm224start.elf to /boot/start.elf to get more ram
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Slow Swap during booting

Postby MrGreen » Fri Jun 01, 2012 10:52 am

How what when why :shock:

free -m showed 121 used 31... 90 now after changes....

$this->bbcode_second_pass_code('', '[mrgreen@alarmpi ~]$ free -m
total used free shared buffers cached
Mem: 216 30 186 0 5 14
-/+ buffers/cache: 10 205
Swap: 0 0 0
')

Disabled swap [as you can see], that is amazing. Did read you can tweak video memory as well but I am happy running like this...

Got to check my fstab settings for sd card.....

Thanks very much
MrGreen
 
Posts: 54
Joined: Sun Dec 25, 2011 12:55 pm

Re: Slow Swap during booting

Postby pepedog » Fri Jun 01, 2012 12:07 pm

There are 3 arm files, each splits memory for cpu/gpu differently.
So the arm192 will give 192Mb for cpu, rest for gpu
If you use X and midori, it works so much more faster with 224.
The xbmc distro out there works only with the 128 version
It's all wrote down somewhere on their forum
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Slow Swap during booting

Postby MrGreen » Fri Jun 01, 2012 4:27 pm

Found this link

http://sirlagz.net/?p=445

A script to adjust ram size, not tried it yet

I really want max memory [which I think I have got now!] and very little gpu memory.

My Tiny server does not run X

Been running via ssh so have not hooked up Pi to monitor or keyboard, still want to get slow booting sorted.

Also cleaning out packages I do not need

This is good fun! :mrgreen:
MrGreen
 
Posts: 54
Joined: Sun Dec 25, 2011 12:55 pm

Re: Slow Swap during booting

Postby pepedog » Fri Jun 01, 2012 6:14 pm

There is nothing to strip out, or worth the hassle.
Stock rootfs should be settled from power to prompt in about 24 seconds, if not I would suspect your card
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Slow Swap during booting

Postby MrGreen » Sat Jun 02, 2012 4:48 pm

I bought an sd card that was on the list of compatible cards.

Found a 4gb card I am going to try out

8gb Kingston SDHC SD4

4gb Kingston SDHC SD2

OT but is there a reason for not having a / line in fstab?
MrGreen
 
Posts: 54
Joined: Sun Dec 25, 2011 12:55 pm


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 14 guests