CN115755709B - Method and device for collecting running environment data, electronic equipment and storage medium - Google Patents

Method and device for collecting running environment data, electronic equipment and storage medium Download PDF

Info

Publication number
CN115755709B
CN115755709B CN202211488414.4A CN202211488414A CN115755709B CN 115755709 B CN115755709 B CN 115755709B CN 202211488414 A CN202211488414 A CN 202211488414A CN 115755709 B CN115755709 B CN 115755709B
Authority
CN
China
Prior art keywords
lower computer
environment data
control program
computer control
running environment
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
CN202211488414.4A
Other languages
Chinese (zh)
Other versions
CN115755709A (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.)
Beijing Naura Microelectronics Equipment Co Ltd
Original Assignee
Beijing Naura Microelectronics Equipment Co 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 Beijing Naura Microelectronics Equipment Co Ltd filed Critical Beijing Naura Microelectronics Equipment Co Ltd
Priority to CN202211488414.4A priority Critical patent/CN115755709B/en
Publication of CN115755709A publication Critical patent/CN115755709A/en
Application granted granted Critical
Publication of CN115755709B publication Critical patent/CN115755709B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Stored Programmes (AREA)

Abstract

The application discloses a method, a device, electronic equipment and a storage medium for collecting running environment data, which are used for a lower computer of semiconductor equipment, wherein a lower computer control program is arranged in the lower computer, and the method comprises the following steps: collecting running environment data related to the running of the lower computer control program through a preset process, and storing the running environment data into a preset storage space of the lower computer in a file storage mode; and reading the running environment data from the preset storage space through the lower computer control program, and storing the running environment data into a memory space of the lower computer control program in an object storage mode so as to be accessed by the lower computer control program and an upper computer control program of an upper computer in the semiconductor equipment. The embodiment realizes the stable operation of the lower computer program.

Description

