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

MathNet.Numerics 4.15.0 high memory consumption Frobenius on Windows Docker linux container #1076

Open
jazzikowy opened this issue May 17, 2024 · 0 comments

Comments

@jazzikowy
Copy link

jazzikowy commented May 17, 2024

Hi,

I've observed that my builds are breaking with out of memory exception when I run them on Docker Linux containers. The code snippet below for 1st TestCase is throwing the out of memory exception consuming more than 41GB of memory during run (my container is configured to have 12GB memory limit but this operation shouldn't exceed 8MB) and runs for more than 2min. The second one works in 300ms and runs without any issue. Unfortunately I cannot update my package yet to 5.0.0 did someone experience similar issues? Was it fixed in newer version?

[TestCase(42737, 17)]
[TestCase(17, 42737)]
public void FrobeniusNormOfRandomMatrix(int rows, int columns)
{
    var testMatrix = (DenseMatrix)DenseMatrix.Build.Random(rows, columns, 42);
    var matrixCopy = testMatrix.Clone();

    (testMatrix - matrixCopy).FrobeniusNorm().ShouldBe(0.0, 1e-15);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant