Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

notflix eating ram #19

Open
Etaash-mathamsetty opened this issue Jan 2, 2022 · 8 comments
Open

notflix eating ram #19

Etaash-mathamsetty opened this issue Jan 2, 2022 · 8 comments

Comments

@Etaash-mathamsetty
Copy link

Etaash-mathamsetty commented Jan 2, 2022

image

this was after running notflix, hogged 3-5 gb of ram after running and closing it. I am still clueless on how to free the ram.

@PRESFIL
Copy link

PRESFIL commented Jan 2, 2022

notflix creates temporary directory in /tmp for WebTorrent. It can be deleted,
but it would be nice to make a cli switch that enables auto-deletion upon notflix
exits. Not all users have terabytes of RAM.

@Etaash-mathamsetty
Copy link
Author

notflix creates temporary directory in /tmp for WebTorrent. It can be deleted, but it would be nice to make a cli switch that enables auto-deletion upon notflix exits. Not all users have terabytes of RAM.

thanks, I can write some cleanup code at the end of the shellscript now

@Etaash-mathamsetty
Copy link
Author

ok so adding rm -dRf /tmp/webtorrent at the end of the file is the fix :D

@phodina
Copy link

phodina commented Jan 6, 2022

Well, better way would be to use trap to call this function on exit and place this call at the top of the script. I can write the MR

trap "rm -dRf /tmp/webtorrent" EXIT

@Etaash-mathamsetty
Copy link
Author

Well, better way would be to use trap to call this function on exit and place this call at the top of the script. I can write the MR

trap "rm -dRf /tmp/webtorrent" EXIT

yeah that's better, since if i ctrl-c then the files won't be delted

@PRESFIL
Copy link

PRESFIL commented Jan 9, 2022

Do you want under-downloaded files to hang in memory? Something more
reliable can be used:

trap "rm -dRf /temp/webtorrent" SIGINT SIGTERM ERR EXIT

(from nyaa)

In any case, it may be worth reconsidering the decision to store temporary files
in /tmp/. nyaa downloads everything to the $HOME/Downloads/ directory.

@Monjurul-Hasan-Sohan
Copy link

Is it

/temp/webtorrent
or
/tmp/webtorrent

@Etaash-mathamsetty
Copy link
Author

Etaash-mathamsetty commented Feb 20, 2022

Is it

/temp/webtorrent
or
/tmp/webtorrent

99% sure it is
/tmp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants