3 <appName>Virtual Memory</appName>
9 <name>Matt McMinn</name>
10 <email>melfinadev@earthlink.net</email>
11 <homePage>http://home.earthlink.net/~melfina/</homePage>
17 It's just a copy of the virtual memory preferences app that comes with BeOS.
28 <name>Matthieu Ferte</name>
29 <email>mferte@club-internet.fr</email>
34 Get the physical memory in a better way.
46 get_system_info(&info);
47 physMem = (info.max_pages * 4096) / 1048576;
59 <name>Matthieu Ferte</name>
60 <email>mferte@club-internet.fr</email>
65 Get the current memory by reading the file.
76 const char *swap_file;
77 swap_file = "/boot/var/swap";
78 BEntry swap(swap_file);
80 swap.GetSize(&swapsize);
81 currSwap = swapsize / 1048576;
93 <name>Matthieu Ferte</name>
94 <email>mferte@club-internet.fr</email>
99 Equation that calculates the minimum swap size is wrong (not linear).
106 I got the values on my computer with the original vm app :
107 Ram 256 Mb -> Swap 341 Mb
108 Ram 512 Mb -> Swap 640 Mb
109 Ram 768 Mb -> Swap 886 Mb
110 Ram 1024 Mb -> Swap 1133 Mb
112 With obos app i got :
113 Ram 256 Mb -> Swap 341 Mb
114 Ram 512 Mb -> Swap 683 Mb
115 Ram 768 Mb -> Swap 1024 Mb
116 Ram 1024 Mb -> Swap 1365 Mb
128 <earlierVersion version="0.8">
130 <date>10/31/2001</date>
131 <description>Initial release. Visually complete.</description>
139 Even tho it wasn't really necessary, I know I've overdocumented this app.
140 My excuse is that I wanted to learn how to use doxygen, and this was a
141 good app to run it on. So if you want full documentation, and you have
142 doxygen installed, available from BeBits, run <code>doxygen .doxygen-conf</code>
143 in the code directory, and it will create docs for you.