* 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:
parent
bced01f71f
commit
608990b488
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user