Re: [Evolution] High disk usage

2022-10-11 Thread Patrick O'Callaghan
On Tue, 2022-10-11 at 20:26 +0200, Pelle Windestam via evolution-list
wrote:
> > Hi,
> > can the received messages be large, like with some attachments or
> > inline images? Check size of those directories under ~/.cache/,
> > where
> > the folders.db files are stored. Then you can check the size of the
> > ~/.cache/evolution/http/, which is for the remote content, aka for
> > data
> > referenced remotely in HTML messages.
> > 
> > I cannot think of anything specific what would cause such writing.
> > Bye,
> > Milan
> > 
> > P.S.: by the way, Reply to List (Ctrl+L) works better for me on
> > this
> > list.
> 
> Not really, I rarely receive any large attachments. If there are any,
> they are
> typically pretty small PDF-files or similar. 
> 
> I located my folders.db files under ~/.cache/evolution and listed the
> size of
> the subdirectories in that location, and it was 12M for one account
> and 686 MB
> for the other. Currently evolution has written ~2GB since the last
> restart,
> which was just a few hours ago.
> 
> I do not have any ~/.cache/evolution/http directory. I have remote
> content
> disabled by default, perhaps that is why?
> 
> Very puzzling indeed. It would be nice to know exactly where all this
> data is
> written, but I do not suppose there is any existing way of doing just
> that.

ls -l /proc/$(pidof evolution)/fd

will show you every file Evo has open (many of which are sockets)

There is a way to get "live" feedback on file activity using strace,
but it's fairly hackish, e.g.

strace -p $(pidof evolution) --trace=desc|grep write

gives a flood of info which may not be that useful without decoding.

There's probably a way to use inotify to watch Evo's output, but it
would require some study to get right. And of course running under a
debugger is another option. 

> Thanks for the CTRL-L trick, I will try that (using it now!).

Not a trick but the standard way to reply on lists. You can also click
on the Group Reply button, which will Do The Right Thing (Ctrl-L can't
always be used when the message you reply to wasn't sent via reply-to-
list).

poc
___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] High disk usage

2022-10-11 Thread Pelle Windestam via evolution-list
> Hi,
> can the received messages be large, like with some attachments or
> inline images? Check size of those directories under ~/.cache/, where
> the folders.db files are stored. Then you can check the size of the
> ~/.cache/evolution/http/, which is for the remote content, aka for data
> referenced remotely in HTML messages.
> 
> I cannot think of anything specific what would cause such writing.
> Bye,
> Milan
> 
> P.S.: by the way, Reply to List (Ctrl+L) works better for me on this
> list.

Not really, I rarely receive any large attachments. If there are any, they are
typically pretty small PDF-files or similar. 

I located my folders.db files under ~/.cache/evolution and listed the size of
the subdirectories in that location, and it was 12M for one account and 686 MB
for the other. Currently evolution has written ~2GB since the last restart,
which was just a few hours ago.

I do not have any ~/.cache/evolution/http directory. I have remote content
disabled by default, perhaps that is why?

Very puzzling indeed. It would be nice to know exactly where all this data is
written, but I do not suppose there is any existing way of doing just that.

Thanks for the CTRL-L trick, I will try that (using it now!).

//Pelle
___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] High disk usage

2022-10-11 Thread Milan Crha via evolution-list
On Tue, 2022-10-11 at 12:57 +0200, Pelle Windestam wrote:
> So nothing huge here. Evolution is still writing a lot of data, maybe
> 10 minutes after startup it has already written about 110 MB. 

Hi,
can the received messages be large, like with some attachments or
inline images? Check size of those directories under ~/.cache/, where
the folders.db files are stored. Then you can check the size of the
~/.cache/evolution/http/, which is for the remote content, aka for data
referenced remotely in HTML messages.

I cannot think of anything specific what would cause such writing.
Bye,
Milan

P.S.: by the way, Reply to List (Ctrl+L) works better for me on this
list.

___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] High disk usage

2022-10-11 Thread Pelle Windestam via evolution-list
On Tue, 2022-10-11 at 06:39 +0200, Milan Crha via evolution-list wrote:
> On Mon, 2022-10-10 at 20:04 +0200, Pelle Windestam via evolution-list
> wrote:
> > Could the fact that there are lots of e-mails there be causing this? 
> 
> Hi,
> there is a folders.db file, which contains an information about the
> messages in all the folders for each account. This information is used
> in the message list, apart of other things. That's an SQLite database,
> I do not think they override the whole file, definitely not for me, at
> least according to [1]. My largest folders.db file has 232M.
> 
> Apart of the folders.db file there are respective messages stored,
> those which you opened. For folders marked for offline synchronization
> those messages, which had been downloaded. Once the message is
> downloaded, it's not re-saved, the cached file is used.
> 
> Bye,
> Milan
> 
> [1] $ cat /proc/`pidof evolution`/io
>     rchar: 3004641844
>     wchar: 43846998
>     syscr: 914029
>     syscw: 112992
>     read_bytes: 323649536
>     write_bytes: 5922816
>     cancelled_write_bytes: 0
> 
> ___
> evolution-list mailing list
> evolution-list@gnome.org
> To change your list options or unsubscribe, visit ...
> https://mail.gnome.org/mailman/listinfo/evolution-list

These are my folders.db files under ~

$ find . -name folders.db | xargs du -h
3,7M
./.cache/evolution/mail/847a0198a63c0b6b4b037e4b714cb91938896155/folders.db
11M ./.cache/evolution/mail/c3ff02a3a11ecce072da7e16bbd5b885dfb8aebd/folde
rs.db
72K ./.local/share/evolution/mail/local/folders.db
4,0K./.local/share/evolution/mail/vfolder/folders.db

So nothing huge here. Evolution is still writing a lot of data, maybe 10
minutes after startup it has already written about 110 MB. 

$ cat /proc/`pidof evolution`/io
rchar: 122878766
wchar: 195699649
syscr: 233711
syscw: 203037
read_bytes: 4096
write_bytes: 112295936
cancelled_write_bytes: 12288

Quite mysterious this whole business. I shall try disabling one of my accounts
and see if that makes any difference.

//Pelle

___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list