Git Product home page Git Product logo

Comments (10)

jermp avatar jermp commented on August 23, 2024

Hello, very strange.
I re-tested the library on:

  • my Mac (Catalina 10.15.2) with Boost-1.72.0 and Clang 11
  • a Linux machine (Ubuntu 19.10) with Boost-1.67.0 and gcc 9.2.1
    and everything works just fine...

from tongrams.

Razdeep avatar Razdeep commented on August 23, 2024

Could you please test it in a docker container?
I suspect that it is happening because of lesser RAM.

from tongrams.

Razdeep avatar Razdeep commented on August 23, 2024

It runs smoothly on my Mac too.
I also tried to run it on an AWS instance, getting the same runtime error there also.

from tongrams.

jermp avatar jermp commented on August 23, 2024

And what are the specifications of that AWS instance?

from tongrams.

Razdeep avatar Razdeep commented on August 23, 2024

I used an AWS Marketplace AMI Ubuntu 20.04.
I tried it on three instances m5ad.4xlarge, m5ad.2xlarge and m5.4xlarge.
These instances have around 8 GB to 16 GB of RAM. Please Refer to this page for details.

from tongrams.

jermp avatar jermp commented on August 23, 2024

If you give me access to one of those systems, I can investigate by myself.
But as long as there is not a way to reproduce the error, there is nothing I can do right now.

from tongrams.

Razdeep avatar Razdeep commented on August 23, 2024

I cannot post the credentials publicly here.
Shall I send an email containing the private key and IP Address?
Please accept my connection request on linkedin https://www.linkedin.com/in/razdeeproychowdhury/

from tongrams.

jermp avatar jermp commented on August 23, 2024

Sure, thanks.

from tongrams.

Razdeep avatar Razdeep commented on August 23, 2024

Please check your email inbox

from tongrams.

jermp avatar jermp commented on August 23, 2024

The problem is that

sysconf(_SC_PAGESIZE) * sysconf(_SC_PHYS_PAGES)

returns the physical memory of the machine, but the ram that is left available
for the system is often less.

So doing

grams_counts_pool unigrams_pool(available_ram * 0.8);

(which allocates a pool of 80% of the available ram) solves the problem.

from tongrams.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.