[Dovecot] flat file in tmpfs for dict quota
I'm using dict quota like so:
quota = dict:User quota::file:/[path]/quotas/%u
[path]/quotas/ is a tmpfs.
The idea is to do less work on disk. Other than forcing dovecot to rebuild quotas on a reboot, are there any downsides?
Thanks, Ken
-- Ken Anderson Pacific Internet - http://www.pacific.net
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Thu, 27 Jun 2013, Ken A wrote:
I'm using dict quota like so:
quota = dict:User quota::file:/[path]/quotas/%u
[path]/quotas/ is a tmpfs.
The idea is to do less work on disk. Other than forcing dovecot to rebuild quotas on a reboot, are there any downsides?
I would say no, but to recalc the quota file might be more difficult that you think, make sure no logins or deliveries or automatic scripts change the content of the mail storage.
Regards,
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBUdLaGl3r2wJMiz2NAQI43QgApVYnrUwp7bUNlPPvYIKhl+3H/5PcZHBX hLysrAEKN96Zx7kMFwmpNvfk0UIiAN9ON1n8F9OjJNTpmgsp8+VkDgn7BaKFHsWT BfJBYbxsiDwRk8tl3UJY/sdA/sReyZZpOttPJB+Rk37warF/W40BSzyS/+gWosJW /T9ptJwZixVQTLd0jQnjlZhC83ssRHiEBer49dXKmfdxQA3U8cTaRObHbd/eJV25 0blwBIlW8ueuGqwNEk6e/ja2nT1wvZwkzTvxAwnSLquj2DYwkNLd6DvfXXXoE1FN LBVMYHvJ3Yk2AkONytTpjbP+JyjSwWnyeI+NfTDmlQYp44XQ1+DkBw== =3ubQ -----END PGP SIGNATURE-----
On 7/2/2013 8:48 AM, Steffen Kaiser wrote:
On Thu, 27 Jun 2013, Ken A wrote:
I'm using dict quota like so:
quota = dict:User quota::file:/[path]/quotas/%u
[path]/quotas/ is a tmpfs.
The idea is to do less work on disk. Other than forcing dovecot to rebuild quotas on a reboot, are there any downsides?
I would say no, but to recalc the quota file might be more difficult that you think, make sure no logins or deliveries or automatic scripts change the content of the mail storage.
The quota files are per mailbox, and are created when the user logs in or LDA touches a mailbox. Most mailboxes are < 1GB. Dovecot seems to handle it very quickly. Thanks, Ken Anderson
Regards,
-- Steffen Kaiser
-- Ken Anderson Pacific Internet - http://www.pacific.net
On 27.6.2013, at 19.44, Ken A ka@pacific.net wrote:
I'm using dict quota like so:
quota = dict:User quota::file:/[path]/quotas/%u
[path]/quotas/ is a tmpfs.
The idea is to do less work on disk.
There are no fsync() or fdatasync() calls to quota files. Ideally if the system had enough memory and the disk IO wasn't used up all the time, it wouldn't waste any time on unnecessary disk writes. Now, whether the current OSes worked that way I don't really know.. I think there are quite a lot of settings for that though. Placing quota files (and maybe indexes) on a different mount point would allow changing such settings.
participants (3)
-
Ken A
-
Steffen Kaiser
-
Timo Sirainen