Method and device for collecting running environment data, electronic equipment and storage medium
Technical Field
The application belongs to the technical field of semiconductor equipment, and particularly relates to an operating environment data acquisition method and device, electronic equipment and a storage medium.
Background
The semiconductor device comprises a lower computer and an upper computer, wherein a lower computer control program is arranged in the lower computer, and an upper computer control program is arranged in the upper computer. The lower computer collects and processes the process data of the semiconductor equipment in the process by a lower computer control program, and the lower computer control program is a final executor of all control instructions and a collector of hardware data.
In order to meet the requirements of the performance and stability of the lower computer control program, the running environment data of the lower computer control program is comprehensively collected besides the improvement, perfection and optimization of the lower computer control program. In the related art, the collection of the running environment data of the lower computer is generally implemented by adopting an independent process, specifically, the Monitor is operated as an independent process on the lower computer, which may be an executable program or an executable script program, and is used for collecting the running environment data of the lower computer control program, the running environment data collected by the Monitor is stored in a file, and after the lower computer control program has a problem, whether the running environment is abnormal or not is traced back through the data in the file.
In the above-mentioned collection manner, the data collected by the Monitor cannot be effectively transferred to the lower computer control program in time, so that if the running environment is abnormal, the lower computer program cannot find and take countermeasures in the first time, and therefore the lower computer program cannot stably run.
Disclosure of Invention
The embodiment of the application provides a method, a device, electronic equipment and a storage medium for acquiring running environment data, which are used for solving the problem that a lower computer program cannot run stably.
In a first aspect, an embodiment of the present application provides a method for collecting operating environment data, which is used for a lower computer of a semiconductor device, where a lower computer control program is provided in the lower computer, and includes:
collecting running environment data related to the running of the lower computer control program through a preset process, and storing the running environment data into a preset storage space of the lower computer in a file storage mode;
and reading the running environment data from the preset storage space through the lower computer control program, and storing the running environment data into a memory space of the lower computer control program in an object storage mode so as to be accessed by the lower computer control program and an upper computer control program of an upper computer in the semiconductor equipment.
In a second aspect, an embodiment of the present application provides an operation environment data collection device, which is used for a lower computer of a semiconductor device, where a lower computer control program and a preset storage space are provided in the lower computer, and an object is provided in a memory space of the lower computer control program, where the data collection device includes: the system comprises an information acquisition module and an information conversion module, wherein:
the information acquisition module is used for acquiring running environment data related to the running of the lower computer control program through a preset process and storing the running environment data into a preset storage space of the lower computer in a file storage mode;
the preset storage space is used for storing the running environment data in a file storage mode;
the information conversion module is used for reading the running environment data from the preset storage space through the lower computer control program and storing the running environment data into the memory space of the lower computer control program in an object storage mode;
the memory space is used for being accessed by the lower computer control program and an upper computer control program of an upper computer in the semiconductor device.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction implementing the steps of the method according to the first aspect when executed by the processor.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor perform the steps of the method according to the first aspect.
According to the running environment data acquisition method provided by the embodiment of the application, running environment data related to the running of the lower computer control program is acquired through a preset process, and the running environment data is stored in a preset storage space of the lower computer in a file storage mode; and reading the running environment data from a preset storage space through the lower computer control program, and storing the running environment data into a memory space of the lower computer control program in an object storage mode so as to be accessed by the lower computer control program and an upper computer control program of an upper computer in the semiconductor device. After the collected running environment data is stored in the preset storage space of the lower computer through the preset process, the lower computer control program can read the running environment data from the preset storage space and store the running environment data into the memory space of the lower computer control program, so that the lower computer control program and the upper computer control program can directly perform data access, the lower computer control program can timely and effectively acquire the running environment data, namely, seamless butt joint between the running environment data and the context when the lower computer control program runs is realized, the problem that the lower computer program cannot timely take countermeasures due to the fact that the running environment data are abnormal in the first time is solved, and stable running of the lower computer program is realized.
Drawings
FIG. 1 is a flow chart of a method for collecting operating environment data in an embodiment of the application;
FIG. 2 is a schematic diagram illustrating interaction of the preset process and the running environment data between the lower computer control program according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a preset process collecting and storing operating environment data in an embodiment of the present application;
FIG. 4 is a schematic diagram of a lower computer control program reading and storing operating environment data according to an embodiment of the present application;
FIG. 5 is a block diagram of a module of an operating environment data collection device in an embodiment of the application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
In the related art, a Monitor is operated as an independent process in a lower computer, and is used for collecting the operation environment data of a lower computer control program, the operation environment data collected by the Monitor is stored in a file, and the lower computer control program interacts with an upper computer control program, and whether the operation environment is abnormal or not is traced back through the operation environment data in the file after the problem occurs.
In the acquisition mode of the operation environment data, the lower computer control program can only acquire the operation environment data from the file after the lower computer control program has problems, but cannot acquire the operation environment data from the file at any time, so that the lower computer control program cannot stably and efficiently operate, and the upper computer control program cannot efficiently monitor the lower computer due to the abnormality of the lower computer program.
In view of this, the present application provides the following embodiments to achieve seamless interfacing between the running environment data and the context of the lower computer control program during running.
The data acquisition method provided by the embodiment of the application is described in detail through specific embodiments and application scenes thereof with reference to the accompanying drawings.
Fig. 1 is a flowchart showing steps of a method for collecting operation environment data, which is provided in an embodiment of the present application, and is used for a lower computer of a semiconductor device, in which a lower computer control program is provided, and the method includes the following steps:
step 101: and acquiring running environment data related to the running of the lower computer control program through a preset process, and storing the running environment data into a preset storage space of the lower computer in a file storage mode.
Specifically, the preset process may be, for example, a systmmonitor. Sh process.
The operating environment data related to the execution of the lower computer control program may include CPU utilization information, memory usage information, hard disk space information, process information in the operating system, and the like.
The lower computer collects the running environment data related to the running of the control program of the lower computer through a preset process, and the collection of the running environment data is realized.
In addition, the running environment data is stored in the preset storage space of the lower computer in a file storage mode, so that data transfer is realized in a file mode, the method has universality, the problem that the stored running environment data cannot be read after the operating system of the lower computer is replaced is solved, and compatibility with different operating systems (kernel versions) and board card drive versions is realized.
In addition, before the collecting, by the preset process, the running environment data related to the running of the lower computer control program may further include: and under the condition that the lower computer control program is started, starting the preset process through the lower computer control program.
Specifically, under the condition that the lower computer control program is started, whether a preset process is started or not can be detected, if not, the preset process can be started through the lower computer control program, and further, the running environment data are collected through the preset process, so that smooth and automatic collection of the running environment data is realized.
Step 102: and reading the running environment data from the preset storage space through the lower computer control program, and storing the running environment data into the memory space of the lower computer control program in an object storage mode.
And storing the running environment data into a memory space of the lower computer control program in an object storage mode so as to be accessed by the lower computer control program and an upper computer control program of an upper computer in the semiconductor device.
Specifically, when the lower computer control program reads the running environment data from the preset storage space, the running environment data can be read from the preset storage space through a special thread of the lower computer control program. The proprietary thread may be, for example, a system monitor (SystemMonitor) process. In one embodiment, during the starting process, the lower computer control program starts the proprietary thread to read the running environment data from the preset storage space.
In addition, the running environment data is stored in the memory space of the lower computer control program in an object storage mode, so that the running environment data can be directly and efficiently accessed by the lower computer control program and the upper computer control program, and the monitoring is convenient.
In addition, specifically, under the Linux operating system, the system monitor does not call the operating system interface function system () or the pop () to execute the Shell instruction, but reads the stored running environment data from the preset storage space according to the preset path. For example, the proprietary thread may read the content in the file under the specified directory according to the preset definition, thereby obtaining the running environment data.
In addition, as shown in fig. 2, the preset process stores the running environment data in the preset storage space of the lower computer as a transfer file, the lower computer control program reads the running environment data from the preset storage space of the lower computer through a special thread, and the running environment data is stored in the memory space of the lower computer control program in an object storage mode, so that the running environment data is stored in the memory space of the lower computer control program, the running environment data can be directly read in the lower computer control program, and convenience is provided for the access of the lower computer control program; in addition, the upper computer control program can access the memory space in a remote reading or subscribing callback mode, so that the graphical display of the running environment data is realized, the real-time observation of a user is facilitated, and the efficient access and monitoring of the upper computer control program are realized.
In addition, in one embodiment, the preset process is different from and independent of the lower computer control program, so that the operation of the lower computer control program is not affected when the preset process is problematic, and the operation of the preset process is not affected when the lower computer control program is problematic.
In this way, after the collected running environment data is stored in the preset storage space of the lower computer through the preset process, the lower computer control program can read the running environment data from the preset storage space and store the running environment data in the memory space of the lower computer control program, so that the lower computer control program can read the running environment data in the file and store the running environment data in the memory space of the lower computer control program, the lower computer control program can timely and effectively acquire the running environment data, namely, seamless butt joint between the running environment data and the context when the lower computer control program runs is realized, the problem that the lower computer program cannot find that the running environment data is abnormal in the first time, and cannot take countermeasures in time is solved, stable running of the lower computer program is realized, the upper computer control program can access the memory space in a remote reading or subscribing callback mode, and efficient monitoring of the lower computer is realized.
Furthermore, in one embodiment, the runtime environment data is associated with timestamp information; before the running environment data is stored in the memory space of the lower computer control program in an object storage mode, the running abnormality of the preset process can be determined and alarm information can be sent out under the condition that the running environment data is not updated in a preset period through the time stamp information.
The alarm information may be an indication sound, a flashing light, or the like, and is not particularly limited herein.
Specifically, the operation environment data is associated with time stamp information, so that whether the operation environment data is not updated for a long time can be judged through the time stamp information, if the operation environment data is not updated for a long time, the operation abnormality of a preset process can be determined, and at the moment, alarm information can be sent to prompt a user to check.
In addition, when the running environment data is stored into the preset storage space of the lower computer through the preset process, the running environment data can be stored in a classified mode according to the classified categories, so that the control program of the lower computer can be read accurately.
Specifically, in one embodiment, when the running environment data is stored in a preset storage space of the lower computer in a file storage manner, the running environment data may be classified, and data of different types may be set in folders corresponding to the types.
For example, as one embodiment, the operating environment data includes at least two categories of data: the method comprises the steps of processing numbers of control programs of the lower computer, the number of Controllers (CPUs) of the lower computer, the total number of CPU cores of the lower computer, hard disk capacity information of the lower computer, memory use information of an operating system of the lower computer and information related to CPU consumption of the lower computer.
At this time, as an example, the process number of the lower computer control program may be saved in a folder named as pid_output, the number of CPUs may be saved in a folder named as cpu_output, the total number of CPU cores may be saved in a folder named as core_output, the hard disk capacity information of the lower computer may be saved in a folder named as hd_output, the memory usage information of the operating system of the lower computer and the information related to CPU consumption of the lower computer may be saved in a folder named as top_output, so that different types of running environment data may be stored in separate folders, and the running environment data may be stored and presented in a hierarchical structure of files and folders.
Of course, when the running environment data is read from the preset storage space by the lower computer control program and stored in the storage space of the lower computer control program in an object storage manner, the data of the corresponding category may be read from the folder and stored in the object associated with the category in the memory space. The method realizes that the running environment data of different types are stored in the objects in the lower computer control program in a classified mode, realizes that the running environment data can be directly and efficiently accessed by the lower computer control program and the upper computer control program, and can realize graphical display of the running environment data when the upper computer control program accesses the objects.
It should be noted that, for example, the object in the memory space of the lower computer control program may be a Data object, that is, the Data may be stored in the Data object associated with the class corresponding to the Data in the memory space.
An embodiment of the present application is described below with reference to fig. 3 and 4.
As shown in fig. 3, a flowchart of the steps for collecting and storing the running environment data through the preset process includes the following steps:
firstly, in the starting process of the lower computer control program, a special thread (for example, a system monitor) is started, whether a preset process (for example, a system monitor. Sh) in the lower computer is started or not is detected, and if not, the preset process is started through the lower computer control program.
It should be noted that, the preset process may also be started manually, so as to ensure that the preset process can be started when the preset process is failed to be started by the lower computer control program.
Then, executing Shell instruction, obtaining the process number of the lower computer control program and storing the process number in a folder such as PID_output, obtaining the number of CPUs and the total number of CPU cores and storing the CPU numbers and the total number of CPU cores in the folder such as CPU_output and core_output respectively, obtaining the memory use information of an operating system of the lower computer and the information related to CPU consumption of the lower computer and storing the memory use information and the information in the folder such as top_output, obtaining the hard disk capacity information of the lower computer and storing the hard disk capacity information in the folder such as hd_output.
Specifically, the memory usage information of the operating system of the lower computer may include the total memory, the used number, the idle number, the memory usage rate, and the like; the information related to the CPU consumption of the lower computer may include a process name, a CPU occupancy (%), a memory occupancy (%), etc., and of course, the information related to the CPU consumption of the lower computer may be the N upper-ranked information related to the CPU consumption of the lower computer.
Continuing with the above steps, as shown in fig. 4, the reading and storing of the operating environment data by the lower computer control program may include the steps of:
firstly, in the starting process of the lower computer control program, a special thread (for example, a system monitor) is started, whether a preset process (for example, a system monitor. Sh) in the lower computer is started or not is detected, and if not, the preset process is started through the lower computer control program.
Then, the special thread of the lower computer control program can read the folder PID_output to acquire the process number of the lower computer program, and the process number is set in the associated Data object in the lower computer control program; if the recorded content of the folder is invalid or the recorded time stamp is out of date, sending alarm information;
reading the folder cpu_output through a special thread of the lower computer control program, acquiring the number of the CPUs and setting the number of the CPUs to the associated Data object in the lower computer control program; reading a folder core_output, acquiring the total number of CPU cores and setting the total number of CPU cores into an associated Data object in a lower computer control program; if the recorded content of the folder is invalid or the recorded time stamp is out of date, sending alarm information;
the folder top_output is read by a special thread of the lower computer control program, and information related to CPU consumption of the lower computer, such as runtime information of ten processes in the top ranking of the CPU consumption, is firstly obtained, wherein the information comprises: process name, CPU occupancy rate (%), memory occupancy rate (%) are respectively set to the associated Data object in the lower computer control program; and obtaining the memory usage information of the operating system during running, including: the total memory, the used number, the idle number and the memory utilization rate are respectively set in the associated Data objects in the lower computer control program. If the content recorded by the folder is invalid or the recorded time stamp is out of date, sending out alarm information;
the special thread of the lower computer control program reads the folder hd_output to acquire the hard disk capacity information of the lower computer, and the method comprises the following steps: the root partition utilization (%),/home partition utilization (%), and/boot partition utilization (%) are respectively set in the associated Data objects in the lower computer control program; if the content recorded by the folder is invalid or the recorded time stamp is out of date, sending out alarm information;
therefore, the application realizes the acquisition of the running environment data in the lower computer control program and the seamless connection between the running environment data and the running context of the lower computer control program through the embodiment; in addition, the function of data acquisition of the running environment closely related to the operating system is independent, and the data transfer is carried out in a file mode, so that the system has better universality, and the compatibility problem between the system and different operating systems (kernel versions) and board card drive versions is avoided; in addition, the running environment data is set in the object of the lower computer control program, and can be directly and efficiently accessed by the lower computer control program and the upper computer control program, thereby facilitating the monitoring; in addition, no matter the data acquisition of the running environment or the running state monitoring of the preset process, the automation is realized, and the manual dependence is reduced as much as possible.
Fig. 5 shows a schematic structural diagram of a data acquisition device according to an embodiment of the present application. The data acquisition device is used for the lower computer of semiconductor device, be provided with lower computer control procedure and predetermine storage space in the lower computer, be provided with the memory space in the lower computer control procedure, as shown in fig. 5, the data acquisition device includes: an information acquisition module 501 and an information conversion module 502, wherein:
the information collection module 501 is configured to collect, by using a preset process, running environment data related to the running of the lower computer control program, and store the running environment data in a preset storage space of the lower computer in a file storage manner;
the preset storage space is used for storing the running environment data in a file storage mode;
the information conversion module 502 is configured to read, by the lower computer control program, the running environment data from the preset storage space, and store the running environment data in a memory space of the lower computer control program in an object storage manner;
the memory space is used for being accessed by the lower computer control program and an upper computer control program of an upper computer in the semiconductor device.
In one embodiment, the runtime environment data is associated with time stamp information; the information conversion module 502 is further configured to determine that the preset process is abnormal in operation and send out alarm information when it is determined by the timestamp information that the running environment data is not updated beyond a preset period.
In one embodiment, the information collecting module 501 is configured to classify the running environment data and set data of different categories into folders corresponding to the categories.
In one embodiment, the information conversion module 502 is configured to read data of a corresponding category from the folder, and store the data of the category into an object associated with the category in the memory space.
In one embodiment, the operating environment data includes at least two categories of data: the method comprises the steps of processing numbers of control programs of the lower computer, the number of CPU of a controller of the lower computer, the total number of CPU cores of the lower computer, hard disk capacity information of the lower computer, memory use information of an operating system of the lower computer and information related to CPU consumption of the lower computer.
In one embodiment, the information collecting module 501 is further configured to start the preset process through the lower computer control program when the lower computer control program is started.
In one embodiment, the pre-set process is different and independent of the lower computer control program.
The data acquisition device provided by the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to 4, and in order to avoid repetition, a detailed description is omitted here.
It should be noted that, in the present specification, the embodiment about the operation environment data collection device and the embodiment about the operation environment data collection method in the present specification are based on the same inventive concept, so the specific implementation about the embodiment about the operation environment data collection device may refer to the corresponding implementation about the embodiment about the operation environment data collection method, and the repetition is omitted.
The running environment data acquisition device in the embodiment of the application can be a device, and can also be a component, an integrated circuit or a chip in the terminal. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a cell phone, tablet computer, notebook computer, palm computer, vehicle mounted electronic device, wearable device, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device may be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and embodiments of the present application are not limited in particular.
The data acquisition device in the embodiment of the application can be a device with an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
Based on the same technical concept, the embodiment of the application also provides an electronic device, which is used for executing the above-mentioned operation environment data acquisition method, and fig. 6 is a schematic structural diagram of an electronic device for implementing the embodiments of the application. The electronic devices may vary in configuration or performance, and may include a processor (processor) 610, a communication interface (Communications Interface) 620, a memory (memory) 630, and a communication bus 640, where the processor 610, the communication interface 620, and the memory 630 communicate with each other via the communication bus 640. The processor 610 may call a computer program stored on the memory 630 and executable on the processor 610 to perform the steps of:
collecting running environment data related to the running of the lower computer control program through a preset process, and storing the running environment data into a preset storage space of the lower computer in a file storage mode;
and reading the running environment data from the preset storage space through the lower computer control program, and storing the running environment data into the memory space of the lower computer control program in an object storage mode so as to be accessed by the lower computer control program and an upper computer control program of an upper computer in the semiconductor device.
In one embodiment, the runtime environment data is associated with time stamp information; before the running environment data is stored in the memory space of the lower computer control program in the mode of object storage, the method further comprises the following steps: and under the condition that the running environment data is not updated in a preset period of time according to the timestamp information, determining that the preset process runs abnormally and sending alarm information.
In one embodiment, the storing the running environment data in a preset storage space of the lower computer in a file storage manner includes: classifying the running environment data, and setting data of different categories into folders corresponding to the categories.
In one embodiment, the reading, by the lower computer control program, the running environment data from the preset storage space, and storing the running environment data in a memory space of the lower computer control program in an object storage manner, includes: and reading the data of the corresponding category from the folder, and storing the data of the category into an object associated with the category in a memory space.
In one embodiment, the operating environment data includes at least two categories of data: the method comprises the steps of processing numbers of control programs of the lower computer, the number of CPU of a controller of the lower computer, the total number of CPU cores of the lower computer, hard disk capacity information of the lower computer, memory use information of an operating system of the lower computer and information related to CPU consumption of the lower computer.
In one embodiment, before the collecting, by the preset process, the running environment data related to the running of the lower computer control program, the method further includes: and under the condition that the lower computer control program is started, starting the preset process through the lower computer control program.
In one embodiment, the pre-set process is different and independent of the lower computer control program.
The specific execution steps can refer to the steps of the above embodiment of the operation environment data acquisition method, and the same technical effects can be achieved, so that repetition is avoided, and the description is omitted here.
It should be noted that, the electronic device in the embodiment of the present application includes: a server, a terminal, or other devices besides a terminal.
The above electronic device structure does not constitute a limitation of the electronic device, and the electronic device may include more or less components than illustrated, or may combine some components, or may be different in arrangement of components, for example, an input unit, may include a graphics processor (Graphics Processing Unit, GPU) and a microphone, and a display unit may configure a display panel in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit includes at least one of a touch panel and other input devices. Touch panels are also known as touch screens. Other input devices may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
The memory may be used to store software programs as well as various data. The memory may mainly include a first memory area storing programs or instructions and a second memory area storing data, wherein the first memory area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory may include volatile memory or nonvolatile memory, or the memory may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM), static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (ddr SDRAM), enhanced SDRAM (Enhanced SDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DRRAM).
The processor may include one or more processing units; optionally, the processor integrates an application processor that primarily processes operations involving an operating system, user interface, application programs, and the like, and a modem processor that primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor.
The embodiment of the application also provides a readable storage medium, wherein the readable storage medium stores a program or an instruction, and the program or the instruction realizes each process of the above embodiment of the operation environment data acquisition method when being executed by a processor, and can achieve the same technical effect, so that repetition is avoided and no redundant description is provided herein.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium such as a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
The embodiment of the application further provides a chip, which comprises a processor and a communication interface, wherein the communication interface is coupled with the processor, and the processor is used for running programs or instructions to realize the processes of the embodiment of the method, and can achieve the same technical effects, so that repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (10)

