Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Documentation, Tips & Tricks
  • Search

Laptop/Workstation, battery-runtime/throughput Goodness

Unofficial documentation for various parts of Gentoo Linux. Note: This is not a support forum.
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
kernelOfTruth
Watchman
Watchman
User avatar
Posts: 6111
Joined: Tue Dec 20, 2005 10:34 pm
Location: Vienna, Austria; Germany; hello world :)
Contact:
Contact kernelOfTruth
Website

Laptop/Workstation, battery-runtime/throughput Goodness

  • Quote

Post by kernelOfTruth » Fri Feb 08, 2008 9:32 pm

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: Select all

#!/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: Select all

#!/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: Select all

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: Select all

 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
Last edited by kernelOfTruth on Sun Feb 17, 2008 10:23 am, edited 7 times in total.
https://github.com/kernelOfTruth/ZFS-fo ... scCD-4.9.0
https://github.com/kernelOfTruth/pulsea ... zer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Top
Dottout
l33t
l33t
User avatar
Posts: 882
Joined: Tue Mar 07, 2006 6:38 pm

  • Quote

Post by Dottout » Sat Feb 09, 2008 6:41 pm

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.
Top
kernelOfTruth
Watchman
Watchman
User avatar
Posts: 6111
Joined: Tue Dec 20, 2005 10:34 pm
Location: Vienna, Austria; Germany; hello world :)
Contact:
Contact kernelOfTruth
Website

  • Quote

Post by kernelOfTruth » Sat Feb 09, 2008 9:44 pm

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-fo ... scCD-4.9.0
https://github.com/kernelOfTruth/pulsea ... zer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Top
kernelOfTruth
Watchman
Watchman
User avatar
Posts: 6111
Joined: Tue Dec 20, 2005 10:34 pm
Location: Vienna, Austria; Germany; hello world :)
Contact:
Contact kernelOfTruth
Website

  • Quote

Post by kernelOfTruth » Sun Feb 10, 2008 6:26 pm

update:

added the links which I used / googled up so far ...
https://github.com/kernelOfTruth/ZFS-fo ... scCD-4.9.0
https://github.com/kernelOfTruth/pulsea ... zer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Top
kernelOfTruth
Watchman
Watchman
User avatar
Posts: 6111
Joined: Tue Dec 20, 2005 10:34 pm
Location: Vienna, Austria; Germany; hello world :)
Contact:
Contact kernelOfTruth
Website

  • Quote

Post by kernelOfTruth » Sun Feb 17, 2008 10:25 am

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-fo ... scCD-4.9.0
https://github.com/kernelOfTruth/pulsea ... zer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Top
micr0c0sm
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 148
Joined: Sat Oct 29, 2005 9:36 pm
Location: New York
Contact:
Contact micr0c0sm
Website

  • Quote

Post by micr0c0sm » Wed Feb 20, 2008 2:34 am

I would be more apt to mess around if you were idling some irc channel and/or could explain how to bench these.
Top
Post Reply

6 posts • Page 1 of 1

Return to “Documentation, Tips & Tricks”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic