Node Storage Relocation Based on Update Time

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In Microblog platforms, the frequent forwarding and commenting on popular messages lead to a high frequency of node loading and relocation between memory and file, causing performance issues due to the limited memory space and resulting in a vicious cycle that reduces server performance.

Innovation Solution

A method that involves receiving a write operation request and storing nodes in memory with an update time, periodically scanning nodes to determine which ones to relocate to a file based on their update time, and optimizing the number of nodes relocated to manage memory usage efficiently.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Speed

If nodes are frequently loaded to memory to improve access speed, then node retrieval performance is improved, but the frequency of node relocation increases causing server performance to deteriorate

Engineering Contradiction:
Improvenode retrieval speedVSAvoidserver performance
Core Design Contradiction:
SpeedVSProductivity

Solution Approach 1:

The patent changes the parameter of node storage location based on access frequency. Nodes are dynamically moved between memory and file storage according to their access patterns, allowing frequently accessed nodes to remain in memory for fast retrieval while less frequently accessed nodes are stored in files to reduce relocation frequency and maintain server performance.

Inventive Principle:
Principle #35Parameter changes

2Productivity

If memory space is used to store frequently accessed nodes, then node access efficiency is improved, but the number of nodes that can be stored is limited causing more nodes to be relocated to file

Engineering Contradiction:
Improvenode access efficiencyVSAvoidnumber of stored nodes
Core Design Contradiction:
ProductivityVSQuantity of substance

Solution Approach 1:

The patent segments node storage into two locations: memory for frequently accessed nodes and file storage for less frequently accessed nodes. This segmentation allows the system to maintain a manageable number of nodes in memory for efficient access while storing additional nodes in files, effectively increasing the total quantity of stored nodes without overwhelming memory capacity.

Inventive Principle:
Principle #1Segmentation

3Quantity of substance

If nodes are relocated from memory to file to reduce memory pressure, then memory usage is optimized, but the frequency of loading nodes back to memory increases creating a vicious cycle

Engineering Contradiction:
Improvememory usageVSAvoidnode loading frequency
Core Design Contradiction:
Quantity of substanceVSLoss of time

Solution Approach 1:

The patent implements a feedback mechanism that monitors node access patterns and dynamically adjusts node placement between memory and file storage. By continuously observing which nodes are accessed frequently and which are not, the system can make informed decisions about where to store nodes, reducing unnecessary relocations and breaking the vicious cycle of frequent loading and relocation.

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS8788539B2Method and apparatus for storing node
Publication Date: 2014.07.22 TENCENT TECHNOLOGY (SHENZHEN) CO LTD
  • US8788539B2 patent drawing
  • US8788539B2 patent drawing
  • US8788539B2 patent drawing

AI summary

The present invention discloses a method and apparatus for storing node, pertaining to the field of the Internet communications. The method includes: receiving a write operation request and a node from a client; storing the node in a memory and setting the update time of the node as the time of receiving the node; and relocating one or more nodes from the memory to a file according to the update time of each of the nodes in the memory. The apparatus includes: a receiving module, a storage module, and a relocating module. The present invention can reduce the frequency of loading and relocating nodes to and from a memory, and improve performance of a server.