filecoin-saturn / L1-node

Filecoin Saturn L1 Node • The edge cache layer of Filecoin's decentralized CDN 🪐
Other
140 stars 50 forks source link

Revert "renice lassie" #382

Closed DiegoRBaquero closed 1 year ago

DiegoRBaquero commented 1 year ago

Reverts filecoin-saturn/L1-node#372

juliangruber commented 1 year ago

why was this reverted?

DiegoRBaquero commented 1 year ago

Given that Lassie is single process, we want to allow Lassie to consume as much CPU as it can without being re-scheduled by its nice priority. It was giving funky CPU distribution values.

Before: %Cpu(s): 6.8 us, 6.3 sy, 82.6 ni, 1.4 id, 0.1 wa, 0.0 hi, 2.9 si, 0.0 st After: %Cpu(s): 86.5 us, 6.6 sy, 0.0 ni, 3.8 id, 0.0 wa, 0.0 hi, 3.1 si, 0.0 st

It also spiked timeouts, because all the cache miss will have a hard time discovering peers and fetching content as the process is choked, under CPU constraints.

juliangruber commented 1 year ago

Got it, thank you!