LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-27-2015, 02:58 AM   #1
_spectrum_
Member
 
Registered: Jun 2009
Posts: 36

Rep: Reputation: 5
Slow compiling and slow boot operations


Dear all,

i have the following machine:

i3770k(no overclock), z77 based MB, 16GB sdram, primary hd:OCZ Vertex SSD
OS: Debian "stretch"

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.
 
Old 05-27-2015, 03:57 AM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
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.
 
Old 05-27-2015, 04:23 AM   #3
_spectrum_
Member
 
Registered: Jun 2009
Posts: 36

Original Poster
Rep: Reputation: 5
Hi veerian,

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.
 
Old 05-27-2015, 04:32 AM   #4
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Read this page on ext4.
 
Old 05-27-2015, 04:38 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,041

Rep: Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348
what will df tell (how much free space do you have)?
 
Old 05-27-2015, 11:43 AM   #6
_spectrum_
Member
 
Registered: Jun 2009
Posts: 36

Original Poster
Rep: Reputation: 5
Hi,

ok i viewed ext4 page, and seen there is anyway a defrag tool. I will try it.

$ df
File system 1K-blocchi Usati Disponib. Uso Montato su
/dev/dm-1 221001452 52416580 157335620 25% /
udev 10240 0 10240 0% /dev
tmpfs 3309804 9512 3300292 1% /run
tmpfs 8274508 0 8274508 0% /dev/shm
tmpfs 5120 4 5116 1% /run/lock
tmpfs 8274508 0 8274508 0% /sys/fs/cgroup
/dev/sda1 240972 36048 192483 16% /boot
tmpfs 1654904 4 1654900 1% /run/user/1000
/dev/sdh1 516040 8204 481624 2% /media/angelo/BOOT

About the SSD, i already have noatime on fstab, and done "fstrim /" already. No changes.
 
Old 05-27-2015, 09:21 PM   #7
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
So your root filesystem has ample space. It uses only 25 of block device space. So the slowness problem is not due to low filesystem space.
 
Old 05-28-2015, 02:11 AM   #8
_spectrum_
Member
 
Registered: Jun 2009
Posts: 36

Original Poster
Rep: Reputation: 5
Thanks for the help.

My suspect is about the SSD. Maybe this OCZ Vertex is not so robust. But i don't know how to prove this.
 
Old 05-28-2015, 02:44 AM   #9
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Very slow copying on SSD and HDD - slow IO operations firedrake Linux - General 33 09-02-2014 01:18 PM
Slow read/write operations on 3592 drive Joejr4u Linux - Hardware 2 03-17-2008 05:25 AM
Suse 9.2 & SATA - Slow, Slow, Slow jess1975 SUSE / openSUSE 6 01-28-2007 12:17 PM
slow to boot, slow dns resolution after host name change FC5 edavis6678 Linux - Newbie 3 01-03-2007 06:26 PM
New Fedora Internet connection slow slow slow matrim Fedora 9 07-29-2005 01:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration