суббота, 14 апреля 2012 г.

making kubuntu use less memory

i run kubuntu on a 1gb ram netbook, and optimizing KDE memory usage is cruicial for me because i use this machine for development (kdevelop is a large beast, and i want to have chromium and gcc running as well). I'd like to share a few tips to achieve that.

1. sudo apt-get install kubuntu-low-fat-settings
2. if you don't need bluetooth: sudo apt-get purge bluez* bluedevil
3. sudo apt-get purge akonadi-backend-mysql mysql* (this will automatically install sqlite backend)
4. if you don't use activities: sudo rm /usr/share/kde4/services/kactivitymanagerd.desktop (i filled bug 298088 with request to make kactivitymanagerd ran only when really needed)
5. if you don't need akonadi: sudo rm /usr/share/autostart/akonaditray.desktop
6. if you don't use nepomuk (i.e. disabled it in systemsettings): sudo rm /usr/share/autostart/nepomukserver.desktop
7. sudo rm /usr/share/autostart/kaddressbookmigrator.desktop
8. if you don't use printer often: sudo rm /usr/share/autostart/printer-applet.desktop (you can still start this applet manually by issuing 'printer-applet' command in konsole)
9. sudo mv /etc/rc5.d/S50saned /etc/rc5.d/K50saned

(hint by Dave: instead of removing .desktop files, just do 'cp FILE ~/.kde/share/autostart && echo Hidden=true >> ~/.kde/share/autostart/FILE)

Currently my Kubuntu uses 222mb right after startup.

Also i'm investigating why the programs I really need (kmix, klipper, etc) are taking so much ram. first results showed that at least 4megs are used to store font data (allocated by qHBNewFace() call in src/gui/text/qfontengine_ft.cpp, and this is not shared across different processes!)

Please share any additional ideas on how to reduce memory footprint of KDE.

166 комментариев:

Dave комментирует...

Don't delete entries from /etc/xdg/autostart or /usr/share/autostart/

as soon you upgrade you'll just get them back and if you do decide you want to enable it you have a lot of hassle.

A cleaner solution is to copy the .desktop file into ~/.kde/share/autostart.

Then simply append "Hidden=true" to disable it. Alternately you can now load up systemsettings and the entries will now appear in "Autostart" and you can just click a checkbox to enable/disable them.

afiestas комментирует...

Is it really worth removing bluedevil? it together with bluetoothd use 2Mb here, did you have any problem ? (like bluedevil using handreds or something like that)

Nick Shaforostoff комментирует...

@afiestas: no real issues, just 'little here, little there'. is it worth keeping installed software that services device i don't have on a netbook? ;)

Ivan Čukić комментирует...

No point in removing activitymanagerrc. You can even screw up your plasma setup that way.

teho комментирует...

Wouldn't it be more neat to just disable the services you don't need from system settings?
-You can disable Nepomuk completely. -Akonadi doesn't start unless you use app that needs it.
-I have no idea why adressbook migrator would start on start up
-You could just remove the printer applet and disable the service.
-Bluedevil can also be disabled from the settings.

To reduce memory usage the first thing is to disable all services you don't need from KDE system settings and your distributions own settings utility. Then remove all the plasmoids and krunners you don't need. That way the minium memory usage would be around 130MB on start up on 32bit systemd (I tried it on Chakra).

If that isn't enough you could make your own startup script. That way you have complete control on what starts and what doesn't. If you start only KWin and plasma-desktop the memory usage is around 60-70MB on start up (including everythign else needed (kernel,X.org,ect).

Unknown комментирует...

I'm on a netbook (Arch Linux, KDE 4.8) too and I've no particular issues.
Maybe Kubuntu is launching too many unneeded services?

The system was responsive with 1gb (used it for almost a year) and, after I've increased the ram to 2gb, I didn't notice differences in KDE.

The only thing which annoys me is the startup screen which takes a lot of time: the system boots in less than 20 seconds but the KSplash screen takes another 20 seconds before getting me to the desktop.
Sure, there is space for optimization!

acidrums4 комментирует...

Jeez, this is russian!

You can use QtCurve to speed up things. Also, if you don't have this one, create a folder in your ~ directory called .compose-cache:

mkdir ~/.compose-cache

You will notice apps will start a little bit faster.

Kenneth Aar комментирует...

You can work aroundthelogin screen by making it auto login under systemsettings/Loginscreen/convenience and enabling autologin, and check off lock session... saves those 20 seconds. :-)

Vicky комментирует...

I took this form this Spanish blog http://parduslife.com/

1.Use another theme (plastique, qtcurve)
2 Change Kickoff or lancelot to the classic menu
3 Remoove krunner complements
4 Start an empty session
5 Don't start akonadi (in .config/akonadi/akonadiserverrc change to StartServer=false
6 Change plasma Notifications to a text notification
7 KdeDebugDialog ( chose what you feel it's necessary)

harry fall комментирует...

nice and interesting blog....we24support reviews
nice and interesting blog....we24support|tech support
nice and interesting blog....we24support|computer support
nice and interesting blog....we24support|we24support contact us

harry fall комментирует...

nice and interesting blog....we24support reviews
nice and interesting blog....we24support|tech support
nice and interesting blog....we24support|computer support
nice and interesting blog....we24support|we24support contact us

akon Satar комментирует...

I have been searching for hours and I haven’t found such awesome work.lastingimpressionsfoam.com

Berta Hargrove комментирует...

You completely duplication our mean and the difference of our information.
phlebotomy technician salary

butler bond комментирует...

Excellent Blog! I really admire your thinking and the way you have put these information in this post. Thanks for sharing an informative post.
Relationship with Ecco Tower Co

Jeffrey Ramsey комментирует...

Your site is for sure worth bookmarking. Vector Rope Advice

Jeffrey Ramsey комментирует...

Your articles are purely enough for me. Relationship Advice by Vector Rope

Raul Wint комментирует...

Recent times when net has so often gossip mongering and clog; your proportion really refreshes me.
Full Ruff Services Article

ALBERT LIET комментирует...

The author of your blogs and articles and contents is appreciating.
Ango U5 Tips|Ango U5 Website

Lucy gray комментирует...

I’m glad to locate so much of informative data in your blog.
online payday loans

Mike Tyson комментирует...

Amazing work pals, I really enjoy reading your interesting blogs.
online payday loan lenders

Dolph ziggler комментирует...

Amazing information in this blog here that is truly glancing over the every aspects of topic. http://greenstart.net/

pakar walker комментирует...

Your articles don’t beat about the bushes these are actually exact t to the purpose. Brock And Skelly Website

vey smith комментирует...

The Info in the blog is out of this world, I so want to read more. Leonardo Spencer Tips

Peggy Stoffel комментирует...

I’ll never ever miss the chance to read your new blogs. Glittering work guys!!
Camome Tips And Tricks

Micheal Clark комментирует...

I'd like to take the power of thanking you for that specialized guidance I've constantly enjoyed viewing your blog.Otgar Homepage

Nancey John комментирует...

Whether somebody pursuit of his vital thing, hence he or she desires to be accessible that at length, hence that thing is maintained over here.
accident claim

Iphonejailbreak4s комментирует...

The stuff in the blogs blows out my mind. cash advance payday loan

Cool boy комментирует...

This blog post is really great; the standard stuff of the post is genuinely amazing.
Direct Mail Service

Jony Willison комментирует...

The people not reading your blogs are missing out a lot of quality contents.

recover iPad notes

recover photos from iPad

Avocet Steel комментирует...

I have looked for so several posts about the blog lovers except this post is of course a nice one, keep on.
reclaim ppi

dadetao комментирует...

Your writings, articles, blogs I mean over all contents is must read matter

extract iPhone backup
iPhone data recovery

Victor Silva комментирует...

Your articles are really fit authorized and incomparable. mis sold ppi

Cecelia Smart комментирует...

I think I have never seen such blogs ever before that has complete things with all details which I want. So kindly update this ever for us. faxless payday loan

Victor Silva комментирует...

The information in this blog is extremely useful for the people. affordable whole life insurance

Micheal Hussey комментирует...

These articles have got absolute sense devoid of confusing the readers. here

Norman Seymour комментирует...

Your blogs are totally worth giving time and energy.
compensation claims

Keith lee комментирует...

I want to say thank to you people for this great and helpful info. Thanks!!! car ins

unsit polek комментирует...

I think I have never seen such blogs ever before that has complete things with all details which I want. So kindly update this ever for us. japanese technology

zwinky james комментирует...

The blog and data in this, is very good and informative also. Advice by Unity Funerals Service

lara steve комментирует...

I went over this website and I conceive you've got a large number of splendid information, counter visitors

Melinawatson комментирует...
Этот комментарий был удален автором.
Melinawatson комментирует...

There is no point in removing activity manager. You can even screw up your plasma setup that way, thanks for the post. http://www.hknightlifeescort.com/.

Seth Danks комментирует...

I beyond doubt appreciate your articles and blogs ppicalculator

Valentina Lilienthal комментирует...

I absolutely respect and appreciate your point on each and every object.
ppi reclaim

Valentina Lilienthal комментирует...

Your writers are enormously tremendous.
here

Leona james комментирует...

Your contents are progressing with days keep it up guys.
ppi compensation claims

Nancey John комментирует...

Never found such informative articles
Relationship with Boob Scam Exam

lucas kathy комментирует...

It’s a classic great for me to go to this blog site, it offers helpful suggestions Welcome to We Upgrade WP

Nancey John комментирует...

I absolutely respect and appreciate your point on each and every object.
More about Ho Spice of Stanns

zombia apocalypse комментирует...

How fine of you!!!! Really awesome efforts you have shown.
Go to DMC Seoul 2012

robin hood комментирует...

I love to read and appreciate your work.
Relationship with NY Vacations

lucas kathy комментирует...

I think this is the best blog I have been through all this day. Relationship Tips by Sin MW

Lindsey Messier комментирует...

Quality stuff may be the key to invite the users to visit begin to see the blog site, that’s what this site provides.
Click for Chi Tech Academy

lucas kathy комментирует...

Thanks guys, for sharing such informative data. Welcome to Maxells D

lucas kathy комментирует...

I really enjoy while I read your blogs and articles. Welcome to Number 1 Book Club

kofi kingston комментирует...

This is my very first time that I am visiting here and I’m truly pleasurable to see everything at one place.root android

saranya zinavo комментирует...

Hi, after reading this awesome article i am also cheerful to share my knowledge here with mates.
Responsive Web Design companies in india

Richard Sandberg комментирует...

Awesome blog! Now In anticipation of a follow-up ….pirater un compte facebook

Robert Jackson комментирует...

I admired your helpful words. Top class contribution. I really hope you’ll write more. I'll continue looking for. automobile insurance quotes

Samion Eric комментирует...

Enormous website along with attractive and exclusive materials whatever you need.
web counter

anjila smith комментирует...

An unbelievable blog. This blog will indisputably be definitely recommended to my friends as well. best productivity apps

Micheal Hussey комментирует...

Awe-inspiring blogs, I love reading your articles.
good infographics

Micheal Clark комментирует...

I am certain this article has touched all the web visitors; it’s very extremely lovely script.
social media infographics

Johney Duke комментирует...

The caliber of information that you're offering is merely wonderful.
infographic design

David Otunga комментирует...

I even have been getting a lot of helpful and informative material in your web site.
infographics design

anjila smith комментирует...

You people have actually provided the best blogs that are easy to understand for the folks. infographics design

Cm punk комментирует...

Thanks friends, for providing such enlightening data.infographic

Sir David комментирует...

I never ever read such type of info before this was really incredible.automobile insurance quote

Alisha Fox комментирует...

I'd like to take the power of thanking you for that specialized guidance I've constantly enjoyed viewing your blog.
payday loan cash advance

robin hood комментирует...

No wonder why you receive countless of feedbacks. good infographics

Pocha huntas комментирует...

Good blog along with the excellent quality stuff and I’m sure this will be greatly helpful.
whole life insurance quote

ALBERT LIET комментирует...

I have been dotty by reading your blog because it has a unique data. infographic

robin hood комментирует...

You guys allow it to be quite simple for all your folks available.infographic

Berta Hargrove комментирует...

Whether somebody pursuit of his vital thing, hence he or she desires to be accessible that at length, hence that thing is maintained over here.
a1c chart

Julie Johnson комментирует...

The information in this blog is extremely useful for the people. cheap car insurance

Feonacy Tyson комментирует...

Hey nice post man! Thanks for incredible info.
whole life insurance prices

stefhen fleming комментирует...

Congratulations guys, quality information you have given!!! auto insurance

Edythe Ortega комментирует...

Just saying thanks wouldn’t just be enough, for the fantastic fluency in your writing.
Ivy League tutors

sileena jad комментирует...

Best blogs huh… thanks to compile these; it actually helps me a lot.
learn german online for free

vey smith комментирует...

Having seen your blogs, I really enjoyed going through them.
online language tutor

jaky lon комментирует...

I believe this is actually the most useful blog I've been through this entire day.
kopipapir

anthony brabo комментирует...

Awesome work! That is quite appreciated. I hope you’ll get more success.
self directed gold ira plan

anthony brabo комментирует...

Awesome work! That is quite appreciated. I hope you’ll get more success.
self directed gold ira plan

BRAN SON комментирует...

Amazing blogs you have guys!! Keeps the ball rolling…..
website promotion

Ujiva Nelson комментирует...

This blog site has really a huge collection of articles with impressive information.
Dear Friday Website Design Art Mark Dixon Perth Western Australia

Mickey James комментирует...

I was pinning away for such type of blogs, thanks for posting this for us.
Photovoltaic

Sheamus Warior комментирует...

I admired your helpful words. Top class contribution. I really hope you’ll write more. I'll continue looking for.
payday advance

francis beth комментирует...

There is good collection of the articles with informative stuff.
payday loans

Zachary Rizzuto комментирует...

Hi guys, when I am actually willing of reading these blog post to be updated regularly. It offers fastidious stuff.automobile insurance rates

Phyllis Osborn комментирует...

I certainly appreciate your stuff provided in the blogs.
honda insurance rates

Alisha Fox комментирует...

Excellent quality articles are here. This is good site with useful info.
vodafone contact number

Aura Romano комментирует...

Wasp dudes! Amazing stuff continues the good work.
online payday loans

Alex Jones комментирует...

I'm certainly very happy to read this blog site posts which carries plenty of helpful data, thanks for providing such information. no medical exam life insurance

sirking комментирует...

Thanks friends, for providing such enlightening data.
best weight loss foods

Zachary Rizzuto комментирует...

This is actually a fantastic blogs! More of these details are superb -it is nice to see one that current.
visit us

Barbara amsel комментирует...

Thank you so much for such a great blog.
new homes

ALBERT LIET комментирует...

Your blogs and its stuff magnetize me to return again n again. North Carolina cash loans

David Otunga комментирует...

Every day I visit a number of blog sites to see content, however this offers quality based content.
soursop and cancer

Lucy gray комментирует...

Thumbs up guys you are really carrying out a great job.
pirater un compte facebook

Cory Fuller комментирует...

This article has some vast and valuable information about this subject.working tax credits telephone number

akon комментирует...

Thumbs up guys you are really carrying out a great job.
pirater un compte facebook

anjila smith комментирует...

These blogs are quite incredible that have provided the best knowledge. ACLS Certification

Gliter Jone комментирует...

congratulations guys, quality information you have given!!! comment pirater un compte facebook

Paula Lewis комментирует...

You people have actually provided the best blogs that are easy to understand for the folks. pirater un compte facebook

Victor Silva комментирует...

Hurrah, that’s what I was trying to get for, just what a stuff Presented at this blog!! Thanks admin of the site. lexington law

youpak комментирует...

The harvest is one of the great fun that can be done by many people. Everyone was very happy with the event smelling pleasure harvest. bubblegum casting

Gliter Jone комментирует...

You people have actually provided the best blogs that are easy to understand for the folks. life insurance rates

tina john комментирует...

I have been searching for hours and I haven’t found such awesome work. vietnam holiday

robin hood комментирует...

Your blogs and each of its stuff is so pleasurable and valuable it is making me come back soon.steam wallet hack

Dolph ziggler комментирует...

The blog is good enough I again n again read this.
anonymous vpn

Daniel Daniel Cronk комментирует...

I truly get pleasure from while I read your blogs and its content.
visit us

Mike tyson комментирует...

Awesome work! That is quite appreciated. I hope you’ll get more success.amazon.com/gp/product/B00GR0ESK0

thomas morrison комментирует...

Pretty! It was really a wonderful blog. Thanks for the provided information.
payday online loans

thomas morrison комментирует...

Pretty! It was really a wonderful blog. Thanks for the provided information.
payday online loans

Dolph ziggler комментирует...

Stupendous blog you guys have provided there, I will absolutely valuate your effort.bubblegum casting

sir kodak комментирует...

These articles and blogs are certainly sufficient for me personally for a day. criminal lawyer ny

Albert einstien комментирует...

Waooow!! Nice blog, this will be greatly helpful.

bubblegum casting reviews

saim disoza комментирует...

The individuals not reading your blogs stuff are missing out much qualitative contents.vietnam travel

saim disoza комментирует...

Your work article, blogs I mean over all contents is must read material.vietnam tour

saim disoza комментирует...

Fantastic work guys I’m a die-heart fan of your web site.vietnam holiday

Seth Danks комментирует...

The quality of your articles and contents is great. Read More

kalim kley комментирует...

There is good collection of the articles with informative stuff.

best credit repair

jorg chan комментирует...

Hey enormous stuff or pleasant information you are offering here.how to get a good job

Pocha huntas комментирует...

Wonderful, just what a blog it is! This blog has provided the helpful data to us continue the good work.
More Help

Angelina Jullie комментирует...

Your articles and contents are encouraging.
click here

Leena John комментирует...

I have been really impressed by going through this awesome blog.
best electric shaver reviews

Micheal Hussey комментирует...

This is a great post; it was very edifying. I look ahead in reading more of your work. Philips Norelco 1250X/42 Review

Swiss watches комментирует...

You have posted the blogs are really fantastic and informative.eating healthy

agen sbobet комментирует...

Well, I have got the best information from here the site is fully stuffed with the knowledgeable information. sky blue credit repair

Robert Jackson комментирует...

Definitely why you get thus several blog comments.
best home security company

Timon berg комментирует...

Keep the balls rolling!! Nice posts you have given for us.

best home security company

Carla Dillon комментирует...

I conclude, have selected a smart and surprising website with fascinating material. luxury Villas Marrakech

martin hussy комментирует...

The deep you dig into the topic and endow with us the perfect knowledge is appreciable. instant payday loands

Joseph Cauley комментирует...

Continue the good work; keep posting more n more n more. Remington FR-730 Review

sirking комментирует...

Thank you I am glad about the encouragement! I love your site, you post outstanding.Accident Claims No Win No Fee

jhon cena комментирует...

Personally I think overjoyed I discovered the blogs.book a apartment marrakech

Tomas Porter комментирует...

The deep you dig into the topic and endow with us the perfect knowledge is appreciable. Philips Norelco AT830

deny lost комментирует...

This info you provided in the blog that was really unique I love it!!! Cartilage Earrings

grady williams комментирует...

You guys out there are performing a great job. protect america security reviews

kent clark комментирует...

Thumbs up guys your doing a truly terrific job. best remington electric shavers

kent clark комментирует...

You make sense out of the most complex topics. social media infographics

kent clark комментирует...

I would simply say to you all “awesome information” best web 2.0 sites

90ououoi комментирует...

I would simply say to you all “awesome information” online password generator

Lisa John комментирует...

Interesting information I haven’t been through such information in a long time. playground markings

Melvin Gregor комментирует...

I know that this site has quality based content; I always enjoy reading your posts. top home security systems

Melvin Gregor комментирует...
Этот комментарий был удален автором.
thomas комментирует...

I almost visit this site, it’s just because your awe-inspiring blogs compel me to come again and again. Password Manager - LogmeOnce

Raul Wint комментирует...

That’s really extraordinary. I’ve not experienced whatever thing like that. hajj visa

Raul Wint комментирует...

That’s really extraordinary. I’ve not experienced whatever thing like that. hajj visa

Raul Wint комментирует...
Этот комментарий был удален автором.
Raul Wint комментирует...
Этот комментарий был удален автором.
Raul Wint комментирует...
Этот комментарий был удален автором.
ALBERT LIET комментирует...

You have actually made the good points here. I did lots of search on the same topic and didn’t find such informative blog like yours. umrah tours

zwinky james комментирует...

Awfully fast this website would be prominent amongst all the people, owing to its choosy content. best web 2.0 sites

zwinky james комментирует...

Awfully fast this website would be prominent amongst all the people, owing to its choosy content. best web 2.0 sites

Steve Jones комментирует...

I am surprised why other specialized don’t perceive your site I’m greatly cheerful I discovered this.payday loan

Kate Perry комментирует...

Keep the ball rolling you have done the great job here.payday loans

Angel Rio комментирует...

The gorgeous post learned a great deal Thanks greatly!payday loans in tennessee

Shane Saukazi комментирует...

I got this blog site through my friends and when I searched this really there were informative articles at the place.Stargames Book of Ra deluxe

Paula Lewis комментирует...

This blog posted at the website is really first-class. It made me happy. Health Insurance Orlando

Alex Jones комментирует...

Quite quick turn around, I love the posts!! Health Insurance Tallahassee

Alex Jones комментирует...

Quite quick turn around, I love the posts!! Health Insurance Tallahassee

Marta Roden комментирует...

Splendid information you have given here in the blog, you have actually impressed me yes!! Health Insurance Palm Bay

Marta Roden комментирует...

Splendid information you have given here in the blog, you have actually impressed me yes!! Health Insurance Palm Bay

Sandeep Jootoor комментирует...

SEO Company in Bangalore,Website Design Company in Bangalore: Best Web development and Web design company in Bangalore, India. Specialized in latest optimization technologies according to Search Engine Standards

SEO Company in Bangalore: SEO Features offers website design, website development, web portal development, and interactive design.

virginiais945 комментирует...

Responsive Web Design companies in india I'm a GNOME user mostly and have just recently started using KDE as my primary DE ( mostly because of GNOME3 and unity being terrible), so these tips help the KDE converters.