unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* "notmuch compact" questions
@ 2023-06-17 21:33 Andy Smith
  2023-06-18  6:57 ` David Bremner
  2023-06-18 11:36 ` Michael J Gruber
  0 siblings, 2 replies; 5+ messages in thread
From: Andy Smith @ 2023-06-17 21:33 UTC (permalink / raw)
  To: notmuch

Hi,

I'm using v0.31.4 on Debian 11. I have ~3.9 million messages in my
archive and the notmuch database currently takes up 85GiB (though
actually "only" 51GiB due to btrfs zstd:1 compression).

I did remove a few hundred thousand messages from my archive but the
space used by the database did not go down at all.

If I ran "notmuch compact" should I expect any space to be
reclaimed?

The manual page says that this builds a new copy of the database and
then switches them over. Does that imply that I will need nearly the
same amount of space again to perform the compact, until it finishes
and the old database is discarded?

The manual page says that the new database is built "in a temporary
directory". Where is that directory exactly? Is it inside the
current notmuch database directory or is it in $TMPDIR? I ask
because it looks like I'll need to make sure that there about 50GiB
of space available wherever that is.

I'm aware that this procedure is going to take a really really long
time. If my machine should crash, or the notmuch process runs out of
memory or something, will my database be left in a functional state?
If I have to reindex it, that is going to take even longer, so I
have to think about how much I want what is probably a very marginal
amount of space back!

Thanks,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-06-21  6:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-17 21:33 "notmuch compact" questions Andy Smith
2023-06-18  6:57 ` David Bremner
2023-06-18 11:36 ` Michael J Gruber
2023-06-18 14:36   ` Andy Smith
2023-06-19  6:51     ` Carl Worth

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).