• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

I installed ram expander in my acer a500 tablet and get an error message: invalid argument, Does som

  • Thread starter Thread starter Android Question
  • Start date Start date
A

Android Question

Guest
Hi, everyone
I install cm10.2 rom into my acer a500 last week.
And I found the ram usage over 97%.
Some people would use swapper or ram expander by using swapfile.
Therefore, I use ram expander and grant "ram expander" as superuser privileges.
And the screen appears "invalid argument".

I went to the console terminal with the command "su -" and "chmod 777 swap.swp" to set the swap.swp
And still get the message "invalid argument".
After that, I use these command :"su -","swapon swap.swp" and I still get the same message:"invalid argument".
Could someone have some idea?
Thanks for everyone's help.
 
Were you having actual performance problems? High RAM usage is not a problem in itself, but rather how linux-based systems (including Android) are designed to work, so unless you are having problems I'd just leave it alone.

If you are having problems maybe (maybe) try tweaking some of the memory management settings to clear RAM more aggressively (e.g. using Spare Parts if CM doesn't include such tools) - but do so with care and note the original settings before changing them in case you need to reset them. I wouldn't bother with swapfiles myself.
 
Were you having actual performance problems? High RAM usage is not a problem in itself, but rather how linux-based systems (including Android) are designed to work, so unless you are having problems I'd just leave it alone.

If you are having problems maybe (maybe) try tweaking some of the memory management settings to clear RAM more aggressively (e.g. using Spare Parts if CM doesn't include such tools) - but do so with care and note the original settings before changing them in case you need to reset them. I wouldn't bother with swapfiles myself.

Hi
there did get some problem, such as system idle and I can't wake it up.
The most serious problem is the system ram only left 12MB while I boot it up.
Therefore, I will choose to use swapfile and try to solve this problem.
For CM rom, does it have a solution
 
...

I went to the console terminal with the command "su -" and "chmod 777 swap.swp" to set the swap.swp
And still get the message "invalid argument".
After that, I use these command :"su -","swapon swap.swp" and I still get the same message:"invalid argument".
Could someone have some idea?
Thanks for everyone's help.

I know that this question is already four years old, but there's no solution mentioned in this thread, I had the same problem and I found a solution.
I hope the following will help anyone with the same problem.

I've installed Lineage OS 14.1 on an old Moto G 4G 2nd Generation (Thea) and wanted to setup a swap file. My sons want to play Pokemon Go and with only 1GB ram it is hardly playable.
The SD card is formatted in mixed mode (one partition as internal memory and one partition as external memory).
The external memory partition can be seen as /sdcard and as /mnt/sdcard.
When I've tried using a swap file on this card with
swapon /mnt/sdcard/swapfile.swp
I got this error
swapon: Couldn't swapon '/mnt/sdcard/swapfile.swp': Invalid argument

I've tried it with and without file extension and with and without "/mnt", but nothing helped.
Then I've found a thread where someone didn't state the error, but stated that he used df to show all devices, made sure that he used one of the listed devices and this fixed his problem with swapon.
I've tried df and it neither showed /sdcard nor /mnt/sdcard. I also could not find any other path listed which resembled the external partition on the SD card.
But I've found the following entry
/dev/block/vold/public:179_65 18754048 352 18753696 1% /mnt/media_rw/069B-1EFD
From setting up the SD card in mixed mode I remembered that the SD card is 179_64.
I've looked at the directory content of /mnt/media_rw/069B-1EFD and recognised that this is the internal partition of the SD card.
Therefore, I've tried creating a swap file there and used swapon with
swapon /mnt/media_rw/069B-1EFD/swapfile
and it worked fine :)

I’ve read that not all file systems support swap files. This could have been the problem. Or maybe it is not allowed to have swap files on removable media.
 
Back in KitKat days, I had an HTC Wildfire S running CM's KitKat ROM, with a 16 GB SD card formatted as: 2GB EXT4 (RAM), 12GB Fat32 (External memory) and the remainder as Linux Swap. remember the WFS only had 512MB RAM. and the app Int2Ext4+ to tie it all together. Worked really well too. IF your phone is rooted that scheme may work for you.
 
I
The external memory partition can be seen as /sdcard and as /mnt/sdcard.
Are you sure? /sdcard is the normal path for the internal storage (more precisely, the virtual volume that emulates an SD card, often referred to as the "internal SD card"), not an external (removable) card.
 
Back
Top Bottom