09-05-2016, 04:43 PM
09-05-2016, 06:16 PM
There are varying opinions on the need to defrag Linux in normal desktop day to day usage, and only required for heavy duty servers/databases etc...
But to Check & Defrag your root /
To check & defrag /home
More details on e4defrag
But to Check & Defrag your root /
Code:
sudo e4defrag -c /
sudo e4defrag -v /
To check & defrag /home
Code:
sudo e4defrag -c /home
sudo e4defrag -v /home
More details on e4defrag
09-05-2016, 06:20 PM
Got an SSD?
Forget it for your own good.
Forget it for your own good.
09-05-2016, 07:05 PM
@richtea
You raise a good point, however:
1. Read/Write issues with the current(new) generation of technology removes this issue.
SSD are widely used now in data centres without issues where read/writes are many, many magnitudes greater than home users
2. Also the regular disks/spinners read/write sequentially, hence the need to keep everything aligned by defraging
SSD's work completely different, they have controllers that work with the random data placement, so defraging is less of an issue.
You raise a good point, however:
1. Read/Write issues with the current(new) generation of technology removes this issue.
SSD are widely used now in data centres without issues where read/writes are many, many magnitudes greater than home users
2. Also the regular disks/spinners read/write sequentially, hence the need to keep everything aligned by defraging
SSD's work completely different, they have controllers that work with the random data placement, so defraging is less of an issue.
09-06-2016, 11:14 AM
(09-05-2016, 06:16 PM)Wirezfree link Wrote: [ -> ]There are varying opinions on the need to defrag Linux in normal desktop day to day usage, and only required for heavy duty servers/databases etc...
But to Check & Defrag your root /
Code:sudo e4defrag -c /
sudo e4defrag -v /
To check & defrag /home
Code:sudo e4defrag -c /home
sudo e4defrag -v /home
More details on e4defrag
Hey man! Thanks! The reason I want to defrag it coz my laptop is getting slower, I don't have a lot of files. So, I'm hoping it could solve the problem.

09-06-2016, 12:30 PM
There is just one correct answer to:
Namely: "But why?"
Now we know:
Not a lot of files, so why fragmentation in particular should be the cause of a slowdown? It is more like trying to take a pot shot at the issue.
On Linux, generally, defragging is an exercise in futility. There are just two scenarios when it might have an effect:
1. Massive databases that are continuously amended.
2. HD packed to the gills with stuff.
Having used Linux OSs for some 15 years now, I have never, ever had to defrag. Frankly, I do not think there is much dissenting opinion on that.
(09-05-2016, 04:43 PM)then00b link Wrote: [ -> ]How can I defrag on this OS?
Namely: "But why?"
Now we know:
(09-06-2016, 11:14 AM)then00b link Wrote: [ -> ]I want to defrag it coz my laptop is getting slower, I don't have a lot of files. So, I'm hoping it could solve the problem.
Not a lot of files, so why fragmentation in particular should be the cause of a slowdown? It is more like trying to take a pot shot at the issue.
On Linux, generally, defragging is an exercise in futility. There are just two scenarios when it might have an effect:
1. Massive databases that are continuously amended.
2. HD packed to the gills with stuff.
Having used Linux OSs for some 15 years now, I have never, ever had to defrag. Frankly, I do not think there is much dissenting opinion on that.
09-06-2016, 01:08 PM
Agree with richtea, no point in defragging in linux, but if it gives you peace of mind then go for it.
Sent from my Nexus 6 using Tapatalk
Sent from my Nexus 6 using Tapatalk
09-06-2016, 02:03 PM
Just my plugged nickle and to maybe add help to then00b.... 
Defragging was the go to for Windows for PC slowness, usually; clear temps, cache, disk clean up and defrag...
You can also use "Lite Tweaks" to clean up/maintain the system similarly to disk clean up.. Anything marked safe is a no brainer; those marked caution are more so for specific fixes for problems so be mindful when selecting.
For slowness, maybe adding a bit more info; when are you noticing the slow down.. browsing, working with "XX" application or in general = boot up etc..
Along with system specs or the output of

