We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
评测的时候无论是Windows还是Linux对内存使用的计算都不准确�� �. 有一个开了100+MB内存的程序, 测出来才20M左右
Original issue reported on code.google.com by [email protected] on 8 May 2012 at 11:30
[email protected]
The text was updated successfully, but these errors were encountered:
这个问题有些复杂…… 首先Windows和Linux都有虚拟内存技术,程序开数组的时候是申�� �虚拟内存,然后在运行的时候如果使用到了,才会映射到物� ��内存,并且Windows和Linux都使用懒惰策略。 例如你开了一个长度1000000的数组,只用了前100000个元素,那� ��实际使用的物理内存只有前100000个元素占用的空间。 Lemon显示出来的内存使用量是PrivateWorkingSet(Windows),也就是在� ��理内存中的占用量。但是Lemon同时也会检测申请的虚拟内存� ��否超过内存限制(Windows和Linux下都会)。 你可以试试看将内存限制调整到64MB,这个开了100MB+数组的程� ��应该是会MLE的。
Original comment by [email protected] on 28 May 2012 at 12:34
Sorry, something went wrong.
No branches or pull requests
Original issue reported on code.google.com by
[email protected]
on 8 May 2012 at 11:30The text was updated successfully, but these errors were encountered: