Giter Site home page Giter Site logo

Comments (5)

mrdavidlaing avatar mrdavidlaing commented on September 23, 2024

Using cloudfoundry-community/builder-mono I've compiled mono 3.2.3.

See

https://ci-labs-buildpack-downloads.s3.amazonaws.com/mono/lucid/x86_64/index.yml

I have a test version of the buildpack at https://github.com/mrdavidlaing/.net-buildpack

@nterry - could you give it a whirl and let me know if you encounter any issues.

from .net-buildpack.

mrdavidlaing avatar mrdavidlaing commented on September 23, 2024

@nterry Do you think the .net-buildpack should be running Mono using the new --server flag?

New server focused flag. Run mono with --server to tell the runtime to target performance. With this release, this means an aggressive threadpool scheduler that creates additional threads faster.

Do you have any idea what the --server flag does to memory usage? (given that memory is the "scarce resource" for a CF user.)

from .net-buildpack.

nterry avatar nterry commented on September 23, 2024

I believe that --server uses a lower memory footprint. Im not sure how, but it may force the new SGen GC to help. I definitely think that the --server flag should be set.

from .net-buildpack.

mrdavidlaing avatar mrdavidlaing commented on September 23, 2024

@nterry - I don't have much evidence, but in my simple tests the --server flag seems to use 40% less memory, which is brilliant for the CF use case.

Concerning Boehm vs SGen - I compile mono without the Boehm GC to help keep the download smaller. See https://github.com/cloudfoundry-community/builder-mono/blob/master/remote-build-3.rb#L49 for the full build script I'm using.

(Updates & suggestions on how to build mono much appreciated; I can't claim to be much of an expert).

Anyway, #22 now includes the --server flag, and will be merged shortly.

from .net-buildpack.

mrdavidlaing avatar mrdavidlaing commented on September 23, 2024

Hmm - after leaving my test app running for an hour, the memory usage has climbed back to close to previous levels. Definitely not a degradation then; but perhaps not quite the miracle memory usage cure either :)

That being said, Mono seems very memory efficient, especially compared to something like Java!

from .net-buildpack.

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.