1. An operation environment data acquisition method for a lower computer of a semiconductor device, wherein a lower computer control program is arranged in the lower computer, and the method is characterized by comprising the following steps:
collecting running environment data related to the running of the lower computer control program through a preset process, and storing the running environment data into a preset storage space of the lower computer in a file storage mode;
and reading the running environment data from the preset storage space through the lower computer control program, and storing the running environment data into a memory space of the lower computer control program in an object storage mode so as to be accessed by the lower computer control program and an upper computer control program of an upper computer in the semiconductor equipment.
2. The method of claim 1, wherein the runtime environment data is associated with time stamp information;
before the running environment data is stored in the memory space of the lower computer control program in the mode of object storage, the method further comprises the following steps:
and under the condition that the running environment data is not updated in a preset period of time according to the timestamp information, determining that the preset process runs abnormally and sending alarm information.
3. The method for collecting the operation environment data according to claim 1, wherein storing the operation environment data in a preset storage space of the lower computer in a file storage manner comprises:
classifying the running environment data, and setting data of different categories into folders corresponding to the categories.
4. The method for collecting the running environment data according to claim 3, wherein the step of reading the running environment data from the preset storage space by the lower computer control program and storing the running environment data in a memory space of the lower computer control program in an object storage manner includes:
and reading the data of the corresponding category from the folder, and storing the data of the category into the object associated with the category in the memory space.
5. The method of claim 3 or 4, wherein the operating environment data comprises at least two categories of data: the method comprises the steps of processing numbers of control programs of the lower computer, the number of CPU of a controller of the lower computer, the total number of CPU cores of the lower computer, hard disk capacity information of the lower computer, memory use information of an operating system of the lower computer and information related to CPU consumption of the lower computer.
6. The method for collecting operation environment data according to claim 1, further comprising, before collecting operation environment data related to the operation of the lower computer control program by a preset process:
and under the condition that the lower computer control program is started, starting the preset process through the lower computer control program.
7. The method for collecting data of an operating environment according to claim 1, wherein the preset process is different from and independent of the lower computer control program.
8. An operation environment data acquisition device for a lower computer of a semiconductor device, wherein a lower computer control program and a preset storage space are arranged in the lower computer, and the lower computer control program is provided with a memory space, and the operation environment data acquisition device is characterized in that the data acquisition device comprises: the system comprises an information acquisition module and an information conversion module, wherein:
the information acquisition module is used for acquiring running environment data related to the running of the lower computer control program through a preset process and storing the running environment data into a preset storage space of the lower computer in a file storage mode;
the preset storage space is used for storing the running environment data in a file storage mode;
the information conversion module is used for reading the running environment data from the preset storage space through the lower computer control program and storing the running environment data into the memory space of the lower computer control program in an object storage mode;
the memory space is used for being accessed by the lower computer control program and an upper computer control program of an upper computer in the semiconductor device.
9. An electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the method of operating environment data collection according to any one of claims 1 to 7.
10. A readable storage medium, wherein a program or instructions is stored on the readable storage medium, which when executed by a processor, implements the steps of the method for operating environment data collection according to any one of claims 1-7.
CN202211488414.4A 2022-11-25 2022-11-25 Method and device for collecting running environment data, electronic equipment and storage medium Active CN115755709B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211488414.4A CN115755709B (en) 2022-11-25 2022-11-25 Method and device for collecting running environment data, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211488414.4A CN115755709B (en) 2022-11-25 2022-11-25 Method and device for collecting running environment data, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115755709A CN115755709A (en) 2023-03-07
CN115755709B true CN115755709B (en) 2023-08-18

