Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Laptop/Workstation, battery-runtime/throughput Goodness
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Fri Feb 08, 2008 9:32 pm    Post subject: Laptop/Workstation, battery-runtime/throughput Goodness Reply with quote

Hi there,

I collected together some settings for the VFS & harddrive-tweaking,

could you please test it & say if it improves battery runtime for you / improves throughput during data copying
(I've taken some of those from ubuntuforums, wikis, and several other places: kudos to all of your "tuners" out there :)

/proc/sys/vm/mapped <-- is the opposite of /proc/sys/vm/swappiness == mapped -> 100-swapped (ck-patchset / zen-sources specific)

# enhancing battery runtime (you may need to run sync manually for data safety's sake)
Code:
#!/bin/bash
# Tweak virtual memory to conserve power when running on batteries.

echo 100 > /proc/sys/vm/mapped
echo 0 > /proc/sys/vm/dirty_expire_centisecs
echo 0 > /proc/sys/vm/dirty_writeback_centisecs
echo 60 > /proc/sys/vm/dirty_background_ratio
echo 95 > /proc/sys/vm/dirty_ratio
echo 40 > /proc/sys/vm/vfs_cache_pressure

for i in /sys/class/scsi_host/host*; do
         /bin/echo "min_power" >  $i/link_power_management_policy
done


# optimizing vfs for desktop/server-performance:
Code:
#!/bin/bash
# Tweak virtual memory for running on AC.

echo 66 > /proc/sys/vm/mapped
echo 3000 > /proc/sys/vm/dirty_expire_centisecs
echo 3000  > /proc/sys/vm/dirty_writeback_centisecs
echo 10   > /proc/sys/vm/dirty_background_ratio
echo 95   > /proc/sys/vm/dirty_ratio
echo 100000 > /proc/sys/vm/vfs_cache_pressure

for i in /sys/class/scsi_host/host*; do
         /bin/echo "max_power" >  $i/link_power_management_policy
done



# general tweaking:
Code:
for i in /sys/block/sd*; do
         /bin/echo "256" >  $i/queue/read_ahead_kb
done

for i in /sys/block/sd*; do
         /bin/echo "anticipatory" >  $i/queue/scheduler
done

## seems to be set dynamically, at least for me
#for i in /sys/block/sd*; do
#         /bin/echo "256" >  $i/queue/nr_requests
# done



best results are achieved with zen-sources and reiser4 + cryptcompress (lzo1) (
Code:
 mkfs.reiser4 -o create=ccreg40,compress=lzo1 /dev/foo
)

Thanks in advance for your feedback :)

this post will be updated to reflect the changes in performance I experience.
I'll also add the addresses I stumble upon so that you can put together your ultimate tweaking / performance settings.

please share those with the community and post them here :idea:
Thanks in advance :)

References / Links:

throughput:
Extreme Linux Performance Monitoring and Tuning 1.0 Tuning ...
Reduced Power Usage (wiki.ubuntu.com)
Intel G33, Q35 and Q33 Chipsets
kernel tuning
lrz Munich (linux computing center Munich)
linux ata faq
searchenterpriselinux.techtarget.com tip
raid optimization

responsiveness:
Tales from responsivenessland: why Linux feels slow, and how to fix that
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D


Last edited by kernelOfTruth on Sun Feb 17, 2008 10:23 am; edited 7 times in total
Back to top
View user's profile Send private message
Dottout
l33t
l33t


Joined: 07 Mar 2006
Posts: 882

PostPosted: Sat Feb 09, 2008 6:41 pm    Post subject: Reply with quote

edit: sorry, I posted here by mistake, I was dealing with too many firefox tabs :D so, I moved my patch to the right 3d

Last edited by Dottout on Sun Feb 10, 2008 7:41 pm; edited 1 time in total
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sat Feb 09, 2008 9:44 pm    Post subject: Reply with quote

I'm no zen-sources maintainer, so please post it in the zen-sources thread, or better: file a bug on zen-sources' bugzilla :idea:
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sun Feb 10, 2008 6:26 pm    Post subject: Reply with quote

update:

added the links which I used / googled up so far ...
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sun Feb 17, 2008 10:25 am    Post subject: Reply with quote

reverted & updated some really pessimistic settings, now it's good again

NOTE: these settings are meant for "normal" laptops and desktops (without raid controllers, for those you need to find the optimal settings yourself since I don't have / use any)

no one tried them out ? :o :cry:

how are they working out for you?
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
micr0c0sm
Tux's lil' helper
Tux's lil' helper


Joined: 29 Oct 2005
Posts: 148
Location: New York

PostPosted: Wed Feb 20, 2008 2:34 am    Post subject: Reply with quote

I would be more apt to mess around if you were idling some irc channel and/or could explain how to bench these.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum