Skip to contentSkip to conversation

is quotacheck fast with xfs?

DISCUSSION Louis-David Mitterrand 3 participants 4 messages Oct 5, 2006 – Oct 7, 2006

lore
Share & tools
lore
#0 lore raw

Hello,

We have a 500GB mail server with 200 users presently with reiserfs. At boot time quotacheck takes close to one hour.

Would quotacheck be faster on xfs?

Thanks,

#1 lore raw
Quoted 7 lines · Louis-David Mitterrand

Hello,

We have a 500GB mail server with 200 users presently with reiserfs. At boot time quotacheck takes close to one hour.

Would quotacheck be faster on xfs?

Yes, typically - XFS uses its internal "bulkstat" code to speed up the inode scanning process (and it only needs to be done once, on the initial mount, and then XFS "remembers" that the check has been done, for subsequent mounts and it journals all updates to the quota files), whereas the userspace quotacheck(1) program is filesystem independent (IIRC) and doesn't implement such optimisations.

FWIW, quotacheck time is a function of the number of inodes in the filesystem, not the number of users.

cheers.

Signature · 1 line
Nathan
#2 lore raw
Quoted 14 lines · Nathan Scott
Quoted 5 lines · Louis-David Mitterrand

We have a 500GB mail server with 200 users presently with reiserfs. At boot time quotacheck takes close to one hour.

Would quotacheck be faster on xfs?

Yes, typically - XFS uses its internal "bulkstat" code to speed up the inode scanning process (and it only needs to be done once, on the initial mount, and then XFS "remembers" that the check has been done, for subsequent mounts and it journals all updates to the quota files), whereas the userspace quotacheck(1) program is filesystem independent (IIRC) and doesn't implement such optimisations.

Quoted 2 lines

FWIW, quotacheck time is a function of the number of inodes in the filesystem, not the number of users.

What you are saying is that userspace quotacheck is not needed with xfs (or only once)?

#3 lore raw
Quoted 2 lines · Louis-David Mitterrand

What you are saying is that userspace quotacheck is not needed with xfs (or only once)?

there is no userspace quata check, it's done in the kernel

userspace tells the kernel it needs to mount with quotas, if there were none before it will rebuild the quata database