有关Windows内存的问题 [英] a problem about windows memory

查看:57
本文介绍了有关Windows内存的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


对不起,我的英语不好!


我发现内存有问题。在一个函数中,我在
之前购买了比

更多的内存,理论上是4.5625Kb。然后我通过命令ps观看了Linux中函数的内存大小和/或
Unix。经过与早期记忆的比较

这个没有变化的功能,我发现增加的尺寸是不同的
!在Linux和Unix中

的大小约为4Kb,但在Windows中,从任务管理器观察的大小是比bbb更多




有谁可以帮我解释一下这个现象吗?

Hi everyone,

I am sorry, my english is not good!

I found a problem about memory. In a function I malloced more memory than
before
that is 4.5625Kb in theory. Then I watched the memory size of the function
in Linux and
Unix through the command of "ps". After comparing with the early memory
size of
the function which didn''t have change, I found the increaseded size was
different! In Linux and Unix
the size is about 4Kb, but in windows the size watched from task manager is
far more
than 4Kb.

can anyone help me and explain the phenomenon,please?

推荐答案

richi写道:
richi wrote:

大家好,


对不起,我的英文不好!


我发现了一个关于记忆的问题。在一个函数中,我比在理论上为4.5625Kb之前提供了更多的内存

。然后我通过命令ps观察了Linux中

函数的内存大小和

Unix。经过与早期记忆的比较

这个没有变化的功能,我发现增加的尺寸是不同的
!在Linux和Unix中

的大小约为4Kb,但在Windows中,从任务管理器看到的大小

远比4Kb多b $ b。 br />

任何人都可以帮助我并解释这个现象吗?
Hi everyone,

I am sorry, my english is not good!

I found a problem about memory. In a function I malloced more memory
than before
that is 4.5625Kb in theory. Then I watched the memory size of the
function in Linux and
Unix through the command of "ps". After comparing with the early memory
size of
the function which didn''t have change, I found the increaseded size was
different! In Linux and Unix
the size is about 4Kb, but in windows the size watched from task manager
is far more
than 4Kb.

can anyone help me and explain the phenomenon,please?



可能在linux下你的内存只是保留,没有真正分配

直到你尝试使用它。在Windows下,可能更多的内存是

立即分配。

-

jacob navia

雅各布jacob point remcomp point fr

logiciels / informatique
http://www.cs.virginia.edu/~lcc-win32


jacob navia写道:
jacob navia wrote:

richi写道:
richi wrote:

>大家好,

对不起,我的英语不好!

我发现了一个关于记忆的问题。在一个函数中,我在理论上比原来的4.5625Kb内存了更多的内存。然后我通过命令ps观察了Linux和
Unix中
函数的内存大小。经过与早期记忆大小相比没有变化的功能,我发现增大的尺寸是不同的!在Linux和Unix中大小约为4Kb,但在Windows中,从任务管理器看到的大小比4Kb要多得多。

任何人都可以帮助我和请解释一下这个现象?
>Hi everyone,

I am sorry, my english is not good!

I found a problem about memory. In a function I malloced more memory
than before
that is 4.5625Kb in theory. Then I watched the memory size of the
function in Linux and
Unix through the command of "ps". After comparing with the early memory
size of
the function which didn''t have change, I found the increaseded size was
different! In Linux and Unix
the size is about 4Kb, but in windows the size watched from task manager
is far more
than 4Kb.

can anyone help me and explain the phenomenon,please?



尝试询问comp.unix.programmer。操作系统如何管理内存

平台特定。

Try asking on comp.unix.programmer. How the OS manages memory is
platform specific.


可能在linux下你的内存只是保留,没有真正分配

直到你尝试使用它。在Windows下,可能会有更多内存立即分配给b $ b。
Probably under linux your memory is just reserved, not really allocated
until you try to use it. Under windows, probably more memory is
allocated right away.



Linux可以做到这一点,但Unix版本往往不这样做。 OP并没有说

使用了哪一个。


-

Ian Collins。

Linux can do this, but Unix versions tend not to. The OP doesn''t say
which one was used.

--
Ian Collins.


感谢您的回答!

但是我曾经尝试了很多次,结果是一样的。

在Linux和HP下-Unix,增加的内存大小大约是4Kb



但是在Windows下增加不固定,例如4Kb,8Kb,16Kb。

我不知道为什么!它可能与操作页面大小有关吗?

系统?

" jacob navia" < ja *** @ nospam.com写信息

news:gb ********** @ aioe.org ...
thank for your answer !
but I had tried hunderds of times, and the result is the same.
Under Linux and HP-Unix, the increased memory size was about 4Kb at all
times
But Under Windows the increased was not fixed, e.g. 4Kb, 8Kb, 16Kb.
I don''t know why! Does it probably relate to the page size of operating
system?
"jacob navia" <ja***@nospam.comwrote in message
news:gb**********@aioe.org...

richi写道:
richi wrote:

>大家好,

对不起,我的英语不好!

我发现了一个关于记忆的问题。在一个函数中,我在理论上比原来的4.5625Kb内存了更多的内存。然后我通过命令ps观察了Linux和
Unix中
函数的内存大小。经过与早期记忆大小相比没有变化的功能,我发现增大的尺寸是不同的!在Linux和Unix中大小约为4Kb,但在Windows中,从任务管理器看到的大小比4Kb要多得多。

任何人都可以帮助我和请解释一下这个现象吗?
>Hi everyone,

I am sorry, my english is not good!

I found a problem about memory. In a function I malloced more memory
than before
that is 4.5625Kb in theory. Then I watched the memory size of the
function in Linux and
Unix through the command of "ps". After comparing with the early memory
size of
the function which didn''t have change, I found the increaseded size was
different! In Linux and Unix
the size is about 4Kb, but in windows the size watched from task manager
is far more
than 4Kb.

can anyone help me and explain the phenomenon,please?



可能在linux下你的内存只是保留,没有真正分配

,直到你尝试使用它。在Windows下,可能会有更多内存立即分配给你。

-

jacob navia

jacob at jacob point remcomp point fr

logiciels / informatique
http://www.cs.virginia.edu/~lcc-win32


这篇关于有关Windows内存的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