[Bug 2111277] Re: "Hello world" dotnet program consumes an additional 128 MB of RSS memory

Dominik Viererbe 2111277 at bugs.launchpad.net
Tue Jul 8 09:16:37 UTC 2025


I can confirm the same for our .NET 8.0.17 runtime build compared to
Microsoft's build, but here I see an even smaller difference of < 1MB.

** Also affects: dotnet8 (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: dotnet8 (Ubuntu)
       Status: New => Confirmed

** Changed in: dotnet8 (Ubuntu)
   Importance: Undecided => Low

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to dotnet8 in Ubuntu.
https://bugs.launchpad.net/bugs/2111277

Title:
  "Hello world" dotnet program consumes an additional 128 MB of RSS
  memory

Status in dotnet8 package in Ubuntu:
  Confirmed
Status in dotnet9 package in Ubuntu:
  Confirmed

Bug description:
  steps to reproduce
  1. install dotnet-sdk-9.0
  2. create a hello world program
  3. compile and run 

  
  $ dotnet new console -o cs && cd cs && dotnet publish -c Release -o app

  $ cat Program.cs 
  // See https://aka.ms/new-console-template for more information
  Console.WriteLine("Hello, World!");

  $ /usr/bin/time /usr/bin/dotnet app/cs.dll
  Hello, World!
  0.08user 0.09system 0:00.17elapsed 99%CPU (0avgtext+0avgdata 162312maxresident)k
  0inputs+0outputs (0major+34719minor)pagefaults 0swaps

  $ dotnet --version
  9.0.106

  
  $ /usr/bin/time ~/apps/dotnet/dotnet app/cs.dll
  Hello, World!
  0.06user 0.02system 0:00.09elapsed 98%CPU (0avgtext+0avgdata 29540maxresident)k
  0inputs+0outputs (0major+1722minor)pagefaults 0swaps

  $ ~/apps/dotnet/dotnet --version
  9.0.203

  dotnet 8 was also affected.

  The sdk from https://dotnet.microsoft.com/en-us/download/dotnet/9.0
  works well.

  ProblemType: Bug
  DistroRelease: Ubuntu 25.04
  Package: dotnet-sdk-9.0 9.0.106-0ubuntu1~25.04.1
  ProcVersionSignature: Ubuntu 6.14.0-15.15-generic 6.14.0
  Uname: Linux 6.14.0-15-generic x86_64
  ApportVersion: 2.32.0-0ubuntu5
  Architecture: amd64
  CasperMD5CheckResult: pass
  CurrentDesktop: XFCE
  Date: Mon May 19 23:25:42 2025
  InstallationDate: Installed on 2025-04-19 (30 days ago)
  InstallationMedia: Xubuntu 25.04 "Plucky Puffin" - Release amd64 (20250415.3)
  ProcEnviron:
   LANG=en_US.UTF-8
   PATH=(custom, no user)
   SHELL=/bin/bash
   TERM=xterm-256color
   XDG_RUNTIME_DIR=<set>
  SourcePackage: dotnet9
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dotnet8/+bug/2111277/+subscriptions




More information about the foundations-bugs mailing list