The new development and the context
Collabora Online, an open-source productivity suite based on LibreOffice and conceived as a self-hosted alternative to Microsoft 365, has announced an architectural change that significantly reduces the memory required for each open document. According to a report by IT之家, citing the specialized outlet NeoWin, the project belongs to an already crowded field of free Office alternatives such as WordCraft, GridCraft, DeckCraft and Starling Office, in a context where the use of artificial intelligence has driven adoption of open-source tools. The platform lets users create, view and edit text documents, spreadsheets, presentations and vector drawings in real time directly from the browser.
How sharing between processes works
Collabora Online's architecture provides a separate process, called a kit, for each open document: a choice that isolates crashes and improves overall stability. To prevent each kit from loading a full copy of the suite, the system uses a parent process, forkit, which loads the basic components once and then generates child processes via Linux's fork function. In this way, the children initially share the same read-only memory as the parent and, thanks to the copy-on-write mechanism, duplicate a page only when they need to modify it.
The limitation, Collabora explains, lies in the granularity of memory managed by Linux, which works in 4 KB pages: even modifying a few bytes requires copying the entire page. The problem is aggravated by the small gaps left by temporary data in the memory allocated by the parent process: when document processes occupy these gaps, unnecessary page copies are triggered. The solution adopted is to fill these gaps before creating the first document process. According to the company, the operation takes about 11 milliseconds and occurs only once at server startup, without increasing the parent process's memory even with 160 active documents.
The numbers and the caveats
The results reported by Collabora come from a simulation with 10 users simultaneously opening and editing documents on a server with 4 cores and 8 GB of memory: an empty text document goes from 53.9 MB to 24.4 MB (about -55%), a Writer document from 73.6 MB to 47.8 MB (about -35%), and an Impress presentation from 72.1 MB to 50.3 MB (about -30%). In high-load scenarios, with about 1,000 simultaneous users, the company estimates maximum RAM savings of 25 GB — a figure that, if confirmed, would reduce hardware costs for those hosting the suite, such as companies, schools and cloud service providers.
However, it is worth carefully distinguishing between facts and claims: the cited data come from internal tests and estimates by the company itself, and no independent verification is currently available, nor details on scenarios with very large and complex documents. It also remains to be clarified what side effects the optimization may have on CPU usage, which the article does not address, and the timeline for rolling out the change in stable versions of the product.
