question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Memory doesn't get freed up after changing reference

See original GitHub issue
df = dd.read_csv('s3://xx/*.csv')
e.persist(df) #first result persists in memory

df = dd.read_csv('s3://yy/*.csv')
e.persist(df)

the memory on the nodes grows and df now references to the new data.However, it appears that original df doesnt get cleared in the worker memory. Is this expected behavior?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
hussainsultancommented, Jun 14, 2016

I disconnected all my Clients but the memory doesnt get freed up all the way. I looked at the scheduler logs and it registers my client disconnect.

0reactions
mrocklincommented, Jun 14, 2016

If you’re interested in doing even more work, distributed/http/scheduler.py is easy to extend. The relevant state here is Scheduler.who_wants and Scheduler.wants_what.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is space not being freed from disk after deleting a file in ...
When deleting a large file or files, the file is deleted successfully but the size of the filesystem does not reflect the change....
Read more >
Memory held by the resources is not released even after ...
Hi, I created a WPF application with byte array, memory stream and ... holds a reference to the array so the array won't...
Read more >
Do Python dictionaries have all memory freed when ...
No, it will be freed AFTER the new object has been created. In order for the reference count to ...
Read more >
Clinging to memory: how Python function calls can increase ...
Solution #1: No local variable at all. If there's no extra reference, the original array can be removed from memory as soon as...
Read more >
Memory Management, C++ FAQ - Standard C++
In brief, conceptually malloc and new allocate from different heaps, so can't free or delete each other's memory. They also operate at different...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found