Family

ID=85337805

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211488414.4A Active CN115755709B (en) 2022-11-25 2022-11-25 Method and device for collecting running environment data, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115755709B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040093220A (en) * 2003-04-22 2004-11-05 김영탁 Mehod for monitoring in network system
CN104951395A (en) * 2014-03-27 2015-09-30 浙江大华技术股份有限公司 Debugging information processing method and device for embedded system
CN111277801A (en) * 2020-03-03 2020-06-12 西安烽火软件科技有限公司 Monitoring video storage system based on content and application method
CN112749062A (en) * 2021-01-18 2021-05-04 广州虎牙科技有限公司 Server program monitoring method and device, computer equipment and storage medium
CN113326288A (en) * 2020-07-15 2021-08-31 阿里巴巴集团控股有限公司 Data processing method and device and electronic equipment
CN113672449A (en) * 2021-07-07 2021-11-19 浙江大华技术股份有限公司 Intelligent operation and maintenance abnormity monitoring method and device, computer equipment and storage medium
CN114978885A (en) * 2022-08-02 2022-08-30 深圳市华曦达科技股份有限公司 Log management method and device, computer equipment and system
CN115129573A (en) * 2022-08-31 2022-09-30 国汽智控(北京)科技有限公司 Program operation monitoring method and device, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10838920B2 (en) * 2017-05-05 2020-11-17 Esoptra NV Plug-in function platform and methods

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040093220A (en) * 2003-04-22 2004-11-05 김영탁 Mehod for monitoring in network system
CN104951395A (en) * 2014-03-27 2015-09-30 浙江大华技术股份有限公司 Debugging information processing method and device for embedded system
CN111277801A (en) * 2020-03-03 2020-06-12 西安烽火软件科技有限公司 Monitoring video storage system based on content and application method
CN113326288A (en) * 2020-07-15 2021-08-31 阿里巴巴集团控股有限公司 Data processing method and device and electronic equipment
CN112749062A (en) * 2021-01-18 2021-05-04 广州虎牙科技有限公司 Server program monitoring method and device, computer equipment and storage medium
CN113672449A (en) * 2021-07-07 2021-11-19 浙江大华技术股份有限公司 Intelligent operation and maintenance abnormity monitoring method and device, computer equipment and storage medium
CN114978885A (en) * 2022-08-02 2022-08-30 深圳市华曦达科技股份有限公司 Log management method and device, computer equipment and system
CN115129573A (en) * 2022-08-31 2022-09-30 国汽智控(北京)科技有限公司 Program operation monitoring method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN115755709A (en) 2023-03-07

