apoorvalal / ivDiag

IV diagnostics package accompanying Lal, Lockhart, Xu, and Zu (2023).
https://arxiv.org/abs/2303.11399
Other
8 stars 4 forks source link

Orphaned processes #11

Closed kjohnsen closed 3 months ago

kjohnsen commented 3 months ago

I'm using v1.0.6 on WSL Ubuntu-22.04 and am getting big leaks in memory and CPU (after running, RAM and CPU usage remains high on a system monitor). Looks like it's something to do with the parallelization code, since it doesn't happen when I run bootstrap=FALSE.

To reproduce:

library(ivDiag)
g <- ivDiag(data=rueda, Y='e_vote_buying', D='lm_pob_mesa', Z='lz_pob_mesa_f', nboots=100, parallel=FALSE)

observe high RAM/CPU in monitor like htop