How to calculate the memory usage ?

Open
#607 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
csharp, docker
Domain
api, devops

Research direction

Start with GetContainerStatsAsync and the progress response's MemoryStats.Usage value, then compare its fields with the memory value reported by docker stats. Determine whether total_cache or another field accounts for the discrepancy; the issue provides no file or test to run, so completion would require documenting or correcting the calculation.

Written by the indexing model from the issue text.

Description

Hi, using GetContainerStatsAsync and in the progress response MemoryStats.Usage i doesn't end with a value approaching what is seen by docker stats.

Should i remove from this the total_cache value and something else ?

Dominant language
C#
Stars
2.4k
Forks
416
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dotnet/Docker.DotNet

All issues in dotnet/Docker.DotNet

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.