Microsoft Office Alternative: Collabora Online Discovers Memory-Slimming Trick, Cutting Memory Usage by Up to 55%
IT之家, November 27 — Tech media outlet NeoWin published a blog post yesterday (November 26) reporting that, with the deep application of AI, the open-source community has seen a surge of Microsoft Office alternative projects. In addition to WordCraft, GridCraft, DeckCraft, and Starling Office, the latest Collabora Online project has announced a major breakthrough in memory usage.
Collabora Online is a cloud-based online office suite built on LibreOffice technology. As a self-hostable alternative to Microsoft 365, it lets users create, view, and collaboratively edit documents, spreadsheets, presentations, and vector drawings in real time in the browser.
The Collabora team notes that in the original architecture, Collabora Online creates a separate process (called a kit) for each open document to improve isolation and stability. This way, if one document crashes or misbehaves, it usually does not affect other documents.
However, if each kit fully loads the office suite once, the memory overhead becomes very high. So Collabora uses a parent process, forkit, to load the office software once and then create each document process via Linux fork; these child processes initially share the same read-only memory as the parent process.
Linux uses Copy-on-Write (COW) to save memory: the parent and child processes initially share the same physical memory pages, and only when a child process wants to modify data in a page does the kernel copy an independent page for it. Ideally, all kits could share the unchanging base code, fonts, configuration, and initialization data in forkit, and only data that is actually modified would need to be copied.
The problem is that Linux typically manages memory in 4 KB pages. Even if a document process modifies only a few bytes in a shared memory page, the operating system must copy the entire 4 KB page for that process.

Collabora developer Meven Car explained that after forkit creates and discards temporary data, it leaves many small gaps in the allocated memory; when document processes later use these gaps, unnecessary full-page copies are triggered.
Collabora's solution is to fill these gaps in the parent process forkit before creating the first document process. In this way, new data from each document process is allocated to brand-new memory pages, while the originally shareable memory pages remain intact, avoiding repeated copying after being "polluted."
This operation sounds like it would increase memory usage, but since these gaps already exist within forkit's allocated memory range, filling them merely changes how the memory is allocated. According to Collabora, the operation only needs to be performed once at server startup, taking about 11 milliseconds; in testing, even with 160 document processes created, the parent process's memory usage did not increase.

On a server equipped with a 4-core processor and 8 GB of memory, Collabora simulated 10 users simultaneously opening and editing documents. The results showed that the per-instance memory usage of a blank text document dropped from 53.9 MB to 24.4 MB, a reduction of about 55%; a regular Writer document dropped from 73.6 MB to 47.8 MB, a reduction of about 35%; and an Impress presentation dropped from 72.1 MB to 50.3 MB, a reduction of about 30%.
| Document Type | Memory per Instance Before Optimization | Memory per Instance After Optimization | Reduction |
|---|---|---|---|
| Blank text document | 53.9 MB | 24.4 MB | About 55% |
| Writer document | 73.6 MB | 47.8 MB | About 35% |
| Impress presentation | 72.1 MB | 50.3 MB | About 30% |
Collabora estimates that in a high-load server scenario serving about 1,000 users simultaneously, this optimization can save up to 25 GB of memory. Against the backdrop of continuously rising memory costs, for enterprises, schools, and cloud service providers that need to handle large numbers of online document editing tasks, this means lower hardware costs and stronger concurrency capacity.
Related Articles
- Samsung Electronics reportedly eliminates the "Memory Development Head" position to reduce management layers and accelerate development
- Counterpoint: Global smartphone shipments expected to fall another 6% in 2027, with the first rebound in 2028
- Samsung Electronics plans to sample the CXL 3.2 memory module MD310 in early 2027: based on DDR5, up to 256GB
- Microsoft urgently fixes Microsoft 365 "ghost pop-up": a blank window blocks the entire app
- TrendForce lowers its 2027 memory industry output value forecast; DRAM contract prices expected to hold flat in the second half of the year
- Microsoft reportedly activates "red alert," plans to thoroughly overhaul its service outage response mechanism