You are not logged in.

#1 2005-12-29 21:51:28

Komodo
Member
From: Oxford, UK
Registered: 2005-11-03
Posts: 674

Pacman fragmentation

Here are a few questions about pacman fragmentation - I've been using Arch for about a year now (my 'joined on Nov 03' is cos I got my name changed tongue), and feel that it's time I should concern myself with this.

:?: What's the command to defragment?

:?: When people refer to 'pacman fragmentation', what exactly do they mean? Fragmentation of pacman's files on disk?

:?: Why is it a problem? I thought defragmentation became obsolete in recent years, due to hard drive speeds increasing so dramatically?


.oO Komodo Dave Oo.

Offline

#2 2005-12-29 22:20:40

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: Pacman fragmentation

1. pacman-optimize

2. They're referring to the spreading of the /var/lib/pacman directory across the disk, making access slower. Actual external fragmentation of files in /var/lib/pacman is very unlikely, given the nature of Linux filesystems.

3. Do an installation on a big FAT32 partition and tell me fragmentation is no longer a problem. wink

Offline

#3 2005-12-29 22:52:09

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Pacman fragmentation

Komodo wrote:

Why is it a problem? I thought defragmentation became obsolete in recent years, due to hard drive speeds increasing so dramatically?

Fragmentation of individual files is not a problem - the problem is that the pacman "database" consists of many many small files, which "fragment" - the term "fragmentation" when talking about the pacman database is a misnomer - it's not the same as disk fragmentation.

Offline

#4 2005-12-29 23:05:24

Komodo
Member
From: Oxford, UK
Registered: 2005-11-03
Posts: 674

Re: Pacman fragmentation

phrakture wrote:

the term "fragmentation" when talking about the pacman database is a misnomer - it's not the same as disk fragmentation.

That makes more sense to me phrakture, thanks.

GJ, I've always found it hard to believe that fragmentation wasn't a problem, but I'm (fortunate enough to be) taught by the leaders in the computer science field in the UK, and they all reckon it's no longer an issue...


.oO Komodo Dave Oo.

Offline

#5 2005-12-29 23:32:01

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: Pacman fragmentation

It's not much of an issue any more, but that's because of filesystem advances for the most part. Even on on Windows, NTFS makes fragmentation much less of and issue.

(There are some exceptions... Under certain conditions, XFS can get very fragmented, and ReiserFS can suffer some minor external fragmentation if you use tail packing. Also, Reiser4, wonder of wonders, seems to have a notable propensity for fragmenting.)

Offline

#6 2005-12-30 04:59:06

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: Pacman fragmentation

I feel that fragmentation will always be an issue given time and usage. You just can't ensure that data will always be written in any certain order and thus cannot be certain fragmentation will not occur.

I personally only worry about it in directories containing large numbers of files or large datasets that take ages to work with anyway. Maybe I'll quit caring about it when I can afford to upgrade to the newest, greatest hard disc technology (still using plain-ole IDE).

Offline

#7 2005-12-30 16:19:07

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Pacman fragmentation

As for ext filesystems, disc fragmentation should be at a constant 5-10%, that's just part of the way it works... there will always be some fragmentation.  However, the way ext works, the fragmentation doesn't affect the performance of the filesystem.

That said, the only time ext becomes bogged down due to fragmentation is when the filesystem is like 95% full, and you're constantly deleting and adding a decent percentage of the total space... this tends to happen on some high-usage production servers every so often.

Offline

#8 2005-12-30 16:37:18

Komodo
Member
From: Oxford, UK
Registered: 2005-11-03
Posts: 674

Re: Pacman fragmentation

phrakture wrote:

the only time ext becomes bogged down due to fragmentation is when the filesystem is like 95% full, and you're constantly deleting and adding a decent percentage of the total space... this tends to happen on some high-usage production servers every so often.

hmm, ok. I wish there was a decent resource for random hardware info like that; software info is abundant, but not detailed hardware info like that (ok, so I guess it's technically a software issue, but you know what i mean, i hope wink )


.oO Komodo Dave Oo.

Offline

#9 2005-12-30 16:58:41

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Pacman fragmentation

Komodo wrote:

hmm, ok. I wish there was a decent resource for random hardware info like that

Try these... google found 'em:
http://web.mit.edu/tytso/www/linux/ext2intro.html
http://uranus.it.swin.edu.au/~jn/explore2fs/es2fs.htm

Offline

#10 2005-12-30 17:05:19

Komodo
Member
From: Oxford, UK
Registered: 2005-11-03
Posts: 674

Re: Pacman fragmentation

phrakture wrote:
Komodo wrote:

hmm, ok. I wish there was a decent resource for random hardware info like that

Try these... google found 'em

Heh, appreciated phrakture, but I know how to use google. What I meant is, there doesn't seem to be a resource that's an amalgamation of useful hardware/low-level software info.


.oO Komodo Dave Oo.

Offline

Board footer

Powered by FluxBB