* 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:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2005-2006, Axel Dörfler, [email protected]. All rights reserved.
|
* Copyright 2005-2009, Axel Dörfler, [email protected]. All rights reserved.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -284,10 +284,8 @@ SettingsWindow::_Update()
|
|||||||
status_t
|
status_t
|
||||||
SettingsWindow::_GetSwapFileLimits(off_t& minSize, off_t& maxSize)
|
SettingsWindow::_GetSwapFileLimits(off_t& minSize, off_t& maxSize)
|
||||||
{
|
{
|
||||||
// minimum size is the installed memory
|
// minimum size is an arbitrarily chosen MB
|
||||||
system_info info;
|
minSize = kMegaByte;
|
||||||
get_system_info(&info);
|
|
||||||
minSize = (off_t)info.max_pages * B_PAGE_SIZE;
|
|
||||||
|
|
||||||
// maximum size is the free space on the current volume
|
// maximum size is the free space on the current volume
|
||||||
// (minus some safety offset, depending on the disk size)
|
// (minus some safety offset, depending on the disk size)
|
||||||
|
|||||||
Reference in New Issue
Block a user