It is accomplished ...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -0,0 +1,147 @@
|
||||
<documentation>
|
||||
|
||||
<appName>Virtual Memory</appName>
|
||||
|
||||
<version>0.9</version>
|
||||
|
||||
<author>
|
||||
|
||||
<name>Matt McMinn</name>
|
||||
<email>[email protected]</email>
|
||||
<homePage>http://home.earthlink.net/~melfina/</homePage>
|
||||
|
||||
</author>
|
||||
|
||||
<description>
|
||||
|
||||
It's just a copy of the virtual memory preferences app that comes with BeOS.
|
||||
|
||||
</description>
|
||||
|
||||
<issues>
|
||||
|
||||
<issue>
|
||||
|
||||
<id>1</id>
|
||||
<from>
|
||||
|
||||
<name>Matthieu Ferte</name>
|
||||
<email>[email protected]</email>
|
||||
|
||||
</from>
|
||||
<description>
|
||||
|
||||
Get the physical memory in a better way.
|
||||
|
||||
</description>
|
||||
<relatedInfo>
|
||||
|
||||
<code>
|
||||
|
||||
#include <OS.h>
|
||||
|
||||
int physMem;
|
||||
|
||||
system_info info;
|
||||
get_system_info(&info);
|
||||
physMem = (info.max_pages * 4096) / 1048576;
|
||||
|
||||
</code>
|
||||
|
||||
</relatedInfo>
|
||||
|
||||
</issue>
|
||||
<issue>
|
||||
|
||||
<id>2</id>
|
||||
<from>
|
||||
|
||||
<name>Matthieu Ferte</name>
|
||||
<email>[email protected]</email>
|
||||
|
||||
</from>
|
||||
<description>
|
||||
|
||||
Get the current memory by reading the file.
|
||||
|
||||
</description>
|
||||
<relatedInfo>
|
||||
|
||||
<code>
|
||||
|
||||
#include <Entry.h>
|
||||
|
||||
int currSwap;
|
||||
|
||||
const char *swap_file;
|
||||
swap_file = "/boot/var/swap";
|
||||
BEntry swap(swap_file);
|
||||
off_t swapsize;
|
||||
swap.GetSize(&swapsize);
|
||||
currSwap = swapsize / 1048576;
|
||||
|
||||
</code>
|
||||
|
||||
</relatedInfo>
|
||||
|
||||
</issue>
|
||||
<issue>
|
||||
|
||||
<id>3</id>
|
||||
<from>
|
||||
|
||||
<name>Matthieu Ferte</name>
|
||||
<email>[email protected]</email>
|
||||
|
||||
</from>
|
||||
<description>
|
||||
|
||||
Equation that calculates the minimum swap size is wrong (not linear).
|
||||
|
||||
</description>
|
||||
<relatedInfo>
|
||||
|
||||
<note>
|
||||
|
||||
I got the values on my computer with the original vm app :
|
||||
Ram 256 Mb -> Swap 341 Mb
|
||||
Ram 512 Mb -> Swap 640 Mb
|
||||
Ram 768 Mb -> Swap 886 Mb
|
||||
Ram 1024 Mb -> Swap 1133 Mb
|
||||
|
||||
With obos app i got :
|
||||
Ram 256 Mb -> Swap 341 Mb
|
||||
Ram 512 Mb -> Swap 683 Mb
|
||||
Ram 768 Mb -> Swap 1024 Mb
|
||||
Ram 1024 Mb -> Swap 1365 Mb
|
||||
|
||||
</note>
|
||||
|
||||
</relatedInfo>
|
||||
|
||||
</issue>
|
||||
|
||||
</issues>
|
||||
|
||||
<history>
|
||||
|
||||
<earlierVersion version="0.8">
|
||||
|
||||
<date>10/31/2001</date>
|
||||
<description>Initial release. Visually complete.</description>
|
||||
|
||||
</earlierVersion>
|
||||
|
||||
</history>
|
||||
|
||||
<note>
|
||||
|
||||
Even tho it wasn't really necessary, I know I've overdocumented this app.
|
||||
My excuse is that I wanted to learn how to use doxygen, and this was a
|
||||
good app to run it on. So if you want full documentation, and you have
|
||||
doxygen installed, available from BeBits, run <code>doxygen .doxygen-conf</code>
|
||||
in the code directory, and it will create docs for you.
|
||||
|
||||
</note>
|
||||
|
||||
</description>
|
||||
@@ -0,0 +1,19 @@
|
||||
Virtual Memory Preferences App
|
||||
By: Matt McMinn
|
||||
[email protected]
|
||||
http://home.earthlink.net/~melfina/
|
||||
|
||||
Introduction
|
||||
It's just a copy of the virtual memory preferences app that comes with BeOS. It works.
|
||||
|
||||
Documentation
|
||||
Even tho it wasn't really necessary, I know I've overdocumented this app, My excuse is that I wanted to learn how to use doxygen, and this was a good app to run it on. So if you want full documentation, and you have doxygen installed, available from BeBits, run
|
||||
doxygen .doxygen-conf
|
||||
in the code directory, and it will create docs for you
|
||||
|
||||
Version
|
||||
1.0: 1/28/2002
|
||||
Hey, it works. You can set your virtual memory size just like in the actual app.
|
||||
|
||||
0.9: 10/31/2001
|
||||
Initial release. Visually complete.
|
||||
Reference in New Issue
Block a user