snap-stanford / snapvx

Other
65 stars 34 forks source link

Test running so slow #27

Closed jingmiao93 closed 7 years ago

jingmiao93 commented 7 years ago

When I follow the guidelines to run Tests "./test_basic.sh, it has been running hours and still running. Is it supposed to be this slow? Is there any way that I can speed up?

davidhallac commented 7 years ago

No, that should not be happening. Do you know what test you are getting stuck on? What does the terminal output look like?

jingmiao93 commented 7 years ago
screen shot 2016-11-19 at 4 58 55 am screen shot 2016-11-19 at 4 58 33 am

These are the kind of output I get by running the Test. It takes more than an hour to do a single test.

jingmiao93 commented 7 years ago

And the tests I am stuck on are those with "ok"s with space.

davidhallac commented 7 years ago

Hmm, that might be a threadlocking issue... Can you let us know what system you're running SnapVX on?

For now, if the tests are coming back OK, feel free to start using the software since it seems to have installed properly, but we will look into this and see if we can figure out why the units are so slow.

jingmiao93 commented 7 years ago

I am using Mac OS X El Capitian (10.11.4). But I found that my CPU memory (8GB) is probably full.... Here is a screenshot. Is it because the network runs super slow on swap?

screen shot 2016-11-19 at 4 26 39 pm
abhisg commented 7 years ago

Could you pull the latest patch and confirm that the tests are running seamlessly now ?

jingmiao93 commented 7 years ago

I just try to "import snapvx" in my Python 2.7, but it produces "Fatal Python error: PyThreadState_Get: no current thread". I can run the test cases in Tests (though slow) successfully. Is there a problem with my installation?

davidhallac commented 7 years ago

I think that error comes from Snap.py. See here for a troubleshooting guide for how to fix it: https://github.com/snap-stanford/snap/issues/88

Let us know if that fixes things. The SnapVX tests should run quickly if you pull the newest version on the github.