You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Clean client history/memory without restarting the client #2340
Looking to #2328, is there a way to clean (wipe) client history without using client.restart() ?
With many workers (280 in my case) I always get a timeout error from workers when calling client.restart()
It also takes a (very) long time to initiate all workers so it would be nice to be able to avoid it.
Thus, it could be very useful if there was a way to clean the informations stored by the client without restarting it. At least a workaround ?
On Wed, Nov 7, 2018 at 12:58 PM frederic nouguier ***@***.***> wrote:
Looking to #2328 <#2328>, is
there a way to clean (wipe) client history without using client.restart() ?
With many workers (280 in my case) I always get a timeout error from
workers when calling client.restart()
It also takes a (very) long time to initiate all workers so it would be
nice to be able to avoid it.
Thus, it could be very useful if there was a way to clean the informations
stored by the client without restarting it. At least a workaround ?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2340>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AASszE-O7urdeOkWTnrJIoNKeOX_XPxvks5usx9ggaJpZM4YS8E9>
.
Not so easy to look into, but I'll give a try.
After some other tests it seems that even doing client.restart() do not clean client and/or scheduler "history".
Do you know where "history" is stored in the client and/or the scheduler object ?
Any chance that this issue is be linked to #1866 ?
After doing some calculation and erasing all variables that contains the results, the memory used by the process running the client, do not come back to its initial level. Closing totally the client and restarting a new client make the memory come back to its inital level. I thus suspect that some information (that I call "history") is strored in some way by the client and/or the scheduler.
For instance, in #2253 you mentioned that some Bokeh task stream is kept available even after restarting the client.
So, I'm looking a way to make the client/scheduler coming back to the initial stage (at least in terms of used memory) without having to totally kill the client and restart a new one.
There is certainly plenty of state in both, but there aren't many
particularly long unbounded historical data structures. Those that do
exist hold small amounts of data (like log messages). I don't think that
they are likely candidates to identify memory leaks.
On Thu, Nov 8, 2018 at 11:39 AM frederic nouguier ***@***.***> wrote:
After doing some calculation and erasing all variables that contains the
results, the memory used by the process running the client, do not come
back to its initial level. Closing totally the client and restarting a new
client make the memory come back to its inital level. I thus suspect that
some information (that I call "history") is strored in some way by the
client and/or the scheduler.
For instance, in #2253 <#2253>
you mentioned that some Bokeh task stream is kept available even after
restarting the client.
So, I'm looking a way to make the client/scheduler coming back to the
initial stage (at least in terms of used memory) without having to totally
kill the client and restart a new one.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2340 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AASszKxArJl2KvHg-kqdjI6gkO370QpBks5utF5NgaJpZM4YS8E9>
.
But of course I could be wrong and encourage you to investigate things here.
On Thu, Nov 8, 2018 at 11:44 AM Matthew Rocklin <[email protected]>
wrote:
There is certainly plenty of state in both, but there aren't many
particularly long unbounded historical data structures. Those that do
exist hold small amounts of data (like log messages). I don't think that
they are likely candidates to identify memory leaks.
On Thu, Nov 8, 2018 at 11:39 AM frederic nouguier <
***@***.***> wrote:
> After doing some calculation and erasing all variables that contains the
> results, the memory used by the process running the client, do not come
> back to its initial level. Closing totally the client and restarting a new
> client make the memory come back to its inital level. I thus suspect that
> some information (that I call "history") is strored in some way by the
> client and/or the scheduler.
> For instance, in #2253 <#2253>
> you mentioned that some Bokeh task stream is kept available even after
> restarting the client.
>
> So, I'm looking a way to make the client/scheduler coming back to the
> initial stage (at least in terms of used memory) without having to totally
> kill the client and restart a new one.
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#2340 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AASszKxArJl2KvHg-kqdjI6gkO370QpBks5utF5NgaJpZM4YS8E9>
> .
>
I will look into that but I wonder if this little amounts of data can not become huge when having large number of workers.
On the HPC I have, I usually use 560 workers (20 nodes with 28 cpus/process each). Only starting the workers takes more than 10 minutes... I set up the timeout limit to 15 minutes in order to have the first worker still running when the last one is ready.
I recommend looking at scheduler.py and grepping for `self.*log`
The ten minute startup time sounds like it's probably something else. My
first guess would be a backed up queue or a file system bogged down by
Python imports, but that's another issue, and my guess is that it's
unrelated to Dask. You might consider contacting your system
administrators.
Activity
mrocklin commentedon Nov 7, 2018
lanougue commentedon Nov 8, 2018
Not so easy to look into, but I'll give a try.
After some other tests it seems that even doing client.restart() do not clean client and/or scheduler "history".
Do you know where "history" is stored in the client and/or the scheduler object ?
Any chance that this issue is be linked to #1866 ?
mrocklin commentedon Nov 8, 2018
lanougue commentedon Nov 8, 2018
After doing some calculation and erasing all variables that contains the results, the memory used by the process running the client, do not come back to its initial level. Closing totally the client and restarting a new client make the memory come back to its inital level. I thus suspect that some information (that I call "history") is strored in some way by the client and/or the scheduler.
For instance, in #2253 you mentioned that some Bokeh task stream is kept available even after restarting the client.
So, I'm looking a way to make the client/scheduler coming back to the initial stage (at least in terms of used memory) without having to totally kill the client and restart a new one.
mrocklin commentedon Nov 8, 2018
mrocklin commentedon Nov 8, 2018
lanougue commentedon Nov 8, 2018
I will look into that but I wonder if this little amounts of data can not become huge when having large number of workers.
On the HPC I have, I usually use 560 workers (20 nodes with 28 cpus/process each). Only starting the workers takes more than 10 minutes... I set up the timeout limit to 15 minutes in order to have the first worker still running when the last one is ready.
lanougue commentedon Nov 8, 2018
Any idea where these logs messages are stored ?
mrocklin commentedon Nov 8, 2018
lanougue commentedon Nov 8, 2018
Thanks a lot,
I will report back later on both issues...
lanougue commentedon Dec 12, 2018
I finally found that my problem of memory is a hardware problem on the HPC I use. I close this issue for now.