The Following User Says Thank You to mr_pingu For This Useful Post: | ||
|
2012-11-23
, 23:47
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#12
|
The Following 2 Users Say Thank You to peterleinchen For This Useful Post: | ||
|
2012-11-24
, 09:37
|
Posts: 2,290 |
Thanked: 4,133 times |
Joined on Apr 2010
@ UK
|
#13
|
Do I need to have 3 swaps? That part isn't clear to me
I only have them on
/dev/mmcblk0p3 and /dev/mmcblk1p2
Is a third really needed or would this suffice?
The Following 5 Users Say Thank You to sixwheeledbeast For This Useful Post: | ||
|
2012-11-24
, 21:29
|
Posts: 2,290 |
Thanked: 4,133 times |
Joined on Apr 2010
@ UK
|
#14
|
|
2012-11-28
, 21:41
|
|
Posts: 22 |
Thanked: 54 times |
Joined on Aug 2010
@ Kajaani, Finland
|
#15
|
The Following User Says Thank You to jukra For This Useful Post: | ||
|
2012-11-28
, 23:22
|
Posts: 2,290 |
Thanked: 4,133 times |
Joined on Apr 2010
@ UK
|
#16
|
What the swap? No more manual swap defragging as I used to do. Excellent! This works like a charm when setup as described in OP.
|
2012-11-28
, 23:25
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#17
|
Any devs got any ideas how to add an event to the alarm_queue or some way of automatically reswapping?
The Following 3 Users Say Thank You to peterleinchen For This Useful Post: | ||
|
2012-12-01
, 19:57
|
Posts: 2,290 |
Thanked: 4,133 times |
Joined on Apr 2010
@ UK
|
#18
|
The Following User Says Thank You to sixwheeledbeast For This Useful Post: | ||
|
2012-12-01
, 20:30
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#19
|
#!/bin/sh disk=mmcblk0p3 blocks=$(awk '{if ($3=="'"$disk"'") print $10}' /proc/diskstats) echo $blocks blocks let bytes=$blocks*512 echo $bytes bytes let kb=$bytes/1024 let mb=$bytes/1024/1024 let gb=$bytes/1024/1024/1024 echo $kb kb, $mb mb, $gb gb
The Following User Says Thank You to peterleinchen For This Useful Post: | ||
|
2012-12-01
, 20:42
|
Posts: 2,290 |
Thanked: 4,133 times |
Joined on Apr 2010
@ UK
|
#20
|
But you can not rely at all on that info for swap defrag!
It just shows the amount of used swap. This will be something from a few MB up to a few 100MB.
But it will not show the already written amount on that swap space. This info can be fetched via iostat (withh bb-power) or more sophisticated with following script (rely on the number of bytes, please):
I only have them on
/dev/mmcblk0p3 and /dev/mmcblk1p2
Is a third really needed or would this suffice?
N900 loaded with:
CSSU-T (Thumb)
720p recording,
Pierogi, Lanterne, Cooktimer, Frogatto
N9 16GB loaded with:
Kernel-Plus
--
[TCPdump & libpcap | ngrep]
--
donate