Hi, What is the Resource Management Framework that you are referring to? Any NetBSD manages or webpages that you can mention?
And: what do other operating systems do in that area? What is state of the art? - Hubert > Am 09.02.2025 um 17:33 schrieb Soumyajyoti Sarkar > <sarkarsoumyajyot...@gmail.com>: > > > Dear Tech-Kern, > > I was interested in participating in GSOC 2025 under the NetBSD project. I > have been using NetBSD for quite some time now, and I am actively involved in > the NetBSD community. Over the course of my experience, I have developed a > keen understanding of the system and have been experimenting with various > improvements and scripts that enhance its functionality. > > One such initiative I have been working on is an automated swap file > management system for NetBSD, which I have successfully implemented and > tested on my system. The idea behind the script is to create and manage swap > files dynamically based on memory usage, while also considering disk space > constraints. The script includes features like memory usage thresholds, disk > space checks, swap file encryption, and logging for system monitoring. > > I have attached a prototype of this script for your review. I believe that > this project aligns well with the goals of GSOC 2025 and could significantly > contribute to improving memory management in NetBSD. In addition to the > current functionality, there are several enhancements I am considering, > including: > > Advanced Swap File Optimization: Allowing users to set a more dynamic > configuration for swap file creation (e.g., adjusting the swap file size > based on system load or available resources). > Integration with NetBSD's Resource Management Framework: Investigating how > the script could be integrated with NetBSD’s existing resource management > mechanisms for a more seamless experience. > Support for Multiple Swap Locations: Enabling the script to handle swap files > on multiple disks or partitions to improve performance and fault tolerance. > Swap File Monitoring and Alerts: Introducing a more comprehensive monitoring > system to alert users if swap file usage exceeds certain thresholds or if > there are issues with disk space or memory. > I have been testing the script extensively on my own system, and it has shown > promising results so far. However, I am looking for further feedback and > suggestions to refine the implementation. > > Some specific questions I have regarding the implementation are: > > Integration with NetBSD's Swap System: Are there any preferred or recommended > methods for integrating the swap file management directly into NetBSD’s > existing swap system? I want to make sure it fits well with NetBSD’s resource > management architecture. > > Error Handling: The script currently handles disk space and memory usage > checks, but I would like to explore further how we can make the error > handling more robust. Would it be helpful to include additional logging or > notifications for specific errors, such as swap file creation failures or > insufficient disk space? > > Security Considerations: I’ve included an option for swap file encryption in > the script. Would it be valuable to include additional encryption options, or > are there specific encryption standards preferred within NetBSD? > > Performance Concerns: Since the script dynamically creates and deletes swap > files based on memory usage, how can we ensure that this process doesn’t > cause significant performance overhead or thrashing? I would appreciate your > insights on optimizing this. > > I would love to hear your thoughts on the prototype, as well as any feedback > you may have on further improving the script. I am eager to contribute to > this project during GSOC 2025 and would be grateful for any guidance or > suggestions you can provide. > > I am looking forward to your feedback and the possibility of working on this > project. > > Best regards, > > Soumyajyoti Sarkar. > > <swap_manager.sh>