CN110716697B - Information processing method and equipment - Google Patents

Information processing method and equipment Download PDF

Info

Publication number
CN110716697B
CN110716697B CN201910935722.9A CN201910935722A CN110716697B CN 110716697 B CN110716697 B CN 110716697B CN 201910935722 A CN201910935722 A CN 201910935722A CN 110716697 B CN110716697 B CN 110716697B
Authority
CN
China
Prior art keywords
storage space
target storage
equipment
target
initialization
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910935722.9A
Other languages
Chinese (zh)
Other versions
CN110716697A (en
Inventor
赫传奇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201910935722.9A priority Critical patent/CN110716697B/en
Publication of CN110716697A publication Critical patent/CN110716697A/en
Application granted granted Critical
Publication of CN110716697B publication Critical patent/CN110716697B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • G06F3/0632Configuration or reconfiguration of storage systems by initialisation or re-initialisation of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4403Processor initialisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application discloses an information processing method, which is applied to first equipment and comprises the following steps: responding to an instruction for starting the first equipment, and sending request information to second equipment connected with the first equipment; the request information is used for requesting a target storage space of which initialization is completed by the second equipment; acquiring first feedback information sent by second equipment aiming at the request information, and initializing hardware equipment of the first equipment based on a target storage space so as to finish starting the first equipment; the first feedback information is used for indicating that the first device can utilize the target storage space of the second device. The embodiment of the application also discloses a first device and a second device.

Description

Information processing method and equipment
Technical Field
The present application relates to, but not limited to, the field of computer technologies, and in particular, to an information processing method and apparatus.
Background
With the rapid development of science and technology, people have higher and higher requirements on the performance of various electronic devices. Currently, electronic devices (e.g., servers) are capable of supporting large amounts of storage space to accomplish the processing of large amounts of data. However, when the electronic device is started, the storage space needs to be initialized first, and after the storage space is available, other hardware devices in the electronic device can be initialized continuously to complete the starting of the device. Nowadays, people gradually enter a fast-paced and efficient life mode, and the starting speed of electronic equipment in the related art is very slow, so that the time is wasted and the efficiency is low.
Disclosure of Invention
In view of this, embodiments of the present application are intended to provide an information processing method and device, and the technical solution of the present application is implemented as follows:
an information processing method applied to a first device, the method comprising:
responding to an instruction for starting the first equipment, and sending request information to second equipment connected with the first equipment; the request information is used for requesting a target storage space of which initialization is completed by the second device;
acquiring first feedback information sent by the second device aiming at the request information, and initializing hardware equipment of the first device based on the target storage space so as to complete the starting of the first device;
wherein the first feedback information is used for indicating that the first device can utilize a target storage space of the second device.
Optionally, after the responding to the instruction to start the first device, the method further includes:
initializing a first memory space of the first device.
Optionally, after initializing the hardware device of the first device based on the target storage space, the method includes:
monitoring an initialization state of a first storage space of the first device;
when the first storage space is initialized, transferring the initialization data in the target storage space to the first storage space of the first device, and sending a notification message for releasing the target storage space to the second device; wherein the initialization data characterizes data obtained by initializing hardware devices of the first device.
Optionally, the initializing the hardware device of the first device based on the target storage space includes:
acquiring a logical address of a target storage space of the second device, and converting the logical address of the target storage space into a target physical address;
initializing a hardware device of the first device using the target physical address.
Optionally, the method further includes:
monitoring the initialization state of a first storage space of the first equipment when the first feedback information sent by the second equipment aiming at the request information is not received within a preset time length or the second feedback information is received within the preset time length;
after the initialization of the first storage space is completed, initializing the hardware device of the first device based on the first storage space to complete the starting of the first device.
An information processing method applied to a second device, the method comprising:
receiving request information sent by first equipment connected with the second equipment; the request information is used for requesting a target storage space of which initialization is completed by the second device;
and determining a target storage space based on the request information and the storage state of the second storage space of the second device, and sending first feedback information to the first device, so that the first device initializes the hardware device of the first device based on the target storage space.
Optionally, the determining a target storage space based on the request information and a storage state of a second storage space of the second device includes:
and if the size of the available storage space in the second storage space is smaller than the size of the target storage space, controlling a target process meeting a first preset condition in the second storage space of the second device to enter a dormant state, and releasing the storage space occupied by the target process to obtain the target storage space.
Optionally, the method further includes:
if the size of the available storage space in the second storage space is smaller than that of a target storage space and a target process meeting the first preset condition does not exist in the second storage space, sending second feedback information to the first equipment; wherein the second feedback information is used for indicating information that the request for the target storage space of the first device fails.
A first device, the first device comprising: a first processor, a first memory, and a first communication bus;
the first communication bus is used for realizing communication connection between the first processor and the first memory;
the first processor is configured to execute a program of an information processing method stored in the first memory to realize the steps of:
responding to an instruction for starting the first equipment, and sending request information to second equipment connected with the first equipment; the request information is used for requesting a target storage space of which initialization is completed by the second device;
acquiring first feedback information sent by the second device aiming at the request information, and initializing hardware equipment of the first device based on the target storage space so as to complete the starting of the first device;
wherein the first feedback information is used for indicating that the first device can utilize a target storage space of the second device.
A second device, the second device comprising: a second processor, a second memory, and a second communication bus;
the second communication bus is used for realizing communication connection between the second processor and the second memory;
the second processor is configured to execute a program of the information processing method stored in the second memory to realize the steps of:
receiving request information sent by first equipment connected with the second equipment; the request information is used for requesting a target storage space of which initialization is completed by the second device;
and determining a target storage space based on the request information and the storage state of the second storage space of the second device, and sending first feedback information to the first device, so that the first device initializes the hardware device of the first device based on the target storage space.
A computer-readable storage medium storing one or more programs, which are executable by one or more processors, to implement the steps of the above-described information processing method.
According to the information processing method and the information processing device, when an instruction for starting the first device is responded, request information is sent to the second device connected with the first device; the request information is used for requesting a target storage space of which initialization is completed by the second equipment; acquiring first feedback information sent by second equipment aiming at the request information, and initializing hardware equipment of the first equipment based on a target storage space so as to finish starting the first equipment; the first feedback information is used for indicating that the first device can utilize the target storage space of the second device, so that the first device can initialize the hardware device of the first device by borrowing the target storage space of the second device which has completed initialization when the first device is started, the starting time of the first device is saved, and the starting speed of the first device is improved.
Drawings
Fig. 1 is a schematic flowchart of an information processing method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of another information processing method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another information processing method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another information processing method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a first apparatus provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a second apparatus provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In practical applications, the process of starting the electronic device includes the initialization of a storage space, the initialization of a hardware device, the start of an operating system, and the like. Specifically, after the electronic device is powered on and started, the storage space needs to be initialized first, after the storage space is initialized successfully, the hardware device of the electronic device is initialized based on the storage space, so that the operating system is started, and after the operating system is started, the electronic device is started. Illustratively, the start-up of firmware; the Firmware boot includes, but is not limited to, a Unified Extensible Firmware Interface (UEFI) boot, a Basic Input Output System (BIOS) boot, and a Bootloader (Bootloader).
Specifically, the UEFI is started up by Pre-EF Initialization (PEI), Driver Execution Environment (DXE), and other phases. In the PEI phase, a starting mode of a memory space is detected, the memory space is initialized, a driver execution environment is prepared for the DXE phase, parameters required by the DXE phase are packaged in a switching Block (HOB) list mode, and the parameters are transmitted to the DXE phase. Enough initialized memory space is available in the DXE phase, so that the initialization work of UEFI hardware equipment can be completed.
At present, an electronic device can support a large amount of Memory space, for example, the Memory space may be a Random Access Memory (RAM), a Read-Only Memory (ROM), or a Dual-Inline-Memory-Modules (DIMMs) in the electronic device. When the memory space is a DIMM, the initialization time of a single DIMM on a particular platform is fixed, so the larger the number of DIMMs, the longer the time it takes for an electronic device to start up on the DIMM initialization. For example, taking Intel Purley 8Socket Server as an example, if there are 96 DIMMs (12 × 8), where 12 represents the maximum amount of memory supported by a single CPU and 8 represents the amount of CPU. The time required for the electronic device to completely initialize the DIMM is about 5 minutes, and after the initialization of the DIMM is completed, the hardware device can start the electronic device by utilizing the DIMM, which seriously affects the starting speed of the electronic device.
In view of the above problem, an embodiment of the present application provides an information processing method applied to a first device, and as shown in fig. 1, the method includes the following steps:
step 101, responding to an instruction for starting the first device, and sending request information to a second device connected with the first device.
The request information is used for requesting the target storage space of which the initialization of the second device is completed.
In this embodiment, the first device may be a server, a computer, or a like device, and the second device may be a device that has already completed initialization of the storage space before the first device starts the first storage space, including but not limited to a Baseboard Management Control (BMC) device or a peripheral component interconnect (PCIe) device that has already completed initialization of the storage space.
The BMC device is a device used for upgrading firmware of a machine, checking machine devices and other operations when the machine is not started. The BMC device is configured with its own Memory space, such as a Random Access Memory (RAM). The PCIe device, as a high-speed serial computer expansion bus, has a high transmission rate, and includes PCIe flash memory cards, PCIe video memories, and the like, wherein the PCIe devices also have their own storage spaces, such as RAM and the like.
The memory space of the BMC device or the PCIe device is small, so the memory space can be initialized within 5 seconds after being powered on. After the power-on sequence is completed, the first device can enter the boot program, which usually takes 5 seconds later, so the memory space of the BMC device or the PCIe device is usually initialized before the first device is booted. Therefore, either the BMC device or the PCIe device may be used as the second device. The first device initializes the hardware device of the first device by borrowing the target storage space of which the initialization of the BMC device or the PCIe device is completed.
In the embodiment of the application, the first device and the second device can be in data connection, and the first device and the second device communicate in a wired or wireless mode and can send communication information. When the first device is started, request information may be directly sent to the second device to request the initialized storage space in the second device to perform a starting process of the first device.
Therefore, the hardware device of the first device is initialized by using the storage space of the BMC device or the PCIe device, the initialization of the hardware device can be completed without waiting for the initialization of the first storage space of the first device, and the hardware device can be initialized while the first storage space of the first device is initialized, so that the starting speed of the first device is greatly improved, and the starting time of the first device is saved.
And 102, acquiring first feedback information sent by the second device aiming at the request information, and initializing the hardware device of the first device based on the target storage space to complete the starting of the first device.
The first feedback information is used for indicating that the first device can utilize the target storage space of the second device.
In this embodiment of the application, the first device receives the first feedback information of the second device, which may indicate that the second device agrees that the first device uses its target storage space, so that the first device directly uses the target storage space to initialize the hardware device of the first device, and further, based on the initialized hardware device, starts the operating system to complete the start of the device.
In the information processing method provided by the embodiment of the application, when an instruction for starting the first device is responded, request information is sent to the second device connected with the first device; the request information is used for requesting a target storage space of which initialization is completed by the second equipment; acquiring first feedback information sent by second equipment aiming at the request information, and initializing hardware equipment of the first equipment based on a target storage space so as to finish starting the first equipment; the first feedback information is used for indicating that the first device can utilize the target storage space of the second device, so that the first device can initialize the hardware device of the first device by borrowing the target storage space of the second device which has completed initialization when the first device is started, the starting time of the first device is saved, and the starting speed of the first device is improved.
An embodiment of the present application provides an information processing method applied to a second device, and as shown in fig. 2, the method includes the following steps:
step 201, receiving request information sent by a first device connected with a second device.
The request information is used for requesting the target storage space of which the initialization of the second device is completed.
In this embodiment, the second device may be a device that has completed initialization of the memory space before the first device starts the first memory space, including but not limited to a BMC device or a PCIe device that has completed initialization of the memory space.
In practical application, the memory space of the BMC device or the PCIe device is small, so the memory space can be initialized within 5 seconds after being powered on. After the power-on sequence is completed, the first device can enter the boot program, which usually takes 5 seconds later, so the memory space of the BMC device or the PCIe device is usually initialized before the first device is booted. Therefore, either the BMC device or the PCIe device may be used as the second device. The first device initializes the hardware device of the first device by borrowing the target storage space of which the initialization of the BMC device or the PCIe device is completed.
In the embodiment of the application, the first device and the second device can be in data connection, and the first device and the second device communicate in a wired or wireless mode and can send communication information. The second electronic device may receive the request information sent by the first device through the data connection.
Step 202, determining a target storage space based on the request information and the storage state of the second storage space of the second device, and sending first feedback information to the first device, so that the first device initializes the hardware device of the first device based on the target storage space.
In the embodiment of the present application, the storage status at least includes the size of the total storage space and the size of the available storage space.
The second device extracts the size of the storage space required by the first device from the request information according to the request information, detects the storage state of the second storage space and determines whether the available storage space currently possessed by the second device can meet the size of the storage space requested by the first device. And when the size of the required storage space can not be met, sending feedback information to inform the first equipment. And if the condition is met, the second device sends first feedback information to the first device, and the characteristic that the second device maps the target storage space which is initialized.
In the information processing method provided by the embodiment of the application, when an instruction for starting the first device is responded, request information is sent to the second device connected with the first device; the request information is used for requesting a target storage space of which initialization is completed by the second equipment; acquiring first feedback information sent by second equipment aiming at the request information, and initializing hardware equipment of the first equipment based on a target storage space so as to finish starting the first equipment; the first feedback information is used for indicating that the first device can utilize the target storage space of the second device, so that the first device can initialize the hardware device of the first device by borrowing the target storage space of the second device which has completed initialization when the first device is started, the starting time of the first device is saved, and the starting speed of the first device is improved.
Based on the foregoing embodiments, an embodiment of the present application provides an information processing method, which is shown in fig. 3 and includes the following steps:
step 301, the first device initializes a first storage space of the first device in response to an instruction to start the first device, and sends request information to a second device connected to the first device.
The request information is used for requesting the target storage space of which the initialization of the second device is completed.
In the embodiment of the application, when the first device receives the start instruction, the first device initializes the first storage space of the first device, and simultaneously sends information requesting that the second device has completed the initialized target storage space to the second device connected with the first device.
Step 302, the second device receives request information sent by the first device connected to the second device.
Here, the second device acquires the storage state of the second storage space after receiving the request information. The memory state includes, in addition to the total memory size, the size of the available memory, the size of the memory occupied by each process running, and the priority of each process.
Further, the second device determines the size of the currently available storage space of the second device and the size of the storage space of the low-priority process that the second device can close according to the storage state of the second storage space.
Step 303, if the size of the available storage space of the second device is larger than the size of the target storage space, obtaining the target storage space, and directly entering step 305, and if the size of the available storage space of the second device is smaller than the size of the target storage space, executing step 304.
The size of the available storage space of the second device is larger than that of the target storage space, and the target storage space is directly determined from the second storage space.
Step 304, if the size of the available storage space in the current second storage space is smaller than the size of the target storage space, the second device controls the target process meeting the first preset condition in the second storage space of the second device to enter a dormant state, and releases the storage space occupied by the target process to obtain the target storage space.
The second device receives the request information of the target storage space sent by the first device, and the second device detects whether the size of the available storage space in the second storage space can meet the size of the target storage space of the request information. The size of the available storage space in the second storage space is used for representing the second storage space in which the second device has completed initialization, and the available storage space can be directly mapped to the first device, and the first device can directly utilize the available storage space. In the process of preparing the target storage space by the second device, the first device may continuously detect a state of preparing the target storage space by the second device, specifically, the state may be obtained by sending request information indicating whether preparation is completed to the second device, or the second device may continuously send information indicating a state of preparing the target storage space to the first device.
When the available storage space of the first device is smaller than the size of the target storage space required by the first device, the second device controls the target process meeting the first preset condition in the second storage space to enter a dormant state. The process meeting the first preset condition may specifically represent a low-priority process; the sleep state may specifically indicate that any operation (except the power-on button) performed on the target process is an invalid operation, and the operation may be started only after the target process is in the standby state, and all real-time data run by the target process is stored in the hard disk, and all unnecessary hardware is turned off to save power. When the target process enters the dormant state, the storage space occupied by the process is released, and the available space of the second storage space is superposed with the storage space released by the process to obtain the target storage space. And the second equipment sends the first feedback information to the first equipment so that the first equipment initializes the hardware equipment of the first equipment based on the target storage space.
In other embodiments of the present application, if the size of the available storage space in the second storage space is smaller than the size of the target storage space, and there is no target process that meets the first preset condition in the second storage space, the second feedback information is sent to the first device. This process is described in detail in example four.
And 305, the second device sends the first feedback information to the first device, so that the first device initializes the hardware device of the first device based on the target storage space.
The first feedback information is used for indicating that the first device can utilize the target storage space of the second device.
Step 306, the first device obtains the first feedback information sent by the second device for the request information, obtains the logical address of the target storage space of the second device, and converts the logical address of the target storage space into the target physical address.
In this embodiment of the present application, the first device may set a preset duration, where the preset duration represents a time required by the first device to request the target storage space of the second device. And receiving the first feedback information within a preset time length, and representing that the request of the first equipment borrowing the target storage space from the second equipment is successful. For example, the predetermined time may be 5 seconds, 10 seconds, 15 seconds, 25 seconds, etc., and is not limited herein.
And when the first equipment does not receive the first feedback information within the preset time length, the first equipment is considered to fail to request the target storage space of the second equipment. In this embodiment, the first device may utilize a target storage space of the second device, and obtain a logical address of the target storage space, where the logical address refers to an address of a memory unit (memory cell), a storage unit (storage element), and a network host (network host), and the logical address may also be referred to as a virtual address. The logical address may be translated into a physical address by an address translator (address translator) or a mapping function. The Physical Address refers to information stored in a memory in units of bytes, and in order to correctly store or acquire the information, each byte unit is given a unique memory Address, which is called a Physical Address (Physical Address) and is also called an actual effective Address or an absolute Address. The internal memory of the logical address needs to be calculated or transformed in an addressing mode to obtain an actual effective address, namely a physical address.
Step 307, the first device initializes the hardware device of the first device by using the target physical address, so as to complete the startup of the first device.
In this embodiment of the present application, the first device initializes the hardware device of the first device by using the actual effective address, so as to complete the start of the first device.
Step 308, the first device monitors the initialization state of the first storage space of the first device.
In this embodiment of the application, the first device continuously monitors whether the first storage space of the first device is initialized, and the initialized state includes that the first storage space is initialized or the first storage space is being initialized.
Step 309, when the first storage space is initialized, the first device transfers the initialization data in the target storage space to the first storage space of the first device, and sends a notification message for releasing the target storage space to the second device.
The initialization data represents data obtained by initializing hardware equipment of the first equipment.
In this embodiment of the application, the first device performs initialization operation by using the first parameter of the second device as the target physical address and the second parameter as the mapping length corresponding to each hardware device, and data corresponding to the initialized hardware device is generated in the initialization process. When the initialization of the first storage space of the first device is completed, the first device carries the data obtained by initializing the hardware device to the first storage space. After the initialized data transportation is finished, the first equipment returns the target storage space to the second equipment and sends notification information to the second equipment; wherein the notification information characterizes a message to return to the target storage space.
In an embodiment, when the second device receives a notification message that the first device returns the target storage space, the second device recovers the target storage space, releases the recovered target storage space, and wakes up the target process in the sleep state, where the target process represents a low-priority process.
In another embodiment, when the first device crashes during the booting process, the second device automatically recovers the mapped target storage space from the first device after a specified time and wakes up the low priority process in a sleep state.
It should be noted that, for the explanation of the same steps or concepts in the embodiments of the present application and in other embodiments, reference may be made to the description in other embodiments, which are not repeated herein.
In the information processing method provided by the embodiment of the application, when an instruction for starting the first device is responded, request information is sent to the second device connected with the first device; the request information is used for requesting a target storage space of which initialization is completed by the second equipment; acquiring first feedback information sent by second equipment aiming at the request information, and initializing hardware equipment of the first equipment based on a target storage space so as to finish starting the first equipment; the first feedback information is used for indicating that the first device can utilize the target storage space of the second device, so that the first device can initialize the hardware device of the first device by borrowing the target storage space of the second device which has completed initialization when the first device is started, the starting time of the first device is saved, and the starting speed of the first device is improved.
Based on the foregoing embodiments, an embodiment of the present application provides an information processing method, which is shown in fig. 4 and includes the following steps:
step 401, the first device initializes a first storage space of the first device in response to an instruction to start the first device, and sends request information to a second device connected to the first device.
Step 402, the second device receives request information sent by the first device connected with the second device.
Step 403, if the size of the available storage space in the current second storage space is smaller than the size of the target storage space, and there is no target process meeting the first preset condition in the second storage space, the second device sends second feedback information to the first device.
The second feedback information is used for indicating the information of failure of requesting the target storage space of the first device.
In this embodiment of the application, if the size of the available storage space in the second storage space of the current second device is still smaller than the size of the target storage space required by the first device, and there is no low-priority process that can release the storage space in the second storage space, it is described that the second storage space of the second device cannot satisfy the request of the target storage space required by the first device. The second device will send information to the first device that the request for the target storage space failed.
Step 404, the first device does not receive the first feedback information sent by the second device for the request information within the preset time length or receives the second feedback information within the preset time length, and monitors the initialization state of the first storage space of the first device.
In an embodiment of the present application, in an embodiment, the first device does not receive the available target storage space of the second device within a preset duration, or in another embodiment, the first device receives a request message requesting that the target storage space of the second device fails within a preset duration, and the hardware device of the first device initializes the hardware device by using the first storage space after waiting for the initialization of the first storage space of the first device to be completed. At this time, the first device will continuously monitor the initialization state of the first storage space. Wherein the initialization state includes that the first storage space has been initialized or the first storage space is being initialized.
Step 405, after the first storage space is initialized, the first device initializes the hardware device of the first device based on the first storage space to complete the starting of the first device.
In the embodiment of the application, after the first storage space of the first device is initialized, the first device initializes the hardware device by using the storage space. And when the hardware equipment completes initialization, representing that the first equipment completes starting operation.
In one embodiment, the first device first detects whether the memory DIMM has completed initialization at startup, and for example, the memory DIMM of the first device will already be initialized at warm restart, i.e., memory is available, and the memory DIMM of the first device will not need to be reinitialized. At this time, the hardware device of the first device is initialized directly by using the already initialized memory space DIMM of the first device.
It should be noted that, for the explanation of the same steps or concepts in the embodiments of the present application and in other embodiments, reference may be made to the description in other embodiments, which are not repeated herein.
In the information processing method provided by the embodiment of the application, when an instruction for starting the first device is responded, request information is sent to the second device connected with the first device; the request information is used for requesting a target storage space of which initialization is completed by the second equipment; acquiring first feedback information sent by second equipment aiming at the request information, and initializing hardware equipment of the first equipment based on a target storage space so as to finish starting the first equipment; the first feedback information is used for indicating that the first device can utilize the target storage space of the second device, so that the first device can initialize the hardware device of the first device by borrowing the target storage space of the second device which has completed initialization when the first device is started, the starting time of the first device is saved, and the starting speed of the first device is improved.
A first device provided in an embodiment of the present application may be applied to an information processing method provided in embodiments corresponding to fig. 1, fig. 3, and fig. 4, and as shown in fig. 5, the first device 5 includes: a first processor 51, a first memory 52 and a first communication bus 53, wherein:
the first processor 51 is configured to execute a program of an information processing method stored in the first memory 52 to realize the steps of:
responding to an instruction for starting the first equipment, and sending request information to second equipment connected with the first equipment; the request information is used for requesting a target storage space of which initialization is completed by the second equipment;
acquiring first feedback information sent by second equipment aiming at the request information, and initializing hardware equipment of the first equipment based on a target storage space so as to finish starting the first equipment;
the first feedback information is used for indicating that the first device can utilize the target storage space of the second device.
The first processor 51 is configured to execute the instructions stored in the first memory 52 for responding to the boot of the first device, so as to implement the following steps:
a first memory space of a first device is initialized.
The first processor 51 is configured to execute the target-based storage space stored in the first memory 52, and after initializing the hardware device of the first device, to implement the following steps:
monitoring an initialization state of a first storage space of a first device;
when the first storage space is initialized, transferring the initialization data in the target storage space to the first storage space of the first device, and sending a notification message for releasing the target storage space to the second device; the initialization data represents data obtained by initializing hardware equipment of the first equipment.
The first processor 51 is configured to execute the target-based storage space stored in the first memory 52, and initialize hardware devices of the first device to implement the following steps:
acquiring a logical address of a target storage space of the second device, and converting the logical address of the target storage space into a target physical address;
the hardware device of the first device is initialized using the target physical address.
The first processor 51 is configured to execute a program of an information processing method stored in the first memory 52 to realize the steps of:
the method comprises the steps that first feedback information sent by second equipment aiming at request information is not received in a preset time length or second feedback information is received in the preset time length, and the initialization state of a first storage space of the first equipment is monitored;
after the first storage space is initialized, the hardware device of the first device is initialized based on the first storage space to complete the starting of the first device.
It should be noted that, in this embodiment, a specific implementation process of the step executed by the first processor 51 may refer to an implementation process in the information processing method provided in the embodiments corresponding to fig. 1, fig. 3, and fig. 4, and is not described herein again.
According to the first device provided by the embodiment of the application, the hardware device of the first device is initialized by using the target storage space of the second device so as to finish the starting of the first device, the starting time of the first device is shortened, and the starting rate of the first device is improved.
The second device provided in the embodiment of the present application may be applied to an information processing method provided in the embodiments corresponding to fig. 2, fig. 3, and fig. 4, and as shown in fig. 6, the second device 6 includes: a second processor 61, a second memory 62, and a second communication bus 63, wherein:
the second processor 61 is configured to execute a program of an information processing method stored in the second memory 62 to realize the steps of:
receiving request information sent by first equipment connected with second equipment; the request information is used for requesting a target storage space of which initialization is completed by the second equipment;
and determining a target storage space based on the request information and the storage state of the second storage space of the second device, and sending first feedback information to the first device, so that the first device initializes the hardware device of the first device based on the target storage space.
The second processor 61 is configured to execute the storage status of the second storage space of the second device and the request information stored in the second memory 62, and determine the target storage space, so as to implement the following steps:
and if the size of the available storage space in the current second storage space is smaller than that of the target storage space, controlling a target process meeting a first preset condition in the second storage space of the second device to enter a dormant state, and releasing the storage space occupied by the target process to obtain the target storage space.
The second processor 61 is configured to execute a program of an information processing method stored in the second memory 62 to realize the steps of:
if the size of the available storage space in the current second storage space is smaller than that of the target storage space and the target process meeting the first preset condition does not exist in the second storage space, sending second feedback information to the first equipment; the second feedback information is used for indicating the information of failure of requesting the target storage space of the first device.
It should be noted that, in this embodiment, a specific implementation process of the step executed by the second processor 61 may refer to an implementation process in the information processing method provided in the embodiments corresponding to fig. 2, fig. 3, and fig. 4, and is not described herein again.
The second device provided by the embodiment of the application can provide the initialized target storage space to the first device, so that the first device initializes the hardware device of the first device by using the target storage space. The starting time of the first equipment is shortened, and the starting speed of the first equipment is improved.
Based on the foregoing embodiments, the present application provides a computer-readable storage medium, where one or more programs are stored, and the one or more programs are executable by one or more processors to implement the steps of the information processing method corresponding to fig. 1 to 4.
The computer-readable storage medium may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read Only Memory (EPROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a magnetic Random Access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical Disc, or a Compact Disc Read-Only Memory (CD-ROM); and may be various electronic devices such as mobile phones, computers, tablet devices, personal digital assistants, etc., including one or any combination of the above-mentioned memories.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method described in the embodiments of the present application.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (9)

1. An information processing method applied to a first device, the method comprising:
responding to an instruction for starting the first equipment, and sending request information to second equipment connected with the first equipment; the request information is used for requesting a target storage space of which initialization is completed by the second device;
acquiring first feedback information sent by the second device aiming at the request information, and initializing hardware equipment of the first device based on the target storage space so as to complete the starting of the first device;
wherein the first feedback information is used for indicating that the first device can utilize a target storage space of the second device;
after initializing the hardware device of the first device based on the target storage space, the method further includes:
monitoring an initialization state of a first storage space of the first device;
when the first storage space is initialized, transferring the initialization data in the target storage space to the first storage space of the first device, and sending a notification message for releasing the target storage space to the second device; wherein the initialization data characterizes data obtained by initializing hardware devices of the first device.
2. The method of claim 1, after the responding to the instruction to initiate the first device, further comprising:
initializing a first memory space of the first device.
3. The method of claim 1 or 2, the initializing a hardware device of the first device based on the target storage space, comprising:
acquiring a logical address of a target storage space of the second device, and converting the logical address of the target storage space into a target physical address;
initializing a hardware device of the first device using the target physical address.
4. The method of claim 1 or 2, further comprising:
monitoring the initialization state of a first storage space of the first equipment when the first feedback information sent by the second equipment aiming at the request information is not received within a preset time length or the second feedback information is received within the preset time length;
after the initialization of the first storage space is completed, initializing the hardware device of the first device based on the first storage space to complete the starting of the first device.
5. An information processing method applied to a second device, the method comprising:
receiving request information sent by first equipment connected with the second equipment; the request information is used for requesting a target storage space of which initialization is completed by the second device;
determining a target storage space based on the request information and the storage state of a second storage space of the second device, and sending first feedback information to the first device, so that the first device initializes the hardware device of the first device based on the target storage space;
receiving a notification message sent by the first device for releasing the target storage space; the notification message is sent when the first device completes initialization of the first storage space and transfers initialization data in the target storage space to the first storage space of the first device.
6. The method of claim 5, the determining a target storage space based on the request information and a storage state of a second storage space of the second device, comprising:
and if the size of the available storage space in the second storage space is smaller than the size of the target storage space, controlling a target process meeting a first preset condition in the second storage space of the second device to enter a dormant state, and releasing the storage space occupied by the target process to obtain the target storage space.
7. The method of claim 6, further comprising:
if the size of the available storage space in the second storage space is smaller than that of a target storage space and a target process meeting the first preset condition does not exist in the second storage space, sending second feedback information to the first equipment; wherein the second feedback information is used for indicating information that the request for the target storage space of the first device fails.
8. A first processing device, the first processing device comprising a first device, the first device comprising: a first processor, a first memory, and a first communication bus;
the first communication bus is used for realizing communication connection between the first processor and the first memory;
the first processor is configured to execute a program of an information processing method stored in the first memory to realize the steps of:
responding to an instruction for starting the first equipment, and sending request information to second equipment connected with the first equipment; the request information is used for requesting a target storage space of which initialization is completed by the second device;
acquiring first feedback information sent by the second device aiming at the request information, and initializing hardware equipment of the first device based on the target storage space so as to complete the starting of the first device;
wherein the first feedback information is used for indicating that the first device can utilize a target storage space of the second device;
monitoring an initialization state of a first storage space of the first device; when the first storage space is initialized, transferring the initialization data in the target storage space to the first storage space of the first device, and sending a notification message for releasing the target storage space to the second device; wherein the initialization data characterizes data obtained by initializing hardware devices of the first device.
9. A second processing device, the second processing device comprising a second device, the second device comprising: a second processor, a second memory, and a second communication bus;
the second communication bus is used for realizing communication connection between the second processor and the second memory;
the second processor is configured to execute a program of the information processing method stored in the second memory to realize the steps of:
receiving request information sent by first equipment connected with the second equipment; the request information is used for requesting a target storage space of which initialization is completed by the second device;
determining a target storage space based on the request information and the storage state of a second storage space of the second device, and sending first feedback information to the first device, so that the first device initializes the hardware device of the first device based on the target storage space;
receiving a notification message sent by the first device for releasing the target storage space; the notification message is sent when the first device completes initialization of the first storage space and transfers initialization data in the target storage space to the first storage space of the first device.
CN201910935722.9A 2019-09-29 2019-09-29 Information processing method and equipment Active CN110716697B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910935722.9A CN110716697B (en) 2019-09-29 2019-09-29 Information processing method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910935722.9A CN110716697B (en) 2019-09-29 2019-09-29 Information processing method and equipment

Publications (2)

Publication Number Publication Date
CN110716697A CN110716697A (en) 2020-01-21
CN110716697B true CN110716697B (en) 2021-09-14

Family

ID=69211174

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910935722.9A Active CN110716697B (en) 2019-09-29 2019-09-29 Information processing method and equipment

Country Status (1)

Country Link
CN (1) CN110716697B (en)

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1900908A (en) * 2005-07-21 2007-01-24 鸿富锦精密工业(深圳)有限公司 Computer quick start system and method
CN100362472C (en) * 2005-12-06 2008-01-16 海信集团有限公司 Method for dynamic guiding of inserted equipment system
CN100472443C (en) * 2006-04-10 2009-03-25 联想(北京)有限公司 Method and system for quick start-up for computer
CN102207881B (en) * 2011-07-07 2014-01-22 电子科技大学 Quick operation system start-up method based on Android
CN102890634B (en) * 2011-07-19 2016-01-27 联想(北京)有限公司 The method of the operating system of terminal device and startup terminal device
US9666241B2 (en) * 2012-01-19 2017-05-30 Quixant Plc Firmware protection and validation
JP6390322B2 (en) * 2014-10-03 2018-09-19 富士通株式会社 Information processing apparatus, information processing method, and program
EP3163441B1 (en) * 2014-11-10 2018-09-19 Huawei Technologies Co. Ltd. Computer device and memory starting method for computer device
CN107958155A (en) * 2016-10-17 2018-04-24 深圳市中兴微电子技术有限公司 A kind of system initialization method and device
CN106990958B (en) * 2017-03-17 2019-12-24 联想(北京)有限公司 Expansion assembly, electronic equipment and starting method
CN107092443B (en) * 2017-04-28 2020-04-07 杭州宏杉科技股份有限公司 Data migration method and device
CN109408122B (en) * 2018-09-28 2021-05-18 联想(北京)有限公司 Equipment starting method, electronic equipment and computer storage medium

Also Published As

Publication number Publication date
CN110716697A (en) 2020-01-21

Similar Documents

Publication Publication Date Title
US9182998B2 (en) Remote bios update in system having multiple computers
JP6132009B2 (en) Method and system for confirming proper operation of computing device after system change
KR101861724B1 (en) Selective power management for pre-boot firmware updates
RU2439678C2 (en) Initial download of operating system in separate stages
US7650490B2 (en) Embedded device for implementing a boot process on a host
US20170228228A1 (en) Remote launch of deploy utility
US8489871B2 (en) Preboot execution environment test device and method
JP2009266205A (en) Method and apparatus for repairing multi-controller system
EP3319283B1 (en) Server data port learning at data switch
CN116243996B (en) Service operation switching method and device, storage medium and electronic device
CN105721534A (en) System and method for network-based iscsi boot parameter deployment
CN116521209B (en) Upgrading method and device of operating system, storage medium and electronic equipment
TWI764454B (en) Firmware corruption recovery
US10572151B2 (en) System and method to allocate available high bandwidth memory to UEFI pool services
CN117519804A (en) Method, device and equipment for terminating server pre-starting execution environment guiding process
CN110716697B (en) Information processing method and equipment
CN110399167B (en) Firmware starting method and device, equipment and storage medium
CN115495161B (en) BIOS option modification validation method and device and storage medium
CN113986357B (en) Method, apparatus and storage medium for establishing communication link
JP3732764B2 (en) OS startup method and OS startup system
KR100463838B1 (en) Method for downloading and supporting nfs for uia boot loader
CN115658106A (en) BIOS updating method and device, electronic equipment and storage medium
CN117369841A (en) Firmware activation method, device, related equipment and computer readable storage medium
CN118227277A (en) Method and device for executing on-chip operation, storage medium and electronic equipment
CN117270977A (en) Method, system, electronic equipment and storage medium for updating SMBIOS power supply information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant