Web Server Dynamic HTML Generation Kernel Memory Bypass

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Web application servers experience performance degradation due to repetitive memory copying between user and kernel spaces, which increases processing costs and reduces operational efficiency.

Innovation Solution

Implementing a server configuration that generates HTML files by executing scripts without reading specific files when no modifications are needed, using a file-type character string object to transmit files directly from kernel memory, and employing a Copy-on-write function to ensure content integrity.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If the application execution unit reads files from storage device and copies them to user memory for processing, then the HTML file can be generated and returned to the client, but repetitive memory copying between user space and kernel space increases processing cost and degrades server performance

Engineering Contradiction:
Improveserver operational performanceVSAvoidprocessing cost for memory copying
Core Design Contradiction:
ProductivityVSLoss of energy

Solution Approach 1:

The patent extracts the file reading operation from the application execution unit and performs it directly in the kernel space. The kernel space reads the file from storage device and transmits it directly to the client without copying to user memory, thereby eliminating the harmful memory copying operation while preserving the necessary file transmission function.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent introduces the kernel space as an intermediary between the storage device and the client. Instead of the application execution unit reading files and copying them through user memory, the kernel space acts as a mediator that directly reads files from storage and transmits them to the client, bypassing the inefficient user-space memory copying process.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Ease of operation

If the application execution unit reads all files to generate HTML responses, then complete control over file transmission is achieved, but unnecessary file reads increase processing overhead when files don't need modification

Engineering Contradiction:
Improvefile transmission controlVSAvoidprocessing time for unnecessary file reads
Core Design Contradiction:
Ease of operationVSLoss of time

Solution Approach 1:

The patent applies partial action by having the application execution unit selectively read only those files that require modification or processing. For files that do not need changes, the kernel space transmits them directly without application-level intervention, thereby avoiding unnecessary processing while maintaining control where needed.

Inventive Principle:
Principle #16Partial or excessive action

Solution Approach 2:

The kernel space performs self-service by automatically handling the transmission of files that do not require application-level processing. This eliminates the need for the application execution unit to read and re-transmit unchanged files, reducing processing overhead while maintaining operational control for files that need modification.

Inventive Principle:
Principle #25Self-service

3Adaptability or versatility

If the server transmits files through user memory copying, then flexibility in file processing is maintained, but the copying operation reduces transmission speed and increases latency

Engineering Contradiction:
Improvefile processing flexibilityVSAvoidfile transmission speed
Core Design Contradiction:
Adaptability or versatilityVSSpeed

Solution Approach 1:

The patent segments file transmission into two paths: files requiring processing are handled by the application execution unit with full flexibility, while files not requiring processing are transmitted directly by the kernel space at high speed. This segmentation allows the system to maintain flexibility where needed while achieving high-speed transmission for unchanged files.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent implements dynamic file transmission by adapting the transmission path based on whether file modification is needed. The system dynamically selects between the flexible application-execution path and the high-speed kernel-direct path, optimizing both flexibility and speed according to the specific file processing requirements.

Inventive Principle:
Principle #15Dynamics

Applied Scientific Principles

This section explains which scientific principles are used to turn an abstract innovation direction into a practical engineering solution.

Function Achieved in This Case

This approach reduces memory copying operations, enhances server performance by eliminating unnecessary file reads, and improves operational efficiency by transmitting files directly from kernel memory without user memory intervention.

Implementation Method 1

employing a Copy-on-write function to ensure content integrity

Methodology Applied
Scientific EffectCopy-on-write:

Data Source

PatentUS8090769B2Dynamically generating web contents
Publication Date: 2012.01.03 SERVICENOW INC
  • US8090769B2 patent drawing
  • US8090769B2 patent drawing
  • US8090769B2 patent drawing

AI summary

Dynamically generating web contents includes an application execution unit for dynamically generating an HTML file, and an HTTP server for receiving an HTTP request and returning an HTTP response including an HTML file generated by the application execution unit. The application execution unit executes a script of the HTML file, and describes information specifying the file in the object without reading the actual file, if an instruction code of the script is a script to display contents of a specific file held in a storage device. The HTTP server identifies a file held in the storage device on the basis of the information, and transmits the file together with the HTML file.