* Haiku's VM does not need the swap file to be as large as physical memory

at minimum to be able to work with it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29389 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2009-03-03 21:48:59 +00:00
parent bced01f71f
commit 608990b488

View File

@ -1,5 +1,5 @@
/*
* Copyright 2005-2006, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
* Copyright 2005-2009, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
* Distributed under the terms of the MIT License.
*/
@ -284,10 +284,8 @@ SettingsWindow::_Update()
status_t
SettingsWindow::_GetSwapFileLimits(off_t& minSize, off_t& maxSize)
{
// minimum size is the installed memory
system_info info;
get_system_info(&info);
minSize = (off_t)info.max_pages * B_PAGE_SIZE;
// minimum size is an arbitrarily chosen MB
minSize = kMegaByte;
// maximum size is the free space on the current volume
// (minus some safety offset, depending on the disk size)