суббота, 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.

162 комментария:

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.

Анонимный комментирует...

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).

Federico Rampazzo комментирует...

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.

Анонимный комментирует...

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)

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

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

Анонимный комментирует...

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

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

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

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

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

Анонимный комментирует...

Your site is for sure worth bookmarking. Vector Rope Advice

Анонимный комментирует...

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

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

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

Анонимный комментирует...

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

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

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

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

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

Анонимный комментирует...

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

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

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

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

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

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

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

Анонимный комментирует...

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

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

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

Анонимный комментирует...

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

extract iPhone backup
iPhone data recovery

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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/.

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

I beyond doubt appreciate your articles and blogs ppicalculator

Анонимный комментирует...

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

Анонимный комментирует...

Your writers are enormously tremendous.
here

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

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

Анонимный комментирует...

Never found such informative articles
Relationship with Boob Scam Exam

Анонимный комментирует...

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

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

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

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

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

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

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

Анонимный комментирует...

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

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

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

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

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

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

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

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

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

Анонимный комментирует...

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

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

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

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

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

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

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

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

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

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

Thanks friends, for providing such enlightening data.infographic

Анонимный комментирует...

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

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

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

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

No wonder why you receive countless of feedbacks. good infographics

Анонимный комментирует...

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

Анонимный комментирует...

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

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

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

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

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

Анонимный комментирует...

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

Анонимный комментирует...

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

Анонимный комментирует...

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

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

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

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

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

Анонимный комментирует...

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

Анонимный комментирует...

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

Анонимный комментирует...

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

Анонимный комментирует...

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

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

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

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

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

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

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

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

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

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

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

Анонимный комментирует...

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

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

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

Анонимный комментирует...

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

2009 DREAM комментирует...

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

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

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

Анонимный комментирует...

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

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

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

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

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

Анонимный комментирует...

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

Анонимный комментирует...

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

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

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

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

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

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

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

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

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

Анонимный комментирует...

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

Анонимный комментирует...

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

Анонимный комментирует...

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

Анонимный комментирует...

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

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

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

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

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

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

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

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

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

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

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

Анонимный комментирует...

There is good collection of the articles with informative stuff.

best credit repair

Анонимный комментирует...

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

Анонимный комментирует...

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

Анонимный комментирует...

Your articles and contents are encouraging.
click here

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

Анонимный комментирует...

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

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

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

Анонимный комментирует...

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

best home security company

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

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

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

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

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

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

2009 DREAM комментирует...

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

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

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

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

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

Анонимный комментирует...

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

Анонимный комментирует...

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

Анонимный комментирует...

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

Анонимный комментирует...

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

Анонимный комментирует...

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

Анонимный комментирует...

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

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

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

Анонимный комментирует...

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Анонимный комментирует...

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

Анонимный комментирует...

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

Анонимный комментирует...

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

Анонимный комментирует...

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

Анонимный комментирует...

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.

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

This is my first visit to your blog.We are a team of few members starting a
new initiative in a community in the same niche.
Ecommerce App Development Company | Mobile App Development Company In India | Best Web Design Company India

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

Click to view
Click to view
Click to view
Click to view
Click to view
Click to view
Click to view
Click to view
Click to view
Click to view

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

Thanks for sharing this valubale information with us Keep Blogging !!
Digital Marketing Course in Vizag
Seo Training in vizag
Seo services in vizag
Digital Marketing Course in vijayawada
Digital Marketing Course in Guntur
Digital Marketing Course in Tirupati
Balloon Decoration in Vizag

Jack sparrow комментирует...


This post is really nice and informative. The explanation given is really comprehensive and informative.I want to share some information regarding the digital marketing course in vizag .Thank you

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

Great Article & Thanks for sharing.

What Is Mitron App & founder name.

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

If you do not find a futon mattress with the necessary flexibility, then go for a foam mattress instead. fleet manager

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

I did go through the article and would appreciate the efforts of the writer to share such an insightful and well-researched article.
Best School Management Software In India