Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
I am using this machine mainly for firmware/sw development, no gaming etc.
Issue:
1) happen sometime, after several time i compile a program in the same folder, compile operation start to become slow, at a point that become very slow, to give an idea, more than 5 times than normal good behavior.
If i copy the working folder in another HD location, (cp -a) things comes back quite normal.
2) after an apt-get update, apt-get updrade (jessie to stretch), so several files downloaded, installed, erased, etc, linux boot process become slow, about 2 time slower than normal.
3) Issue 1 and 2 generally don't resolve on a reboot.
Every help is really appreciated
Angelo
Last edited by _spectrum_; 05-27-2015 at 03:00 AM.
It's because of filesystem issue. Fragmentation plus filesystem directory management. For one you make a new directory each time for compilation and afterwards delete that one. For second if there is defrag program available, then run that.
no. As far as i know, linux ext4 works very different from FS where you need to defrag. In fact there is no defrag program becouse the file management is very different. I don't think it is a fs issue. I suspect an SSD issue.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Some things spring to mind. The first is that SSDs don't "fragment" like spinny disks so I would steer clear of trying to defragment. The second is that if a disk is set to trim in fstab this can, apparently, slow down file operations so trim should be run manuallly or via a cron job. If the file system is not mounted with the noatime or relatime option it ought to be as the constant writes when file access time is written can, apparently, also cause issues.
Sorry am using my phone so can't provide links but a quick google regarding the above should yeild decent resulsts.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.