Similar Documents

Publication Publication Date Title
CN111767184A (en) Fault diagnosis method and device, electronic equipment and storage medium
CN108388496A (en) A kind of collection method of system log
CN104254840A (en) Memory dump and analysis in a computer system
CN100472468C (en) Computer system, computer network and method
CN110427258B (en) Resource scheduling control method and device based on cloud platform
US20140068325A1 (en) Test case result processing
CN106909468A (en) A kind of computer fault diagnosis method based on UEFI firmwares
US20120084436A1 (en) Mechanism for accessing and processing monitoring data resulting from customized monitoring of system activities
US10713162B1 (en) System and method for computer data garbage collection acceleration using peer to peer data transfers
CN116340053A (en) Log processing method, device, computer equipment and medium for system crash
CN115543746A (en) Graphics processor monitoring method, system and device and electronic equipment
TW200405695A (en) Accessibility system events mechanism and method
CN115755709B (en) Method and device for collecting running environment data, electronic equipment and storage medium
CN112100036B (en) Page performance monitoring method and system based on PaaS front-end engine
CN102750212B (en) Embedded system method for diagnosing faults and the embedded system being provided with fault diagnosis
CN115952227A (en) Data acquisition system and method, electronic device and storage medium
CN114385368A (en) Method and device for flashing pre-written log
CN112783789B (en) Adaptation test method, device and computer readable storage medium
CN113064895B (en) Incremental updating method, device and system for map
KR20100050098A (en) Image processing apparatus and control method thereof
CN111428117A (en) Data acquisition method and device for application program
CN101751283A (en) Virtual machine monitor, virtual machine system and client operation system state acquiring method
CN111258676B (en) Module preloading method, device, equipment and readable storage medium
CN114253752A (en) Application crash processing method, device, equipment and medium
US7395528B1 (en) Mechanism for tracing during boot

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