Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Recently I switched my custom ROM installed on my HTC Desire to a 4.1.2 based ROM (PARANOIDANDROID based).

The ROM works fine but sometimes the device has serious lag of several seconds. I assume that this may be caused by a SWAP partition I created once on my SD-card but that was never used by my previous ROMs.

How can I find out if the SWAP partition is used or not?

share|improve this question
I'd open a terminal app and execute the mount command. In order to be used, a partition needs to be mounted. If this is true for the swap partition, the output should include a line with "swap" (as partition type) AFAIK. – Izzy Dec 13 '12 at 14:47
@Izzy: The mount list does not show a swap partition but free show swap used. Therefore the mount command is not a working solution. – Robert Dec 17 '12 at 22:13
Yeah, I saw this when I checked it at another device. When I wrote my comment, I only had my phone with me (no swap there), so I couldn't tell. After verification, I wrote below answer -- which fits :) – Izzy Dec 17 '12 at 22:19
up vote 3 down vote accepted

Simply get yourself a terminal app (a good choice would be Android Terminal Emulator), start it, and enter the command free. The output then should look like this:

             total       used       free     shared    buffers
Mem:        487344     474312      13032          0      42224
-/+ buffers:           432088      55256
Swap:             0          0         0

This example is from my Motorola Milestone 2, and you can see: it does not use any swap: "total" available swap space is "0". If your device would use swap, at least the numbers for "totals" and one of "used" or "free" should be > 0.

share|improve this answer
Thanks I can see that I was right - swap total/used 31740. – Robert Dec 17 '12 at 22:11
Which means: full O.o You could try playing with the "swappiness" to improve that -- but that's a different question (but a valid one, so you could ask it :) – Izzy Dec 17 '12 at 22:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.