#3723: Improving disk performance by changing VirtualMemory path -----------------------------------------+--------------------------- Reporter: haiqu | Owner: axeld Type: enhancement | Status: new Priority: normal | Milestone: R1 Component: Preferences/VirtualMemory | Version: R1/pre-alpha1 Resolution: | Keywords: Blocked By: | Blocking: Has a Patch: 0 | Platform: All -----------------------------------------+--------------------------- Comment (by bonefish): Replying to [comment:1 hamish]: > Is it acceptable to use the C++ APIs in the kernel code -- in order to test for free space on drives and such -- or would it be preferable to use C functions such as those defined in kernel/fs_info.h? Most C++ API is simple not available in the kernel. Also only part of the userland C API is implemented in the kernel. You might need to use the private kernel API. E.g. for getting information about and manipulating disk devices, the disk device manager interface can be used (cf. [http://dev.haiku- os.org/browser/haiku/trunk/headers/private/kernel/disk_device_manager haiku/trunk/headers/private/kernel/disk_device_manager]). > Where should the swap file be stored on drives that aren't the boot drive? Simply in the root directory of the drive, or in /drive/var? I'd store it in the root directory or make that user-configurable. -- Ticket URL: <http://dev.haiku-os.org/ticket/3723#comment:2> Haiku <http://dev.haiku-os.org> Haiku - the operating system.