Cloud Server Video Memory Sharing via Global Hash Table
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In cloud application scenarios, repeated loading of resource data by cloud servers leads to wastage of limited video memory resources, especially when multiple user terminals run the same cloud application concurrently.
Innovation Solution
Implementing a data processing method that uses a global hash table to share resources by determining a hash value of to-be-rendered resource data, searching for a global resource address ID, and mapping the global shared resource to the rendering process, thereby avoiding repeated loading and improving rendering efficiency.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If the cloud server separately configures video memory space for each user terminal to store rendered resources, then each user terminal can independently access its resources, but the cloud server repeatedly loads and compiles resource data, wasting limited video memory resources
Solution Approach 1:
The patent merges the video memory spaces of multiple user terminals by introducing a video memory management unit that unifies resource management. Instead of maintaining separate video memory allocations for each terminal, the system consolidates resources into a shared pool, allowing multiple terminals to access the same rendered resources simultaneously, thereby reducing total video memory consumption while maintaining access efficiency
Solution Approach 2:
The patent implements universal resource access by enabling a single video memory space to serve multiple user terminals concurrently. The video memory management unit creates a many-to-one mapping relationship where multiple terminals share common rendered resources, allowing the same video memory resources to fulfill multiple access requests without duplication, thus improving resource utilization efficiency
2Ease of operation
If the cloud server allocates separate video memory space for each user terminal, then resource access is simplified, but resource loading and compilation is repeated across multiple terminals running the same cloud application
Solution Approach 1:
The patent implements preliminary resource loading by having the video memory management unit pre-load and compile resources into a shared video memory space before multiple terminals need them. When the first terminal requests resources, they are loaded and compiled once; subsequent terminals accessing the same resources find them already prepared, eliminating repeated loading and compilation operations and significantly improving processing efficiency
Solution Approach 2:
The patent uses virtual copying mechanisms where multiple user terminals obtain references or pointers to the same rendered resources in the shared video memory space. Instead of physically duplicating resource data for each terminal, the system creates virtual copies through address mapping, allowing multiple terminals to access identical resource data simultaneously without actual data replication, thus maintaining access simplicity while improving loading efficiency
Data Source
AI summary
This application provides a data processing method, apparatus, a device, a computer-readable storage medium, and a computer program product. The method includes determining, in a case that a first cloud application client obtains to-be-rendered resource data of a cloud application, a hash value of the to-be-rendered resource data; searching, based on the hash value of the to-be-rendered resource data, a global hash table corresponding to the cloud application, to obtain a hash search result; obtaining, in a case that the hash search result indicates that a global hash value identical to the hash value of the to-be-rendered resource data is found in the global hash table, a global resource address identifier to which the global hash value is mapped; and obtaining a global shared resource based on the global resource address identifier, and mapping the global shared resource to a rendering process corresponding to the cloud application, to obtain a rendered image in a case that the first cloud application client runs the cloud application, the global shared resource being a rendered resource in a case that the cloud server loads the to-be-rendered resource data for the first time to output a rendered image.