Defragging was the go to for Windows for PC slowness, usually; clear temps, cache, disk clean up and defrag...
You can also use "Lite Tweaks" to clean up/maintain the system similarly to disk clean up.. Anything marked safe is a no brainer; those marked caution are more so for specific fixes for problems so be mindful when selecting.
For slowness, maybe adding a bit more info; when are you noticing the slow down.. browsing, working with "XX" application or in general = boot up etc..
Along with system specs or the output of
Code:
inxi -F
09-06-2016, 03:15 PM
(09-06-2016, 02:03 PM)firenice03 link Wrote: [ -> ]Just my plugged nickle and to maybe add help to then00b....
Defragging was the go to for Windows for PC slowness, usually; clear temps, cache, disk clean up and defrag...
You can also use "Lite Tweaks" to clean up/maintain the system similarly to disk clean up.. Anything marked safe is a no brainer; those marked caution are more so for specific fixes for problems so be mindful when selecting.
For slowness, maybe adding a bit more info; when are you noticing the slow down.. browsing, working with "XX" application or in general = boot up etc..
Along with system specs or the output of
Code:inxi -F
I've tried defrag already. Still the same, still lag.
Here's the specs:
System: Host: linuxlite-Aspire-5560 Kernel: 4.4.0-36-generic x86_64 (64 bit)
Desktop: Xfce 4.12.3 Distro: Ubuntu 16.04 xenial
Machine: System: Acer (portable) product: Aspire 5560 v: 0.1
Mobo: Acer model: Aspire 5560 v: A11
Bios: Phoenix v: V1.15 date: 12/05/2011
CPU: Quad core AMD A6-3420M APU with Radeon HD Graphics (-MCP-) cache: 4096 KB
clock speeds: max: 1500 MHz 1: 1200 MHz 2: 1200 MHz 3: 1400 MHz
4: 900 MHz
Graphics: Card: Advanced Micro Devices [AMD/ATI] BeaverCreek [Radeon HD 6520G]
Display Server: X.Org 1.18.3 drivers: ati,radeon (unloaded: fbdev,vesa)
Resolution: [email protected]
GLX Renderer: Gallium 0.4 on AMD SUMO (DRM 2.43.0, LLVM 3.8.0)
GLX Version: 3.0 Mesa 11.2.0
Audio: Card-1 Advanced Micro Devices [AMD] FCH Azalia Controller
driver: snd_hda_intel
Card-2 Advanced Micro Devices [AMD/ATI] BeaverCreek HDMI Audio [Radeon HD 6500D and 6400G-6600G series]
driver: snd_hda_intel
Sound: Advanced Linux Sound Architecture v: k4.4.0-36-generic
Network: Card-1: Broadcom NetLink BCM57785 Gigabit Ethernet PCIe driver: tg3
IF: p4p1 state: down
Card-2: Broadcom BCM43227 802.11b/g/n driver: wl
IF: wlp2s0 state: up
Drives: HDD Total Size: 500.1GB (3.7% used)
ID-1: /dev/sda model: Hitachi_HTS54505 size: 500.1GB
Partition: ID-1: / size: 455G used: 14G (4%) fs: ext4 dev: /dev/sda1
ID-2: swap-1 size: 3.73GB used: 0.01GB (0%) fs: swap dev: /dev/sda5
RAID: No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors: System Temperatures: cpu: 50.2C mobo: 43.0C gpu: 51.0
Fan Speeds (in rpm): cpu: N/A
Info: Processes: 207 Uptime: 4:21 Memory: 1723.5/3422.1MB
Client: Shell (bash) inxi: 2.2.35
http://askubuntu.com/questions/515126/ho...h-less-lag I've tried searching for solutions and I found this. What do you think?
09-06-2016, 04:49 PM
Your specs aren't that bad. You'd be better off upgrading to a cheap SSD. Your hard drive is pretty low spec.
Sent from my Nexus 6 using Tapatalk
Sent from my Nexus 6 using Tapatalk