AIFeed

Microsoft Office alternative Collabora Online discovers memory-slimming trick, cutting memory usage by up to 55%

AI summary

Tech media outlet NeoWin reported yesterday (November 26) that as AI sees deeper use, the open-source community has seen a surge of Microsoft Office alternatives, including WordCraft, GridCraft, DeckCraft, Starling Office, and now Collabora Online, which announced a major breakthrough in memory usage. Collabora Online is a cloud-based online office suite built on LibreOffice technology that serves as a self-hostable alternative to Microsoft 365, letting users create, view, and collaboratively edit documents, spreadsheets, presentations, and vector drawings in real time in the browser. The Collabora team points out that in the original architecture, to improve isolation and stability, Collabora Online created a separate process (called a kit) for each open document, so that if one document crashes or misbehaves, it usually does not affect the others.

Translation(model translation, not the source's own text)

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 TypeMemory per Instance Before OptimizationMemory per Instance After OptimizationReduction
Blank text document53.9 MB24.4 MBAbout 55%
Writer document73.6 MB47.8 MBAbout 35%
Impress presentation72.1 MB50.3 MBAbout 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

The translation is machine-generated and individual terms may be off. Nothing is rewritten or cut; the original is authoritative.

Published by IT之家
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