Giter VIP home page Giter VIP logo

Comments (5)

inkydragon avatar inkydragon commented on June 20, 2024

"Virtual memory used by Julia"

Where did this data come from?
Does this refer to the "Virtual Size" in Process Explorer?

I have 32GB of physical memory.
Windows seems to allocate 2~3TB of virtual memory space for Edge.
Maybe Edge has a much bigger problem than julia?

image

Maybe related: Unreasonably huge process virtual memory size reported by Process Explorer

from julia.

oscardssmith avatar oscardssmith commented on June 20, 2024

In general, virtual memory isn't really meaningful (at least on 64 bit systems). You have roughly infinite address space, available, so as long as you don't bring the memory into resident memory, it's all fairly imaginary.

from julia.

kemege avatar kemege commented on June 20, 2024

"Virtual memory used by Julia"

Where did this data come from? Does this refer to the "Virtual Size" in Process Explorer?

I have 32GB of physical memory. Windows seems to allocate 2~3TB of virtual memory space for Edge. Maybe Edge has a much bigger problem than julia?

image

Maybe related: Unreasonably huge process virtual memory size reported by Process Explorer

No, it's actually the Private Bytes in Process Explorer, which is about 300MB in the screenshot of Edge. In addition, my workstation was initially configured to have total virtual memory of about 32GB, running a few instances of Julia in parallel will result in errors like "Cannot load xxx.dll due to insufficient virtual memory" (I cannot remember the exact message, but it's something like that). After raising the maximum limit of virtual memory to 1TiB, now I can open about 64 instances in parallel without actually doing any calculation.
So I think in my case, Julia seems to use too much virtual memory as soon as it starts up, and uses up the virtual memory at a very fast rate.

In general, virtual memory isn't really meaningful (at least on 64 bit systems). You have roughly infinite address space, available, so as long as you don't bring the memory into resident memory, it's all fairly imaginary.

Within a specific amount (like tens or hundreds of GB), I do agree that virtual memory is not a problem. However, for some unknown reason, on my workstation, the amount of virtual memory is extremely large and prevents other programs (including other instances of Julia) from running.

By the way, is there any way to know how the virtual memory is being used, so that I might be able to compare the usage on both systems, and see what might be wrong?

from julia.

giordano avatar giordano commented on June 20, 2024

What if you set the environment variable OPENBLAS_NUM_THREADS=1 before starting julia? Does that change anything?

from julia.

kemege avatar kemege commented on June 20, 2024

What if you set the environment variable OPENBLAS_NUM_THREADS=1 before starting julia? Does that change anything?

It works! The amount of used virtual memory has decreased to about 180MB.

After trying some different values of OPENBLAS_NUM_THREADS, it seems that even setting it to 256 (number of logical cores in the Workstation) cannot replicate the usage of 17GB virtual memory, but I think that might be another issue for openBLAS, instead of Julia.

OPENBLAS_NUM_THREADS Claimed virtual memory (~MB)
1 186
2 318
4 581
8 1106
16 2157
32 4259
64 8462
128 8462
256 8462
No value 18670

Anyway, the problem has been solved, thanks to all you people for helping me with this!

from julia.

Related Issues (20)

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.