Skip to content

[WIP] clean memoy on miner shutdown#1885

Open
psychocrypt wants to merge 3 commits intofireice-uk:devfrom
psychocrypt:topic-cleanMemoryOnShutdown
Open

[WIP] clean memoy on miner shutdown#1885
psychocrypt wants to merge 3 commits intofireice-uk:devfrom
psychocrypt:topic-cleanMemoryOnShutdown

Conversation

@psychocrypt
Copy link
Collaborator

  • free host and device memory on shutdown
  • catch exceptions and try to do a clean shutdown (free mem)
  • add key q to close the miner
  • handle signals e.g. CTRL+C

solve #1880

- free host and device memory on shutdown
- catch exeptions and try to do a clean shurdown (free mem)
- add key `q` to close the miner
HAndle signals to close the miner
@psychocrypt psychocrypt force-pushed the topic-cleanMemoryOnShutdown branch from bbb5b0e to 22a7ce9 Compare October 10, 2018 11:54

void executor::shutdown()
{
// if shutdown is called the first time
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are calling this from different threads. bQuit needs to be atomic. pvThreads is not safe. Use signals instead and wait conditions instead of calls and busy waiting.

@psychocrypt
Copy link
Collaborator Author

psychocrypt commented Oct 10, 2018 via email

@fireice-uk
Copy link
Owner

@psychocrypt psychocrypt changed the title clean memoy on miner shutdown [WIP] clean memoy on miner shutdown Feb 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants