This application claims priority to Chinese Patent Application No. 202111163102.1, filed on Sep. 30, 2021, the content of which is incorporated herein by reference in its entirety.
The present disclosure generally relates to the field of computer technology and, more particularly, to an electronic device and a processing method.
At present, slim electronic devices such as slim notebooks are very popular among users. Since these slim devices are thin and light, the design of device components will be limited to the device size, and thus it is required to ensure or improve device performance with as little space as possible. The applicant has found that the component design of current electronic devices, especially slim devices, is not optimized enough. Therefore, there is a need in the relevant fields to provide a device design solution that occupies less space while also ensuring/improving performance.
In accordance with the present disclosure, there is provided an electronic device including a first processing unit and a second processing unit, a first memory unit correspondingly set for the first processing unit and configured for data access by the first processing unit, and a second memory unit correspondingly set for the second processing unit and configured for data access by the second processing unit. The first processing unit occupies at least part of storage space of the second memory unit when a first criteria is met, and/or the second processing unit occupies at least part of storage space of the first memory unit when a second criteria is met.
Also in accordance with the present disclosure, there is provided a processing method, applied to an electronic device. The electronic device includes a first processing unit and a second processing unit, and a first memory unit correspondingly set for the first processing unit and configured for data access by the first processing unit, and a second memory unit correspondingly set for the second processing unit and configured for data access by the second processing unit. The processing method includes, in response to the first processing unit satisfying a first criteria, the first processing unit occupying at least part of storage space of the second memory unit, and/or in response to the second processing unit satisfying a second criteria, the second processing unit occupying at least part of storage space of the first memory unit.
The following drawings are merely examples for illustrative purposes according to various disclosed embodiments and are not intended to limit the scope of the present disclosure.
Hereinafter, embodiments consistent with the present disclosure will be described with reference to drawings. It is apparent that the described embodiments are some but not all of the embodiments of the present disclosure. Based on the disclosed embodiments, persons of ordinary skill in the art may derive other embodiments consistent with the present disclosure, all of which are within the scope of the present disclosure.
In the present disclosure, description with reference to the terms “one embodiment,” “some embodiments,” “example,” “specific example,” or “some examples,” etc., mean specific features, structures, materials, or characters described in connection with the embodiment or example are included in at least one embodiment or example of the present disclosure. Furthermore, the particular features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, those skilled in the art may combine the different embodiments or examples described in this specification, as well as the features of the different embodiments or examples, as long as they do not conflict with each other.
In the present disclosure, the terms “first” and “second” are only used for descriptive purposes, and should not be understood as indicating or implying relative importance or implying the number of indicated technical features. Thus, a feature associated with “first,” “second” may expressly or implicitly include at least one of that feature. In the description of the present disclosure, “plurality” means two or more, unless otherwise expressly and specifically defined.
In order to ensure/improve device performance as much as possible when there is limited space available, embodiments of the present disclosure provide an electronic device and a processing method, mainly by optimizing the design and access functions of memory units of different processing units (e.g., CPU, GPU) of the electronic device, to ensure/improve device performance with as little occupied space as possible.
The electronic device disclosed in the embodiments of the present disclosure may be a general-purpose device or a specialized device configured for specific environments or configurations. For example, the electronic device can be a personal computer, a server, a handheld device or portable device, a tablet, a multi-processing core device, etc. The solution of the present disclosure shows apparent advantages over other electronic devices, especially when the electronic device is a slim device, such as a laptop.
The first processing unit 10 may be a central processing unit (CPU), and the second processing unit 20 may be a graphics processing unit (GPU). Without limitation, the first processing unit 10 and the second processing unit 20 may also be different CPUs in an electronic device. In applications, the processing unit types of the first processing unit 10 and the second processing unit 20 may be flexibly set up according to actual needs.
When the first processing unit 10 and the second processing unit 20 are a CPU and a GPU respectively, the first memory unit 30 may be a main memory of the electronic device, and correspondingly the second memory unit 40 may be a video memory of the electronic device. In one embodiment, the main memory is a memory exclusively for the CPU, from/to which the CPU can read/write, and the video memory is a memory exclusively for the GPU, from/to which the GPU can read/write.
In one embodiment, the first processing unit 10 may occupy at least part of the storage space of the second memory unit 40 when a first criteria is met, and/or the second processing unit 20 may occupy at least part of the storage space of the first memory unit 30 when a second criteria is met. This allows an improvement of the data processing performance of the first processing unit 10 and/or the second processing unit 20 without adding additional physical memory units.
The first criteria may be a load condition indicating the corresponding load state/usage of the first processing unit 10/the first memory unit 30. For example, the first criteria may be that “the resource occupancy of the first processing unit reaches a certain threshold,” which indicates that the first processing unit 10 is in a heavy load state. Similarly, the second criteria may be a load condition indicating the corresponding load state/usage of the second processing unit 20/the second memory unit 40. For example, the second criteria may be that “the resource occupancy of the second processing unit reaches a certain threshold,” which indicates that the second processing unit 20 is in a heavy load state.
Without limitation, the first processing unit 10 occupying at least part of the storage space of the second memory unit 40 may mean that the first processing unit 10 occupies all or part of the storage space of the second memory unit 40. The second processing unit 20 occupying at least part of the storage space of the first memory unit 30 may mean that the second processing unit 20 occupies all or part of the storage space of the first memory unit 30.
In addition, the first processing unit 10 occupying at least part of the storage space of the second memory unit 40 when the first criteria is met may mean that the first processing unit 10 occupies the storage space of the first memory unit 30 and at least part of the storage space of the second memory unit 40 when the first criteria is met, or the first processing unit 10 just occupies at least part of the storage space of the second memory unit 40 when the first criteria is met, which is not limited by the present disclosure. Similarly, the second processing unit 20 occupying at least part of the storage space of the first memory unit 30 when the second criteria is met may mean that the second processing unit 20 occupies the storage space of the second memory unit 40 and at least part of the storage space of the first memory unit 30 when the second criteria is met, or the second processing unit 20 just occupies at least part of the storage space of the first memory unit 30 when the second criteria is met, which is not limited by the present disclosure either.
As can be seen from the above, in an electronic device disclosed in the present disclosure, the first processing unit of the electronic device is provided with a corresponding first memory unit for access by the first processing unit, and the second processing unit is provided with a corresponding second memory unit for access by the second processing unit. The first processing unit occupies at least part of the storage space of the second memory unit when the first criteria is met, and/or the second processing unit occupies at least part of the storage space of the first memory unit when the second criteria is met. In other words, the first processing unit and the second processing unit may not only use the memory units configured for themselves, but also use the memory units configured for other processing units if certain criteria is met. That is, the data processing performance of the processing units is improved without adding additional physical memory units. Accordingly, the objective of ensuring/improving the performance of the device with the minimized space occupation is achieved.
Referring to a system architecture of an electronic device in
In the disclosed embodiment, the GPU is an integrated graphics processing unit (iGPU).
In the disclosed embodiment, through the configuration of the main memory of the electronic device, the iGPU may occupy part of the storage space of the main memory of the electronic device when the second criteria is met. Meanwhile, an external video memory may be configured for the iGPU, to improve the data processing performance of the iGPU.
An exemplary integrated graphics card-based architecture is shown in
Referring back to
The electronic device also includes a memory controller 51 configured inside the CPU (which refers to the whole CPU structure 11 but not just the CPU core itself) and a video memory controller 61 configured inside the iGPU (which refers to the whole GPU structure 21 but not just GPU core itself).
Specifically, the first main memory 311 is the CPU RAM and the second main memory 312 is the L2 GPU VRAM shown in
The memory volume of the second main memory can be greater than, smaller than, or equal to the memory volume of the video memory, which is not limited in the present disclosure. The second main memory and the video memory can be the same or different types of memory. If the memory types are the same, the memory controller and the video memory controller use the same access frequency to access the second main memory and the video memory, respectively. If the memory types are different, the memory controller and the video memory controller use different access frequencies to access the second main memory and the video memory, respectively.
In one embodiment, if the memory volume of the second main memory is smaller than the memory volume of the video memory and the access frequency of the second main memory is smaller than the access frequency of the video memory, the GPU mainly uses the video memory, and the second main memory is used as an auxiliary memory. Based on this principle, the memory usage of the GPU can be controlled according to a predetermined strategy, so that the GPU can use different memory access modes to access data in the corresponding portions of the video memory and the second main memory, respectively. For example:
11) If the GPU is in a first load state, the GPU accesses data in the second main memory through the memory controller.
12) If the GPU is in a second load state, the GPU accesses data in the video memory through the video memory controller.
13) If the GPU is in a third load state, the GPU accesses data in the video memory through the video memory controller, and accesses data in the second main memory through the memory controller.
Here, the load volume of the GPU in the first load state, second load state, and third load state is sequentially increased. For example, the first load state, the second load state, and the third load state may be light load state, heavy load state, and extremely heavy load state of the GPU, respectively.
In the first load state such as the light load state, the GPU does not access the video memory. With respect to this scenario, referring to
In one embodiment, by detecting the resource occupancy of the GPU, the current load state of the GPU can be determined according to a predefined relationship between the load states (e.g., light load, heavy load, extremely heavy load) and different occupancy intervals. The GPU then accesses data in the corresponding memory (e.g., the video memory and/or the second main memory) according to the memory access mode matching the current load state of the GPU.
In one embodiment, as shown in
In the disclosed embodiment, when the GPU, serving as the second processing unit, occupies at least part of the storage space of the first memory (e.g., the second main memory), the second criteria that needs to be met is a load condition, which includes: the GPU is in the above-described first load state, or the GPU is in the above-described third load state.
When the GPU is in the first load state, only the second main memory is used. When the GPU is in the third load state, both the video memory and the second main memory are used.
In the disclosed embodiment, the CPU and GPU are integrated into a single unit according to an integrated graphic card configuration. In addition, an external video memory is set up for the integrated GPU. This can make full use of the space advantage of the integrated graphic card as well as the performance advantage of independent external video memory (in the existing technologies, external video memory is only set up for an independent GPU). This greatly improves the performance of the integrated graphics card under the premise of saving space. In addition, based on the load state, the GPU can access the memory units in the external video memory and part of the main memory (e.g., second main memory) according to different memory access modes. This improves the performance of the integrated graphics card and also takes into consideration the battery life of the electronic device, thereby saving energy consumption and improving the battery life of the electronic device.
Further, another embodiment of the present disclosure provides a different integrated video graphics card configuration for the integrated graphics card. In the disclosed embodiment, the first processing unit and the second processing unit of the electronic device are also the CPU and the GPU respectively, such as the CPU 12 and the GPU 22 in
In the disclosed embodiment, through the design of the main memory and the memory controller of the electronic device, the GPU can occupy part of the main memory of the electronic device when the second criteria is met. Meanwhile, an external video memory is set for the GPU in the integrated video graphics card configuration, so as to improve the data processing performance of the GPU in the integrated video graphics card configuration.
Taking the integrated video graphics card configuration illustrated in
In the disclosed embodiment, the main memory of the electronic device is further divided into a third main memory 321 for data access by the CPU and a fourth main memory 322 for data access by the iGPU. Specifically, the third main memory is the CPU RAM shown in
The electronic device also includes a memory controller and a video memory controller, such as the memory controller 52 and the video memory controller 62 in
In one embodiment, when the second criteria is met, the GPU, serving as the second processing unit, occupies at least part of the storage space of the first memory unit, specifically the storage space of the fourth main memory. When the GPU occupies the fourth main memory, it may specifically means that the GPU accesses data in the fourth main memory through the second memory controller.
When the CPU accesses data in the first memory unit, it may specifically means that the CPU accesses data in the third main memory through the first memory controller, and/or the CPU accesses data in the fourth main memory through the second memory controller.
Different from the embodiment described earlier in which the second main memory divided from the main memory of the electronic device is dedicated for use by the GPU, in the disclosed embodiment, after the main memory of the electronic device is divided into the third main memory and the fourth main memory, the fourth main memory is dynamic and can be used by the CPU as well as the GPU. The second memory controller is correspondingly dynamic and can also be used by the CPU as well as the GPU. Which processing unit uses the fourth main memory/second memory controller at a specific time point is determined based on the actual load statuses of the CPU and the GPU.
The storage volume of the fourth main memory can be greater than, smaller than, or equal to the storage volume of the video memory, which is not limited by the present disclosure. The types of the fourth main memory and the video memory can be the same or different. When the types are the same, the second main memory controller and the video memory controller use the same access frequency to access the fourth main memory and video memory, respectively. When the types are different, the second memory controller and the video memory controller use different access frequencies to access the fourth main memory and video memory, respectively.
In the disclosed embodiment, the memory access modes of the GPU and CPU are controlled according to a predetermined strategy, so that the GPU can access data in the corresponding memory units (e.g., video memory and the fourth main memory) according to different access modes, and the CPU can access data in the corresponding memory units (e.g., the third main memory and the fourth main memory) according to different access modes.
Specifically, the memory access mode of the CPU can be controlled according to the following strategies, so that the CPU can access data in the corresponding third main memory and the fourth main memory, respectively, according to different memory access modes:
21) If the CPU is in the fourth load state, the CPU accesses data in the third main memory through the first memory controller.
22) If the CPU is in the fifth load state, the CPU accesses data in the third main memory through the first memory controller, and accesses data in the fourth main memory through the second memory controller.
Here, the load volume of the CPU in the fourth load state is smaller than that in the fifth load state. For example, the fourth load state and the fifth load state of the CPU may be the light load state and the heavy load state, respectively.
Meanwhile, the memory access mode of the GPU can be controlled according to the following strategies, so that the GPU can access data in the corresponding video memory and the fourth main memory respectively according to different memory access modes:
31) If the GPU is in the sixth load state, the GPU accesses data in the video memory through the video memory controller.
32) If the GPU is in the seventh load state, the GPU accesses data in the video memory through the video memory controller, and accesses data in the fourth main memory through the second memory controller.
Here, the load volume of the GPU in the sixth load state is smaller than the load volume in the seventh load state. For example, the sixth load state and the seventh load state of the GPU may be the light load state and heavy load state, respectively.
Based on the above memory access modes of the CPU and GPU, in the integrated video graphics card configuration of
41) When the CPU is in a heavy load state, the CPU accesses the CPU RAM through MC1, and accesses Dynamic DRAM or VRAM through MC3. At this point, the Dynamic DRAM or VRAM is occupied by the CPU, and thus the GPU accesses the GPU VRAM through MC2.
42) When the GPU is in a heavy load state, the GPU accesses the GPU VRAM through MC2, and accesses Dynamic DRAM or VRAM through MC3. At this point, the Dynamic DRAM or VRAM is occupied by the GPU, and thus the CPU accesses the CPU RAM through MC1.
43) When the CPU is in a light load state, the CPU accesses the CPU RAM through MC1.
44) When the GPU is in a light load state, the GPU accesses the GPU VRAM through MC2.
It should be noted that if the CPU and GPU are in a heavy load state at the same time, it can be determined to which processing unit the fourth main memory (such as Dynamic DRAM or VRAM) should be allocated according to a further strategy. In one example, when all the processing units are in a heavy load state, the fourth main memory is directly allocated to the CPU, or the fourth main memory is allocated to a processing unit with a greater degree of load, etc.
In the disclosed embodiment, the resource occupancy of the GPU/CPU resources can be similarly detected, and the current load state of the GPU/CPU can be determined according to the predefined correspondences between different states (e.g., light load, heavy load) and the occupancy intervals. The GPU/CPU then accesses data in the corresponding memory units (e.g., video memory, third main memory, and fourth main memory) according to a memory access mode that matches the current load state.
Alternatively, according to another embodiment, the status (e.g., startup, running, and shutdown) of each application installed on the electronic device can be detected in real time, and each application in the running state in the electronic device can be identified, as shown in
In the disclosed embodiment, when the GPU, serving as the second processing unit, occupies at least part (e.g., fourth main memory) of the storage space of the first memory unit, the second criteria that needs to be met is a load condition, which may include that: the GPU is in the aforementioned seventh load state.
Here, when the GPU is in the seventh load state, the GPU specifically uses the video memory and the fourth main memory.
In the disclosed embodiment, the CPU and GPU are integrated into a single unit according to an integrated graphic card configuration. In addition, an external video memory is set up for the integrated GPU. This can make full use of the space advantage of the integrated graphic card as well as the performance advantage of independent external video memory (in the existing technologies, external video memory is only set up for an independent GPU). This greatly improves the performance of the integrated graphics card under the premise of saving space. In addition, based on the load state, the GPU can access the memory units in the external video memory and part of the main memory (e.g., fourth main memory) according to different memory access modes. This improves the performance of the integrated graphics card and also takes into consideration the battery life of the electronic device, thereby saving energy consumption and improving the battery life of the electronic device. In addition, in the disclosed embodiment, the fourth main memory is controlled to be in a dynamic mode, so that at a specific time point, based on the actual load state of the CPU and GPU, the fourth main memory can be used by the CPU or GPU. This further improves the flexibility of using memory units, and improves the processing performance of the CPU and GPU under the premise of a fixed number of memory units.
In one embodiment, the GPU and CPU in an electronic device are not integrated. That is, the disclosed embodiment adopts an independent video graphics card configuration to design the graphics card, and proposes a novel independent graphics card architecture. The GPU in the disclosed embodiment is correspondingly a discrete graphics processing unit (dGPU).
In the disclosed embodiment, the electronic device is divided into a unified memory access (UMA) mode and a dGPU mode. The UMA mode is a mode in which the system of the electronic device mainly uses the CPU functions and has an extremely high demand for main memory. For example, the running application(s) by a user requires an extremely high CPU performance in the UMA mode. The dGPU mode is a mode in which the system has certain requirements for the dGPU, and thus dGPU needs to run properly.
For the above two modes, the disclosed embodiment expands the system memory capacity in the UMA mode by redefining a CPU/dGPU architecture in combination with the hardware and software design of the system, to maximize the CPU performance.
In addition to the components shown in
The CPU can access data in the main memory through the memory controller, and the dGPU can access data in the video memory through the video memory controller. Referring to an exemplary independent video graphics card configuration of the disclosed embodiment provided in
In addition, in the disclosed embodiment, the electronic device further includes an embedded controller (EC) 70 and a channel switch 80, which are the EC and the PCIE Mux unit as shown in the exemplary independent video graphics card configuration in
The embedded controller is connected with the CPU and the channel switch, and is connected to the video memory controller through the channel switch.
The channel switch is connected with the CPU, the GPU and the video memory controller, and is configured for channel switching between a first communication channel between the CPU and GPU and a second communication channel between the CPU and the video memory controller.
In a first mode, the embedded controller controls the first communication channel between the CPU and GPU to be turned on through the channel switch, and the second communication channel between the CPU and the video memory controller is turned off. In a second mode, the embedded controller controls the second communication channel between the CPU and the video memory controller to be turned on through the channel switch, and the first communication channel between the CPU and GPU is turned off.
The memory capacity requirement of the CPU in the first mode is smaller than the memory capacity requirement of the CPU in the second mode. The first mode may be specifically referred to as the dGPU mode, and the second mode may be specifically referred to as the UMA mode.
In the dGPU mode, the embedded controller controls the first communication channel to be turned on and the second communication channel to be turned off through the channel switch. The dGPU is in the normal working state, and accesses data in the video memory through the video memory controller. The CPU accesses the main memory through the memory controller. In the UMA mode, the embedded controller controls the second communication channel to be turned on and the first communication channel to be turned off through the channel switch. The dGPU is in a non-working state, the signal between the CPU and the video memory controller is turned on. The CPU can not only access the main memory through the memory controller, but also access the video memory through the video memory controller. In this mode, the main memory and the video memory of the system are used as the main memory and auxiliary memory of the CPU respectively, and thus the video memory is extended as a memory of the CPU.
In addition, the electronic device in the disclosed embodiment further includes a bridge component and two power supply units, specifically, the bridge component: PCIE to MC bridge, and the power supply units: VR1 and FBVDD VR shown in the exemplary independent video graphics card configuration in
According to the independent video graphics card configuration in the disclosed embodiment, when the system mainly uses CPU performance and has a high demand on the use of main memory, for example, when the application(s) running by a system user needs an extremely high CPU performance, the user can enter the BIOS (Basic Input Output System), set the system to the UMA mode through the BIOS. Alternatively, the system enters the BIOS and sets the system to the UMA mode through the BIOS based on an event that the monitored capacity usage of the main memory of the system reaches a predefined threshold required for entering into the UMA mode. After that, in the system boot stage, the BIOS notifies the EC (e.g., the CPU chip running the BIOS code notifies the EC) that the current mode of the system is the UMA mode. The EC responds to the notification information by enabling the power supply units of the channel switch and the bridge component to supply power to the channel switch and the bridge component, and by controlling the channel switch to switch from the first communication channel to the second communication channel through a signal form such as GPIO (General Purpose Input Output), so as to enable a switch from the dGPU mode to the UMA mode. In the UMA mode, the dGPU is in the off state (non-working state), and the communication between the CPU and the video memory controller is established, so that the CPU can not only access the main memory through the memory controller, but also access the video memory through the video memory controller, thereby allowing the expanded use of the video memory as a memory of the CPU.
Optionally, in the UMA mode, the system main memory and video memory are set as the main memory and auxiliary memory of the CPU respectively. The system of the device monitors the capacity usage of the main memory in real time. When the monitored capacity usage of the main memory exceeds a predefined threshold for initializing the auxiliary memory, the video memory is automatically enabled as the auxiliary memory and the CPU can access data in the video memory through the video memory controller, thereby allowing the expansion of the CPU memory capacity. The auxiliary memory is automatically turned off when the monitored usage of the memory units (e.g., main memory and video memory) is smaller than a predefined threshold required for disenabling the auxiliary memory.
When the monitored capacity usage of the main memory is smaller than a predefined threshold for ending the UMA mode, the BIOS notifies the EC of the mode information of the dGPU mode (e.g., the CPU chip running the BIOS code notifies the EC). The EC controls the switching of the channel switch from the second communication channel to the first communication channel by sending the GPIO and other signals. That is, the EC controls the second communication channel to be turned off and the first communication channel to be turned on, and turns off the power supply unit VR1 for providing power to the channel switch and the bridge component after the switching is completed.
It should be noted that, in applications, when switching to the UMA mode, it is not limited to the aforementioned implementation of controlling the dGPU to be in an off state (non-working state). In one embodiment, when the channel switch controls the second communication channel to be turned on, the first communication channel can also remain connected. The CPU can be controlled to occupy a part of the video memory through the video memory controller, and the remaining video memory space is still occupied by the dGPU. In the disclosed embodiment, when entering into the UMA mode that requires the video memory to be expanded as a memory for the CPU, the information such as the size or ratio of the expanded video memory can be notified to the video memory controller through the operating system (OS) or the BIOS. Based on the notification information, a certain size or proportion of the video memory space is expanded as the CPU memory for the CPU to use, and the remaining video memory space is still used by the dGPU.
That is, when the video memory is expanded as the CPU memory for the CPU to use, all or part of the video memory space can be expanded as the memory for the CPU, which is not limited in the present disclosure.
In the disclosed embodiment, when the CPU, serving as the first processing unit, occupies at least part of the space of the video memory, the first criteria to be met may refer to a load condition or a mode condition, where the load condition may specifically include: the resource utilization of the system main memory reaches a corresponding threshold that requires the video memory to be used, and the mode condition may specifically include: the electronic device is in the second mode (e.g., UMA mode).
The disclosed embodiment expands the memory capacity of the system in the UMA mode by redefining a CPU/dGPU architecture in the independent video graphics card configuration in combination with the hardware and software design of the system, which maximizes the performance of the CPU. The requirements for an extremely high CPU performance by a system can be met without the need to add additional physical memory units to the device.
Further, one embodiment of the present disclosure also provides a processing method, which is applicable to the electronic device provided by any of the above embodiments. The electronic device to which the method disclosed in the present disclosure is applicable, at least includes a first processing unit and a second processing unit, and a first memory unit corresponding to the first processing unit for data access by the first processing unit, and a second memory unit corresponding to the second processing unit for data access by the second processing unit.
Referring to a flowchart of s processing method provided in
Step 1201: In response to the first processing unit satisfying the first criteria, the first processing unit occupies at least part of the storage space of the second memory unit.
Step 1202: In response to the second processing unit satisfying the second criteria, the second processing unit occupies at least part of the storage space of the first memory unit.
For example, the first processing unit and the second processing unit are the CPU and GPU of an electronic device, respectively, and the first memory unit and the second memory unit are the main memory and the video memory of the electronic device, respectively.
The method in the disclosed embodiment can be applied to an electronic device under any one of the two integrated video graphics card configurations and one independent video graphics card configuration provided in the above embodiments.
In one embodiment, for Step 1201, in response to the first processing unit satisfying the first criteria, the first processing unit occupying at least part of the storage space of the second memory unit may specifically include but is not limited to: for the aforementioned independent video graphics card configuration, when the CPU is in in the UMA mode, the CPU occupies all or part of the video memory. For Step 1202, in response to the second processing unit satisfying the second criteria, the second processing unit occupying at least part of the storage space of the first memory unit may specifically include but is not limited to: for the aforementioned two integrated video graphics card configurations, when the GPU is in the above described first load state, third load state or seventh load state, the GPU occupies part of the main memory.
Within the corresponding architectures, the first processing unit and the second processing unit can not only use the memory units provided for themselves, but also use the memory units of other processing units if certain criteria is met. For the specific processes, refer to the above described device embodiments, detail of which will not be repeated here.
As can be seen from the disclosed embodiments, in the electronic devices and processing methods disclosed in the present disclosure, a first processing unit of the electronic device is correspondingly provided with a first memory unit configured for access by the first processing unit, and a second processing unit of the electronic device is correspondingly provided with a second memory unit configured for access by the second processing unit. In addition, the first processing unit occupies at least part of the space of the second memory unit when a first criteria is met, and/or the second processing unit occupies at least part of the space of the first memory unit when the second criteria is met. In other words, the first processing unit and the second processing unit can not only use the memory units set for themselves, but also use the memory units set for other processing units under certain circumstances. The data processing performance of the processing units can thus be improved without adding additional physical memory units. The objective of ensuring/improving the performance of the electronic devices under the premise of as low space occupation as possible is then achieved.
In the present disclosure, the terms “comprising,” “including” or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article, or device comprising a list of elements includes not only those elements, but also others not expressly listed elements, or also include elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase “comprising a . . . ” does not preclude the presence of additional identical elements in a process, method, article, or apparatus that includes the element.
In the embodiments provided in the present disclosure, it should be understood that the disclosed system, device, and method may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division, and there may be other divisions in actual implementation. For example, multiple units or components may be combined or can be integrated into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices, or units, and may also be electrical, mechanical, or other forms of connection.
The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed among multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments of the present disclosure.
In addition, the functional units in the various embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The aforementioned integrated unit can be implemented in the form of a hardware or software functional unit.
A person of ordinary skill in the art can be aware that all or some of the processes in the method embodiments of the present disclosure can be implemented by hardware related to the program instructions. The program may be stored in a computer-readable storage medium. When the program is executed, the processes of the method embodiments may be executed. The aforementioned storage medium includes: a mobile storage medium, a read-only memory (ROM), a magnetic disk, an optical disk, or another medium that can store program codes.
When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or some of the processes of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: a mobile storage medium, a read-only memory (ROM), a magnetic disk, an optical disk, or another medium that can store program codes.
Various embodiments have been described to illustrate the operation principles and exemplary implementations. It should be understood by those skilled in the art that the present disclosure is not limited to the specific embodiments described herein and that various other obvious changes, rearrangements, and substitutions will occur to those skilled in the art without departing from the scope of the present disclosure. Thus, while the present disclosure has been described in detail with reference to the above described embodiments, the present disclosure is not limited to the above described embodiments, but may be embodied in other equivalent forms without departing from the scope of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
202111163102.1 | Sep 2021 | CN | national |