Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hey all, I'm having some poor graphics performance on a (2 year old) MacBook running Xubuntu 16.04. I'm mostly looking for debug ideas, since I doubt anything specifically I say will make anyone go "That's it!" Anyway, what's happening:
Basically, switching windows takes a long time. If I'm running two instances of Chrome, for example, if I try to switch between them (say, click the other instance at the top of the screen), the entire computer will slow down (mouse freeze-stop, freeze-stop, keyboard 10 s lag, etc) until that windows loads. Then, things work as normal. I get the same behavior when switching workspaces - which is very frustrating when the workspace I'm switching into has little more then a terminal and maybe emacs!
Programs I am commonly running: Chrome, terminal, emacs, evince
Programs I occasionally run: OpenShot, GIMP, Sage (Browser Interface)
For a while I thought it was Chrome + Google Drive doing it (since I often have ~7 tabs and two gmail accounts going on...), but switching to Chromium did not have any effect (trying Firefox now). The only real debug effort I've made is to run top and hit 'm' to sort by memory usage, which just showed Chrome using ~20-40% of memory and CPU during these lags.
Any thoughts on how to proceed?
INB4 "Throw away the Mac!": I would like nothing better, but this is what was given to me. Getting an actual operating system on it was already a concession....
There's also a graph at the end of the article showing memory usage with the desktops side by side in a bar graph.
This is a nice article, but doesn't exactly get the root of my question. I'm using Xubuntu, running XFCE, which is light, but not the lightest (in comparison with Unity or GNOME, for instance, as compared with JWM). This Mac is not legacy hardware or anything - it's just over two years old. I shouldn't need to count bytes on the WM to get even average performance.
Quote:
#
# View Modules that are part of the system config, but not in use.
# Last character in command (below) is a zero.
#
~]$ lsmod | grep -w 0
Next task is to prevent unused modules from loading. Your profile doesn't show distro. For RHEL flavors,
I appreciate this info and I'm looking into it - I am certainly loading quite a few modules I am not using. But my impression was that loaded but unused modules aren't that big a drag on system resources. Am I wrong about this? My guess was that I had some specific program causing these graphical lags, not just an overburdened system.
This is a nice article, but doesn't exactly get the root of my question. I'm using Xubuntu, running XFCE, which is light
I've found LXDE to be lighter than XFCE.
Quote:
Originally Posted by thethinker
I appreciate this info and I'm looking into it - I am certainly loading quite a few modules I am not using. But my impression was that loaded but unused modules aren't that big a drag on system resources.
Am I wrong about this? My guess was that I had some specific program causing these graphical lags, not just an overburdened system.
You're right. Theoretically, modules with a status of 0:00 are no load on the system.
My ref to /etc/sysconfig/modules (RHEL) was processes coming up at boot, such as sendmail, that you may not be using.
Not sure what else this tells us except some kind of build-in Intel chip, right?
All Macs have Intel integrated graphics. The command shows that at least hardware rendering seems to be enabled.
Also what HDD does it have (HDD or SSD)? Do you swap out?
When this happens check the 'top' command in a terminal and see it's headers 'KiB Swap:' line. If you have 'used' swap especially if you have a mechanical HDD you might have general responsiveness issues. Do you have slow media attached like usb drives? Do you have anything in dmesg?
Also what HDD does it have (HDD or SSD)? Do you swap out?
It's an HDD, made by Apple, 500 GB, SATA, 5400 rpm...anything else? If you mean "swap out" like disconnect and reconnect something like a USB drive, no, I do not.
Quote:
Originally Posted by gradinaruvasile
When this happens check the 'top' command in a terminal and see it's headers 'KiB Swap:' line. If you have 'used' swap especially if you have a mechanical HDD you might have general responsiveness issues. Do you have slow media attached like usb drives? Do you have anything in dmesg?
Could that be the problem? I've just got too many things running? Right now I have Firefox (with like 10 tabs, to be fair), couple instances of evince (one of which is large), some terminals, emacs, gnuplot...I don't really regard these as "resource intensive", but am I wrong?
As for "anything in dmesg", nothing that I recognize but I probably wouldn't recognize it anyway. There is a bunch of cfg80211 junk which I think is just our crappy wireless. There is this strange section:
This is interesting - would this depend on the OS, since I'm running Xubuntu? What kinds of things do you guys often suggest to help?
We recommend that users upgrade to a SSD (solid state drive) as opposed to a 5400rpm HDD. A faster drive will make your computer more responsive for any tasks involving drive access (including swap).
I think that you would also benefit from more RAM.
It's an HDD, made by Apple, 500 GB, SATA, 5400 rpm...anything else? If you mean "swap out" like disconnect and reconnect something like a USB drive, no, I do not.
I meant that the system exhausts the RAM memory and to keep running, writes down the less used memory parts into the swap partition. The problem is that sometimes the written down memory sometimes is actually needed and it has to be retrieved from the swap partition. Of course if memory is tight something else will be put there. And so on. Keep in mind that all this is extraneous housekeeping, you will stll have the normal i/o operation needs above this.
And since writing/reading is very slow on mechanical HDDs compared to RAM operations, the system slows down, becomes temporarily unresponsive until stuff gets straightened. Sometimes this will slow down the system to a crawl and unless you stop the most memory intensive programs it will choke the system (from human point of view, the computer can keep grinding the hdd for hours if you let it and dont get white hairs). SSDs being much faster both on single and multi threaded i/o operations will provide a much smoother experience because it can a magnitude better handle parallel writes/reads.
4 GB RAM as you have nowadays is not that good (i recently upgraded from 8 to 16 GB mainly because of Chrome's memory usage patterns). Actually lighter desktop environments will not save that much RAM as you might think.
Chromium based browsers are memory suckers because of their every-tab-a-process architecture (just open a "top" and order by process name to see your herd of Chrome processes - i tried to count them and usually had 5 GB or so). They recover memory better though compared to Firefox that uses less memory but if you open and close javascript-laden pages in it they usually still take up memory that just grows.
Truth is programs (mainly browsers) written nowadays expect lots of RAM.
So, if this is actualy your issue you would need at least 8 GB RAM and a ssd.
Last edited by gradinaruvasile; 10-13-2016 at 12:57 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.