Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
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.
Hi, relative newbie to Linux (running Mint 17) & fairly lightweight. All of the utilities I've found for looking at disk usage are all painfully slow (presumably use the same underlying commands?) - taking 10, maybe 20 minutes to display my disk. On Windows, SequoiaView takes 30-60 seconds to analyse the disk. Is this normal?
In case it affects this, I'm dual booting W7 on a 320gb HDD & Linux on a separate 70gb HDD.
I don't know about other programs, but ncdu scans the disk of my fileserver (about 1TB used on a 2TB disk, about 80,000 files) in under 20 seconds.
Thanks. I'm looking into it. As mentioned, I'm a bit lightweight with Linux & trying to work out how to navigate to the system disk... I'm not sure that it is working as I can't get it to scan or abort, in fact it seems totally unresponsive. I'll leave it for half an hour to see if it is the same as the others.
Ta
Which utilities (GUI presumably) ? What filesystems (NTFS, FAT, ext4, xfs ... ?)
Hi, Not entirely sure I understand the question: utilities tried? Disk Usage Analyser, Graphical Disk Map even KDirStat (before I understood the implications of adding KDE programs to Gnome.)
FS of Linux disk is ext4
FS of 320gb Storage disk is NTFS (original W7 disk) This latter is mounted through the Media directory which may be sub-optimal but I haven't managed/got round to mount it in a more useful way yet.
Ta
That's what I was asking - Disk Usage Analyser is baobab, a gnome utility. It's slow, but not as bad as you are seeing. That's ridiculous. Post the output from this (in a terminal) to see if the Linux disk is ok (you may have to install smartmontools)
Code:
sudo smartctl -AH /dev/sda
Don't worry about the /media mounts - Ubuntu (hence Mint) do that by default - it's fine.
Looks ok - dunno what's the problem. Try this as well - and wrap [code] .... [/code] tags around any output you post to preserve formatting (go back and edit that last post pls)
Hmmm - that's starting to look more interesting - ignore the first line of numbers. The numbers don't line up properly (not your fault), but the interesting ones are under "in" (interrupts) and "cs" (context switches - switching from userspace to kernelspace or vice-versa).
Way too high - I'd say you have some hardware not properly seated (cables, disk), or more likely a dodgy driver. Very hard to track down.
Hmmm - that's starting to look more interesting - ignore the first line of numbers. The numbers don't line up properly (not your fault), but the interesting ones are under "in" (interrupts) and "cs" (context switches - switching from userspace to kernelspace or vice-versa).
Way too high - I'd say you have some hardware not properly seated (cables, disk), or more likely a dodgy driver. Very hard to track down.
Thanks - that is a useful insight - what sort of values would you expect? Could this cause random momentary pauses in the system?
I've now also got the way paved for my SSD install so I'll reseat everything whilst I'm in there.
Entirely dependent on machine, kernel, workload. But say divide your interrupt counts by 10, and "cs" say double that number. See the problem ?.
It could certainly affect things - interrupts run higher priority than kernel threads. And context switch stops whatever is doing the switch. Just bad all round. Try another (mates ?) machine and check.
While this thread is not a new one, i thought it was worth writing a response to it
to format vmstat in a nicer way try vmstat 1 10 -w
its worth noting the first line of the vmstat output provides a summary since boot,
& in the information supplied there is no information on uptime.
So trying to decide what is "normal" behavior needs to be seen in the context of
1)whats happening on the machine in question (backups/heavy read/writes)
2)how long the server has been up
and in my opinion you should dig a lot deeper than looking at 20 (vmstat 2 10 will run vmstat 10 times every 2 seconds, 10*2 =20) seconds worth of info from vmstat before replacing/buying new hardware. You also need to check the slowness actually happens when context switches are high and is quick when they are low.
Needless to say installing a new disk would have required a reboot and new updates i.e kernel could have been applied.
There is so much troubleshooting which could be done using sar/checking ps/checking crons/checking dmesg/.... (for more reading check out google searches for things like brendan gregg 60 second analysis)
Without clearly understanding the cause there is no guaranty buying new/installing hardware will solve the issue and stop it reoccurring.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.