1 |
On Friday, September 02, 2016 05:42:13 PM Dale wrote: |
2 |
> Mick wrote: |
3 |
> > On Thursday 01 Sep 2016 22:57:12 Kai Krakow wrote: |
4 |
> >> Regarding performance: |
5 |
> >> |
6 |
> >> I wish Linux had options to relocate files (not just defragment) back |
7 |
> >> into logical groups for nearby access. Fragmentation is less of a |
8 |
> >> problem, the bigger problem is data block dislocation over time due to |
9 |
> >> updates. In Windows, there's the wonderful tool MyDefrag which does |
10 |
> >> magic and puts your aging Windows installation back into a state of an |
11 |
> >> almost fresh installation by relocating files to sane positions. |
12 |
> >> |
13 |
> >> Is there anything similar for Linux? |
14 |
> > |
15 |
> > Dale will pop in soon to mention the defrag application he was running on |
16 |
> > reiserfs, but a potentially more effective defrag method irrespective of |
17 |
> > fs |
18 |
> > (we're talking about spinning disks where this issue applies) is tar |
19 |
> > off/tar on your data. |
20 |
> |
21 |
> Now someone is asking for me to post something. ROFL |
22 |
> |
23 |
> Script should be attached. Be forewarned, I have not used this script |
24 |
> in ages. I have no clue if it works or not or if it will totally screw |
25 |
> up anything and everything. I would recommend trying it on something |
26 |
> that doesn't matter or maybe a directory full of copied files to be |
27 |
> sure. If it hoses your system, it's not my script and you been warned. |
28 |
> I'm not even sure where I got it from. Might be the forums but could be |
29 |
> anywhere. |
30 |
> |
31 |
> By the way, I switched to ext4 and it has a defrag command of its own. |
32 |
> Just man e4defrag for details, assuming you have the ext utilities |
33 |
> package installed. That would be sys-fs/e2fsprogs by the way. I |
34 |
> *think* it works on ext3 as well but not sure. Everything here is ext4 |
35 |
> except /boot which is ext2. |
36 |
> |
37 |
> I guess this is the benefit of large hard drives. I don't have to |
38 |
> delete stuff even if I don't use it for a long time. lol |
39 |
> |
40 |
> Y'all have fun. |
41 |
|
42 |
How does that script work? |
43 |
From a quick look, it depends on some application called "filefrag". |
44 |
I can't seem to find that on my system. |
45 |
|
46 |
-- |
47 |
Joost |