maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   swap on micro sd (https://talk.maemo.org/showthread.php?t=81333)

chatumao 2012-01-04 09:45

swap on micro sd
 
hello, i heard a lot about striping swap via memory card for performance increase.
now if you open battery cover, sd card is ejected automatically.
what happens if i use striping function and take out the memory card when phone is still on?any known issues?

best regards

ade 2012-01-04 10:14

Re: swap on micro sd
 
The Micro SD card should NOT be ejected when removing the cover.
Are you sure you have placed it in the proper way?

chatumao 2012-01-04 10:49

Re: swap on micro sd
 
what i mean can be found here

http://talk.maemo.org/showthread.php?t=42253

anyone know what the impacts of swap striping are

ade 2012-01-04 10:59

Re: swap on micro sd
 
You are talking about unmounting, not physically removing the microSD?
Removing the back cover will not unmount the microSD automatically.

I have my swap file on microSD, no impact on removing the back cover itself.

And losing swap is not the worst thing that can happen to your system.

JonWW 2012-01-04 11:02

Re: swap on micro sd
 
Quote:

Originally Posted by ade (Post 1145510)
The Micro SD card should NOT be ejected when removing the cover.
Are you sure you have placed it in the proper way?

The SD card IS ejected when you remove the phone's back cover.

In XTerm type then remove the back cover
Code:

lshal -m
you will get an output something like this
Code:

Start monitoring devicelist:
-------------------------------------------------
platform_mmci_omap_hs_0_mmc_host property button.state.value = false
platform_mmci_omap_hs_0_mmc_host condition ButtonPressed = cover
platform_mmci_omap_hs_0_mmc_host_mmc_card_rca54613 removed
volume_part2_size_805306368 removed
volume_uuid_4E10_7F14 removed
platform_mmci_omap_hs_0_mmc_host_mmc_card_rca54613_storage_mmc_sd_mmc removed

Check in the file manager if you still think it's there.

ade 2012-01-04 11:11

Re: swap on micro sd
 
Quote:

Originally Posted by JonWW (Post 1145533)
The SD card IS ejected when you remove the phone's back cover.

In XTerm type then remove the back cover
Code:

lshal -m
you will get an output something like this
Code:

Start monitoring devicelist:
-------------------------------------------------
platform_mmci_omap_hs_0_mmc_host property button.state.value = false
platform_mmci_omap_hs_0_mmc_host condition ButtonPressed = cover
platform_mmci_omap_hs_0_mmc_host_mmc_card_rca54613 removed
volume_part2_size_805306368 removed
volume_uuid_4E10_7F14 removed
platform_mmci_omap_hs_0_mmc_host_mmc_card_rca54613_storage_mmc_sd_mmc removed

Check in the file manager if you still think it's there.

You are completly right, the microSD card does gets unmounted.

I got a reboot when I removed the back cover (with swap file on microSD). Another thing learned today, thanx JohnWW

JonWW 2012-01-04 11:19

Re: swap on micro sd
 
Quote:

Originally Posted by ade (Post 1145535)
You are completly right, the microSD card does gets unmounted.

I got a reboot when I removed the back cover (with swap file on microSD). Another thing learned today, thanx JohnWW

I learnt this, like you, by putting the swap file on the SD card, I also found that the card was not making the best connections to the phone and sometimes after knocking the phone the SD card would have to reconnect, this was enough to loose the swap file and the phone would reboot, so now I leave the swap file on the emmc instead.

chatumao 2012-01-04 11:31

Re: swap on micro sd
 
john, u sound like u know ur territory.
can i strip my swap via sd card and still easily remove it with running system to put data with a pc on it,eg?
or would you advice me not to strip if i want to maintain the capability of removing the card?
thx in advance

JonWW 2012-01-04 12:00

Re: swap on micro sd
 
Quote:

Originally Posted by chatumao (Post 1145549)
john, u sound like u know ur territory.

Not so sure I do, but thanks.

I followed others when everyone was experimenting with their swap files.
My experience was that I that I did not notice any improvements with the swap file on the SD card, I also tried using a script written by vi_, which I modified, to play around with moving the swap file from the eMMC to the SD card and back, the idea was to clean up the swap file and the system would perform better. I didn't notice any appreciable improvements and the system rebooted when the swap file was on the SD card, so I have given up.

Quote:

Originally Posted by chatumao (Post 1145549)
can i strip my swap via sd card and still easily remove it with running system to put data with a pc on it,eg?
or would you advice me not to strip if i want to maintain the capability of removing the card?

Have a look at vi_'s script, you could probably re-write it to move the swap file back to the eMMC, remove the card/put your data on it then move the swap file back.
Then again with the swap file on the SD card just try plugging in the USB cable and select Mass storage mode or PC Suite mode and see what happens.

Best of luck

chatumao 2012-01-04 12:15

Re: swap on micro sd
 
alright, i understand that i loose hot swap capabilities when using this method.
furthermore i understand that it does not really boost performance, at least not notably. i think i will leave it for now.
thanks for the advice and all your time, have a nice day!


All times are GMT. The time now is 01:48.

vBulletin® Version 3.8.8