|
2011-04-01
, 12:15
|
|
Posts: 103 |
Thanked: 36 times |
Joined on Apr 2010
@ United Kingdom, Huddersfield
|
#122
|
The Following User Says Thank You to AliasXZ For This Useful Post: | ||
|
2011-04-01
, 15:04
|
Posts: 1,522 |
Thanked: 392 times |
Joined on Jul 2010
@ São Paulo, Brazil
|
#123
|
|
2011-04-23
, 16:36
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#124
|
The last thing to do was to play with swap - bingo, at the moment I swapoff EMMC swap, extracting speed raise to about 10 MB/s with no lagging at all. And the strange thing is that performance raise at the moment I did swapoff, even before swap was transferred to sdcard swap partition. Swap priorities do not matter - as long as EMMC swap is turned on, performance degrades severely.
The Following User Says Thank You to qole For This Useful Post: | ||
|
2011-04-23
, 17:22
|
Posts: 804 |
Thanked: 1,598 times |
Joined on Feb 2010
@ Gdynia, Poland
|
#125
|
I'm wondering if there is any way to disable swap on a specific process or partition? I would like to disable swapping during the file extraction phase, just on the lzma extraction process.
int *ptr = malloc(100); if((int)(ptr)>=0x80000000 && (int)(ptr)<=0x8fffffff) printf("Yay! Address %x is in physical RAM :)\n", (int)(ptr)); else printf("Boo! Addres %x is not in physical RAM :(\n", (int)(ptr));
|
2011-04-23
, 17:28
|
|
Posts: 2,355 |
Thanked: 5,249 times |
Joined on Jan 2009
@ Barcelona
|
#126
|
I'm wondering if there is any way to disable swap on a specific process or partition? I would like to disable swapping during the file extraction phase, just on the lzma extraction process.
|
2011-04-23
, 20:41
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#127
|
|
2011-04-23
, 21:05
|
Posts: 804 |
Thanked: 1,598 times |
Joined on Feb 2010
@ Gdynia, Poland
|
#128
|
# read current values VAL01=`cat /proc/sys/vm/dirty_ratio` VAL02=`cat /proc/sys/vm/dirty_background_ratio` VAL03=`cat /proc/sys/vm/dirty_writeback_centisecs` VAL04=`cat /proc/sys/vm/dirty_expire_centisecs` VAL05=`cat /proc/sys/vm/min_free_kbytes` VAL06=`cat /proc/sys/vm/swappiness` VAL07=`cat /proc/sys/vm/vfs_cache_pressure` VAL08=`cat /proc/sys/vm/page-cluster` VAL09=`cat /sys/block/mmcblk0/queue/nr_requests` VAL10=`cat /sys/block/mmcblk1/queue/nr_requests` # use vaules from page 1 of this tread echo 3 > /proc/sys/vm/dirty_ratio echo 3 > /proc/sys/vm/dirty_background_ratio echo 100 > /proc/sys/vm/dirty_writeback_centisecs echo 100 > /proc/sys/vm/dirty_expire_centisecs echo 4096 > /proc/sys/vm/min_free_kbytes echo 50 > /proc/sys/vm/swappiness echo 200 > /proc/sys/vm/vfs_cache_pressure echo 8 > /proc/sys/vm/page-cluster echo 4 > /sys/block/mmcblk0/queue/nr_requests echo 4 > /sys/block/mmcblk1/queue/nr_requests # #DO SOME STUFF HERE, EG. RUN YOUR PROCESS # # set previous values echo $VAL01 > /proc/sys/vm/dirty_ratio echo $VAL02 > /proc/sys/vm/dirty_background_ratio echo $VAL03 > /proc/sys/vm/dirty_writeback_centisecs echo $VAL04 > /proc/sys/vm/dirty_expire_centisecs echo $VAL05 > /proc/sys/vm/min_free_kbytes echo $VAL06 > /proc/sys/vm/swappiness echo $VAL07 > /proc/sys/vm/vfs_cache_pressure echo $VAL08 > /proc/sys/vm/page-cluster echo $VAL09 > /sys/block/mmcblk0/queue/nr_requests echo $VAL10 > /sys/block/mmcblk1/queue/nr_requests
|
2011-04-23
, 21:12
|
Posts: 804 |
Thanked: 1,598 times |
Joined on Feb 2010
@ Gdynia, Poland
|
#129
|
They last thing to do was to play with swap - bingo, at the moment I swapoff EMMC swap, extracting speed raise to about 10 MB/s with no lagging at all. And the strange thing is that performance raise at the moment I did swapoff, even before swap was transferred to sdcard swap partition. Swap priorities do not matter - as long as EMMC swap is turned on, performance degrades severely.
|
2011-04-24
, 01:03
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#130
|
My Nokia N900 is my website, still up an running for the Maemo community. My Nokia N900 is upgraded to 21.2011.38-1Tmaemo1.1 ~ CSSU ready ~ Overclocked ~ Speed patched ~ Swappolube ~ was running 7 desktops ~ 270 apps and counting ~ Multi-Boot with Standard Kernel , Kernel Power 2.6.28.10power47 and NITDroid N12 "UMay".