maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Massive interactivity improvement under high I/O load! (https://talk.maemo.org/showthread.php?t=69973)

mehulrajput 2011-03-12 15:44

Re: Massive interactivity improvement under high I/O load!
 
I used these settings for sometime and I donot find that significant difference. Infact my comp (N900) hung up so bad with some application being installed with fam.

I changed the nr_requets to 64 (half of default) and vfs_cache_pressure to 20. Now it is better compared to the settings suggested in 1st post.

freemangordon 2011-03-12 19:24

Re: Massive interactivity improvement under high I/O load!
 
Quote:

Originally Posted by kpoman (Post 966347)
Freemangordon, what setting do you suggest for being able to install and update the deb image ? I had lot of reboots while updating and lot of corruptions and starte verytime from zero which makes me sick !
Help

These are my settings, try them if you dare :D

Code:

        echo 30 > /proc/sys/vm/swappiness
        echo 0 > /proc/sys/vm/page-cluster
        echo 512 > /sys/block/mmcblk0/queue/nr_requests
        echo 512 > /sys/block/mmcblk1/queue/nr_requests
        echo 0 > /sys/block/mmcblk0/queue/iosched/slice_idle
        echo 0 > /sys/block/mmcblk1/queue/iosched/slice_idle
        echo 32 > /sys/block/mmcblk0/queue/iosched/quantum
        echo 32 > /sys/block/mmcblk1/queue/iosched/quantum
        echo 80 > /sys/block/mmcblk0/queue/iosched/fifo_expire_sync
        echo 80 > /sys/block/mmcblk1/queue/iosched/fifo_expire_sync
        echo 180 > /sys/block/mmcblk0/queue/iosched/fifo_expire_async
        echo 180 > /sys/block/mmcblk1/queue/iosched/fifo_expire_async

did not benchmark anything, but phone is responsive while doing

/home/user/MyDocs# lzma -d ubuntu-m5-v1.2.img.ext2.lzma

swap is on EMMC, my sdcard is only class 2, but even with such slow card phone feels better with swap on it.

mehulrajput 2011-03-13 05:41

Re: Massive interactivity improvement under high I/O load!
 
Quote:

Originally Posted by mehulrajput (Post 966349)
I used these settings for sometime and I donot find that significant difference. Infact my comp (N900) hung up so bad with some application being installed with fam.

I changed the nr_requets to 64 (half of default) and vfs_cache_pressure to 20. Now it is better compared to the settings suggested in 1st post.

even with nr_requests at 64 my comp was not responding when io was happening.

I increased the nr_requests to 256 and swapiness to 50 and it is now working much better. even when some app is being installed. i do just normal stuff like browing installing apps and some chat. seems these settings are for those who are doing high io all the time.

Saturn 2011-03-13 09:54

Re: Massive interactivity improvement under high I/O load!
 
1 Attachment(s)
Hi again,

as promised uploaded a new version of Swappolube editor app in devel (1.1-1) with support for these new options.

Note that:
- the swappolube proposed values remain the same.
- the mmc1 options are disabled if there is no mmc1 installed.

debernardis 2011-03-13 10:04

Re: Massive interactivity improvement under high I/O load!
 
Quote:

Originally Posted by Saturn (Post 966731)
Hi again,<br />
<br />
as promised uploaded a new version of Swappolube editor app in devel (1.1-1) with support for these new options.<br />
<br />
Note that: <br />
- the swappolube proposed values remain the same.<br />
- the mmc1 options are disabled if there is no mmc1 installed.

<br />
<br />

Code:

$ /opt/swappolube/swappolube.py
Traceback (most recent call last):
  File "/opt/swappolube/swappolube.py", line 767, in <module>
    myapp = MyMainWindow()
  File "/opt/swappolube/swappolube.py", line 169, in __init__
    self.ui = Ui_swappolube()
NameError: global name 'Ui_swappolube' is not defined


epitaph 2011-03-13 10:41

Re: Massive interactivity improvement under high I/O load!
 
Quote:

Originally Posted by freemangordon (Post 966450)
These are my settings, try them if you dare :D

Code:

        echo 30 > /proc/sys/vm/swappiness
        echo 0 > /proc/sys/vm/page-cluster
        echo 512 > /sys/block/mmcblk0/queue/nr_requests
        echo 512 > /sys/block/mmcblk1/queue/nr_requests
        echo 0 > /sys/block/mmcblk0/queue/iosched/slice_idle
        echo 0 > /sys/block/mmcblk1/queue/iosched/slice_idle
        echo 32 > /sys/block/mmcblk0/queue/iosched/quantum
        echo 32 > /sys/block/mmcblk1/queue/iosched/quantum
        echo 80 > /sys/block/mmcblk0/queue/iosched/fifo_expire_sync
        echo 80 > /sys/block/mmcblk1/queue/iosched/fifo_expire_sync
        echo 180 > /sys/block/mmcblk0/queue/iosched/fifo_expire_async
        echo 180 > /sys/block/mmcblk1/queue/iosched/fifo_expire_async

did not benchmark anything, but phone is responsive while doing

/home/user/MyDocs# lzma -d ubuntu-m5-v1.2.img.ext2.lzma

swap is on EMMC, my sdcard is only class 2, but even with such slow card phone feels better with swap on it.

Thank you for sharing this. I've add it to my tune-up tools but I didn't noticed any (big) difference. My device is already fast as hell and got a good throughput! Do you know the original values? Anyway swapiness of 30 didn't work for me because cuteTube stop working.

Saturn 2011-03-13 10:58

Re: Massive interactivity improvement under high I/O load!
 
Quote:

Originally Posted by debernardis (Post 966734)
<br />
<br />

Code:

$ /opt/swappolube/swappolube.py
Traceback (most recent call last):
  File "/opt/swappolube/swappolube.py", line 767, in <module>
    myapp = MyMainWindow()
  File "/opt/swappolube/swappolube.py", line 169, in __init__
    self.ui = Ui_swappolube()
NameError: global name 'Ui_swappolube' is not defined


Thanks,

An update will be uploaded in 5 min or so..

PS: if cannot wait the line 169 in swappolube.py needs to be changed to
Code:

    self.ui = Ui_Swappolube()

freemangordon 2011-03-13 12:35

Re: Massive interactivity improvement under high I/O load!
 
Quote:

Originally Posted by epitaph (Post 966747)
Thank you for sharing this. I've add it to my tune-up tools but I didn't noticed any (big) difference. My device is already fast as hell and got a good throughput! Do you know the original values? Anyway swapiness of 30 didn't work for me because cuteTube stop working.

Did I mention that those are the ONLY tunnings I use(and some in transitions.ini)? And it makes huge difference compared to stock?

BTW if your device is very fast before applying above settings, it is reasonable that you won't see any difference. But just for experiment you can try and open as much applications as you can to see if it feels different ;)

epitaph 2011-03-13 12:52

Re: Massive interactivity improvement under high I/O load!
 
Quote:

Originally Posted by freemangordon (Post 966803)
Did I mention that those are the ONLY tunnings I use(and some in transitions.ini)? And it makes huge difference compared to stock?

BTW if your device is very fast before applying above settings, it is reasonable that you won't see any difference. But just for experiment you can try and open as much applications as you can to see if it feels different ;)

Yeah, you did mentioned it! I've understood but I use a lot more of tweakings but not the graphic tweaking like transitions etc. pp. still my device feels a bit faster with your settings. Thanks again! I use 640 for readahead. I wish I could change the scheduler to noop because I have noop [ cfs ] and it seems to me the file is write-protected.

Alfred 2011-03-13 13:44

Re: Massive interactivity improvement under high I/O load!
 
Hello everybody! Thanks for another great changable stuff. I'm noob right here, so could You provide me with the number for these new fields, which would make my beast faster? i don't really copy a lot of files, so just for the system and stuff...
Thanks in advance


All times are GMT. The time now is 20:05.

vBulletin® Version 3.8.8