K
K
Kirill Zhilyaev2018-10-13 10:56:13
C++ / C#
Kirill Zhilyaev, 2018-10-13 10:56:13

Why does one program on Windows and Ubuntu use different amounts of memory?

There is a program with source codes. On Windows, the heap profiler shows an average result of 50MB (maximum is 300). On Ubuntu top - virtual -> 1.2 GB, resident average - 200mb, maximum - 500 (from OOM Killer logs). Why is that?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Artem @Jump, 2018-10-13
curated by the

There can't be the same program for different operating systems - even if you build them from different sources.

V
Vapaamies, 2018-10-15
@vapaamies

There is a suggestion that the heap manager in your Windows compiler's standard library is more advanced than the one under Ubuntu. It is even possible that this is the price of "freedom" of software.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question