-
Notifications
You must be signed in to change notification settings - Fork 215
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
PoS initialization / SmesherService does not work properly (got stuck?) #4288
Comments
@brusherru actually the smeshing can be stopped when batch is finished. When batch is in progress then you cannot stop it (that's how gpu-post works) What GPU was used for the test? Cc @piersy |
@brusherru were you able to check that with smaller batch size? Does it behave better then? |
On my machine using a smaller batch size is fixing this. I used the smallest batch size of 8 and smeshing seemed to stop almost immediately. @pigmej I suggest closing in favour of spacemeshos/post#125 |
yes makes sense :) |
Description
If you run the Node with valid smeshing opts in the node config (aka it will start smeshing on run) and you don't have a PoS data yet — then your Node will start generating it. However, it won't respond on
SmesherService.StopSmeshing
(and keep sending youPostSetupStateStream
updates, withPostStatus === In_progress
).Such behavior makes Smapp GUI looks like "it is not responding". For example, if you click on "Pause smeshing" or "Delete PoS data" buttons (actually both of them calls
SmesherService.StopSmeshing
with a differentdeleteFiles
flag).Another symptom is that if you try to close the Node it will be ending the process for too long (Smapp kills it by timeout)...
Steps to reproduce
~/post
numLabelsWritten
, but it should contain it. So it might be a clue :)numLabelsWritten
, and my PoS file jumps from zero bytes to 16.8 MB :)Interesting moment, that if you repeat everything, but set
smeshing-start: false
on the second step, and then callStartSmeshing
with the same opts — everything will work well (but I'm not sure it is actually generating PoS). Let's call it a "workaround" just for reference :)MAYBE it is happening because I'm using CPU as PoS data provider (go-spacemesh is constantly using about 99-103% CPU on my machine).
Actual Behavior
SmesherService.StopSmeshing
does nothingnumLabelsWritten
inPostSetupStateStream
Expected Behavior
StopSmeshing
stops it at any time or at least reacts well (and stops sending "Progress" state)Environment
Please complete the following information:
Additional resources
Application logs (while it "stuck"):
Application logs (how it should be, got it using "workaround" described above):
The text was updated successfully, but these errors were encountered: