Reply
Thread Tools
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#11
SwapSet seems not to work properly for me. Log:
Code:
Defragging swap...
Disabling compcache...
...Module not loaded...
Enabling compcache (64mb)...
...skipping. Compcache disabled.
Disabling SD swap...
...Unable to disable external swap - No other swap active
Enabling SD swap...
Disabling internal swap...
...Disabling /dev/mmcblk0p3
Checking we can disable swap device /dev/mmcblk0p3
Mem: MemTotal: 235252 kB MemFree: 36660 kB
Swap: SwapCached: 53152 kB SwapTotal: 1634256 kB SwapFree: 1459284 kB
Swap required is 174972, available: 782328
Enabling internal swap...
...Enabling /dev/mmcblk0p3
This causes the swap defragmentation not to happen at all.
I have two swaps - /dev/mmcblk0p3 (stock) and /dev/mmcblk1p2. Ubuntu/Mint's disk utility shows its size to be 801MB.
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 
pichlo's Avatar
Posts: 6,447 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#12
@marmistrz, a silly question, but you have formatted your additional swap partition, right? (mkswap /dev/mmcblk1p2)
 
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#13
Wanted to post the sudo fdisk -l, but this happened. :P

But yeah, fdisk shows both of the partition to be Linux swap.
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 
pichlo's Avatar
Posts: 6,447 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#14
fdisk, sfdisk, parted and friends show the flag in the partition table indicating the intention of how you want to use the partition. The flag is set when the partition is created. But you still have to format it. In case of a swap partition, the command is mkswap.
 

The Following User Says Thank You to pichlo For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#15
Originally Posted by pichlo View Post
fdisk, sfdisk, parted and friends show the flag in the partition table indicating the intention of how you want to use the partition. The flag is set when the partition is created. But you still have to format it. In case of a swap partition, the command is mkswap.
Well, I'll take a look when I get my N900 back working. But it should be formatted. I used gparted to do create it.
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#16
mkswaped'em and the output's the same
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 
pichlo's Avatar
Posts: 6,447 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#17
Originally Posted by marmistrz View Post
mkswaped'em and the output's the same
Does swapon work?
 
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#18
Originally Posted by pichlo View Post
Does swapon work?
Code:
Nokia-N900:~# swapon -a
swapon: /dev/mmcblk1p2: Device or resource busy
swapon: /dev/mmcblk0p3: Device or resource busy
Nokia-N900:~# swapoff /dev/mmcblk0p3
Nokia-N900:~# swapon /dev/mmcblk0p3
Nokia-N900:~# swapon /dev/mmcblk1p2
swapon: /dev/mmcblk1p2: Device or resource busy
Nokia-N900:~# swapoff /dev/mmcblk1p2
Nokia-N900:~# swapon /dev/mmcblk1p2
Nokia-N900:~#
Maybe it's the problem of no sleeping between the swapon-offs?

device or resource busy happened if the swap has already been swapped on.
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 
Reply

Tags
memory, swapfile, swapset


 
Forum Jump


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