Skip to content
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

Core dump due to "out of host memory" #35

Closed
kevin1kevin1k opened this issue Dec 30, 2017 · 2 comments
Closed

Core dump due to "out of host memory" #35

kevin1kevin1k opened this issue Dec 30, 2017 · 2 comments
Assignees
Labels

Comments

@kevin1kevin1k
Copy link

Hi,

I just ran ./thundersvm-train /tmp2/b03902086/data/news20.binary on a workstation machine, and resulted in the following:

2017-12-31 02:14:28,273 INFO [default] training start
.
2017-12-31 02:14:51,947 INFO [default] rho = -0
2017-12-31 02:14:51,947 INFO [default] #sv = 1024
2017-12-31 02:14:52,008 INFO [default] #total unique sv = 1024
2017-12-31 02:15:06,078 FATAL [default] out of host memory
2017-12-31 02:15:06,079 WARNING [default] Aborting application. Reason: Fatal log at [/home/student/03/b03902086/thundersvm/src/thundersvm/thundersvm-train.cpp:90]
Aborted (core dumped)

The machine has 70G memory, and the dataset news20 is just 134M large.
Is there anything I miss?
Thanks in advance!

@shijiashuai
Copy link
Collaborator

shijiashuai commented Dec 31, 2017

try ./thundersvm-train -c 4 -g 0.5 /tmp2/b03902086/data/news20.binary

It's a bug here anyway. The default gamma was not been set successfully (so it was 0), and then error occurred.

"out of host memory" comes from the default batch size (10000) of prediction after training. Since news20 has high dimension (1,355,191), 10000 * 1355191 is too large.

  • fix default gamma bug
  • auto set prediction batch size

shijiashuai added a commit that referenced this issue Dec 31, 2017
@kevin1kevin1k
Copy link
Author

kevin1kevin1k commented Dec 31, 2017

Thanks for your quick reply and fixes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants