Knowledge Base Snapshot via Copy-on-Write Virtual Memory

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing knowledge base systems face challenges in saving large, complex data sets to disk without incurring significant overhead or disrupting system operations, as linearizing and writing such data is time-consuming and may require stopping all activity or using high-overhead transaction mechanisms.

Innovation Solution

A method involving bringing the knowledge base to a consistent state, creating a copy-on-write virtual copy using virtual memory, and serializing this copy to persistent storage without blocking ongoing operations, utilizing copy-on-write virtual memory mappings and separate processes for efficient snapshotting.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If the knowledge base is saved to disk by linearizing and writing the data, then a persistent copy is created, but the operation is time-consuming and blocks system activity

Engineering Contradiction:
Improveknowledge base persistenceVSAvoidsystem responsiveness
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent creates a virtual copy of the knowledge base in memory using copy-on-write semantics before serializing it to disk. This allows the original knowledge base to remain accessible and responsive while the copy is being saved, eliminating the blocking effect on system activity.

Inventive Principle:
Principle #26Copying

Solution Approach 2:

The patent transitions from a single-threaded, blocking save operation to a multi-dimensional approach using separate memory spaces (original and virtual copy) and asynchronous serialization. This allows persistence operations to occur in parallel with query operations, resolving the contradiction between reliability and productivity.

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

2Reliability

If transaction mechanisms are used to ensure consistency during saving, then data consistency is maintained, but overhead increases significantly

Engineering Contradiction:
Improvedata consistencyVSAvoidsystem overhead
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent brings the knowledge base to a consistent state before creating the virtual copy, ensuring data consistency is established in advance. This preliminary action eliminates the need for complex transaction mechanisms during the save operation, reducing overhead while maintaining consistency.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

By creating a virtual copy rather than modifying the original knowledge base during serialization, the patent ensures consistency without requiring complex transaction management. The copy-on-write mechanism automatically handles consistency, simplifying the system overhead.

Inventive Principle:
Principle #26Copying

3Reliability

If all activity is stopped during serialization to ensure consistency, then data integrity is preserved, but system availability is reduced

Engineering Contradiction:
Improvesnapshot consistencyVSAvoidsystem downtime
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent creates a virtual copy of the knowledge base that can be serialized independently. This allows the original system to continue processing queries and updates without interruption, while the copy is being saved to disk, eliminating system downtime while preserving snapshot consistency.

Inventive Principle:
Principle #26Copying

Solution Approach 2:

The patent segments the knowledge base into the original operational instance and a separate virtual copy for serialization. This segmentation allows independent operation of the original system during the save process, preventing loss of time while maintaining reliability.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS8244682B2Saving snapshot of a knowledge base without blocking
Publication Date: 2012.08.14 POSTQ IPR OY
  • US8244682B2 patent drawing
  • US8244682B2 patent drawing
  • US8244682B2 patent drawing

AI summary

A consistent snapshot of a large main memory knowledge base is saved to persistent storage without blocking the application for the duration of serializing and writing the knowledge base. Taking the snapshot comprises bringing the knowledge base to a consistent state (in a multithreaded application), using virtual memory facilities to obtain a copy-on-write copy of the knowledge base in memory, and using a separate thread or process to serialize the copy-on-write copy to persistent storage.