CN111209051A - Optimization acceleration method and device based on domestic operating system - Google Patents

Optimization acceleration method and device based on domestic operating system Download PDF

Info

Publication number
CN111209051A
CN111209051A CN202010033490.0A CN202010033490A CN111209051A CN 111209051 A CN111209051 A CN 111209051A CN 202010033490 A CN202010033490 A CN 202010033490A CN 111209051 A CN111209051 A CN 111209051A
Authority
CN
China
Prior art keywords
optimization
acceleration
target
item
mode
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.)
Granted
Application number
CN202010033490.0A
Other languages
Chinese (zh)
Other versions
CN111209051B (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.)
Qianxin Technology Group Co Ltd
Secworld Information Technology Beijing Co Ltd
Original Assignee
Qianxin Technology Group Co Ltd
Secworld Information Technology Beijing 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 Qianxin Technology Group Co Ltd, Secworld Information Technology Beijing Co Ltd filed Critical Qianxin Technology Group Co Ltd
Priority to CN202010033490.0A priority Critical patent/CN111209051B/en
Publication of CN111209051A publication Critical patent/CN111209051A/en
Application granted granted Critical
Publication of CN111209051B publication Critical patent/CN111209051B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • 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/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading
    • 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
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the invention provides an optimization acceleration method and device based on a domestic operating system, wherein the method comprises the following steps: if a first trigger action for starting optimization acceleration is detected, acquiring an initialization mode of the Linux system, and acquiring a startup optimization acceleration starting item of the Linux system in a mode corresponding to the type of the initialization mode; and determining a target optimization acceleration starting item needing optimization acceleration according to the startup optimization acceleration starting item, and processing the target optimization acceleration starting item by adopting a mode corresponding to the initialization mode type. The device performs the above method. The method and the device provided by the embodiment of the invention can realize optimization and acceleration aiming at the domestic operating system, can adapt to various initialization modes of the Linux system, and improve the universality of the technology.

Description

Optimization acceleration method and device based on domestic operating system
Technical Field
The invention relates to the technical field of network security, in particular to an optimization acceleration method and device based on a domestic operating system.
Background
The optimization acceleration comprises the steps of sorting and closing unnecessary startup items of the computer and clearing cache files, so that the computer is clean and tidy, and the running speed of the computer is improved. Common caches include "browser cache", "system garbage file", and "recycle bin garbage file", and such caches occupy large system resources with long-term use of the system. For the services of the boot self-starting of the installed software, the boot speed is slow, and the unnecessary self-starting services occupy the system resources.
The methods for realizing optimization acceleration in the prior art are all directed at windows operating systems, and no method for realizing optimization acceleration is provided for domestic operating systems, such as the winning numbers kylin, Galaxy kylin, depth and the like; moreover, the domestic operating system is usually a Linux system, the Linux system has different initialization modes, and in order to ensure the universality of the optimization acceleration method for the different initialization modes, an optimization acceleration method based on the domestic operating system, which can adapt to multiple initialization modes of the Linux system and has good universality, is urgently needed to solve the problems.
Disclosure of Invention
Aiming at the problems in the prior art, the embodiment of the invention provides an optimization acceleration method and device based on a domestic operating system.
The embodiment of the invention provides an optimization acceleration method based on a domestic operating system, which comprises the following steps:
if a first trigger action for starting optimization acceleration is detected, acquiring an initialization mode of the Linux system, and acquiring a startup optimization acceleration starting item of the Linux system in a mode corresponding to the type of the initialization mode;
and determining a target optimization acceleration starting item needing optimization acceleration according to the startup optimization acceleration starting item, and processing the target optimization acceleration starting item in a mode corresponding to the initialization mode type so as to enable the target optimization acceleration starting item not to be started when the Linux system is started.
Wherein, the determining a target optimization acceleration starting item needing optimization acceleration according to the startup optimization acceleration starting item comprises:
and displaying the boot optimization acceleration starting item, and if a second trigger action triggered by the user aiming at the boot optimization acceleration starting item is detected, determining the target optimization acceleration starting item according to the second trigger action.
Wherein the initialization mode type comprises a systemd mode; correspondingly, the obtaining of the boot optimization accelerated boot entry of the Linux system in a manner corresponding to the initialization manner type includes:
and acquiring a boot optimization acceleration starting item of the Linux system by adopting a command system corresponding to the systemd mode.
The initialization mode type comprises a software operation level mode based on service; correspondingly, the obtaining of the boot optimization accelerated boot entry of the Linux system in a manner corresponding to the initialization manner type includes:
and acquiring a file which is under a target directory rci.d and starts with S corresponding to the current operation level of the Linux system by adopting a software operation level mode based on service.
Processing the target optimization acceleration starting item by adopting a mode corresponding to the initialization mode type, wherein the processing comprises the following steps:
adopting a command system mctl to control that the target optimization accelerated boot item is not started when the Linux system is started;
or deleting the target file corresponding to the target optimization acceleration starting item and beginning with the S in the target directory rci.d.
The optimization and acceleration method based on the domestic operating system further comprises the following steps:
if a first trigger action for starting optimization acceleration is detected, acquiring a removable system cache file;
and displaying the system cache file, and clearing the target system cache file if a third trigger action for determining the target system cache file needing to be cleared is detected.
The system cache file comprises at least one of a browser cache file, a system garbage cache file and a recycle bin cache file.
The embodiment of the invention provides an optimized accelerating device based on a domestic operating system, which comprises:
the acquiring unit is used for acquiring an initialization mode of the Linux system if a first trigger action for starting optimization acceleration is detected, and acquiring a startup optimization acceleration starting item of the Linux system in a mode corresponding to the type of the initialization mode;
and the optimization acceleration unit is used for determining a target optimization acceleration starting item needing optimization acceleration according to the startup optimization acceleration starting item, and processing the target optimization acceleration starting item in a mode corresponding to the initialization mode type so as to enable the target optimization acceleration starting item not to be started when the Linux system is started.
An embodiment of the present invention provides an electronic device, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein,
the processor, when executing the program, implements the method steps of:
if a first trigger action for starting optimization acceleration is detected, acquiring an initialization mode of the Linux system, and acquiring a startup optimization acceleration starting item of the Linux system in a mode corresponding to the type of the initialization mode;
and determining a target optimization acceleration starting item needing optimization acceleration according to the startup optimization acceleration starting item, and processing the target optimization acceleration starting item in a mode corresponding to the initialization mode type so as to enable the target optimization acceleration starting item not to be started when the Linux system is started.
An embodiment of the invention provides a non-transitory computer readable storage medium having a computer program stored thereon, which when executed by a processor implements the following method steps:
if a first trigger action for starting optimization acceleration is detected, acquiring an initialization mode of the Linux system, and acquiring a startup optimization acceleration starting item of the Linux system in a mode corresponding to the type of the initialization mode;
and determining a target optimization acceleration starting item needing optimization acceleration according to the startup optimization acceleration starting item, and processing the target optimization acceleration starting item in a mode corresponding to the initialization mode type so as to enable the target optimization acceleration starting item not to be started when the Linux system is started.
An embodiment of the present invention provides a computer program product, where the computer program product includes computer-executable instructions, and when executed, the computer-executable instructions implement the following method steps:
if a first trigger action for starting optimization acceleration is detected, acquiring an initialization mode of the Linux system, and acquiring a startup optimization acceleration starting item of the Linux system in a mode corresponding to the type of the initialization mode;
and determining a target optimization acceleration starting item needing optimization acceleration according to the startup optimization acceleration starting item, and processing the target optimization acceleration starting item in a mode corresponding to the initialization mode type so as to enable the target optimization acceleration starting item not to be started when the Linux system is started.
The optimization acceleration method and device based on the domestic operating system provided by the embodiment of the invention adopt a mode corresponding to the initialization mode type of the Linux system to obtain a startup optimization acceleration starting item; the target optimization acceleration starting item is processed by adopting a mode corresponding to the initialization mode type, so that the optimization acceleration aiming at a domestic operating system can be realized, various initialization modes of a Linux system can be adapted, and the universality of the technology is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a flowchart of an embodiment of an optimization and acceleration method based on a domestic operating system according to the present invention;
FIG. 2 is a schematic structural diagram of an embodiment of an optimized accelerator apparatus based on a domestic operating system according to the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of an embodiment of an optimization and acceleration method based on a domestic operating system, and as shown in fig. 1, the optimization and acceleration method based on the domestic operating system provided in the embodiment of the present invention includes the following steps:
s101: and if the first trigger action for starting the optimized acceleration is detected, acquiring the initialization mode of the Linux system, and acquiring the startup optimized acceleration starting item of the Linux system in a mode corresponding to the type of the initialization mode.
Specifically, if a first trigger action for starting optimization acceleration is detected, an initialization mode of the Linux system is obtained, and a startup optimization acceleration starting item of the Linux system is obtained in a mode corresponding to the initialization mode type. The method steps can be executed by a computer device, in particular a terminal. The first trigger action may be an action triggered by a user and used for clicking a "start optimization" button, and if the terminal detects the action, the terminal acquires an initialization mode of the Linux system. The initialization mode of the Linux system can be understood as a boot startup management mode, and the types of the initialization mode of the current Linux system include a service-based software running level mode and a system mode, which are respectively described as follows:
for the service-based software operation level mode:
the run level defines which tasks can be completed in the current state (or run level) of the Linux system, which has 7 run levels (run levels):
operation level 0: in a system shutdown state, the default operation level of the system cannot be set to 0, otherwise, the system cannot be started normally;
operation level 1: the single-user working state and root authority are used for system maintenance and remote login prohibition;
operation level 2: multiuser state (no NFS);
operation level 3: a complete multi-user state (with NFS) enters a console command line mode after logging in;
operation level 4: the system is not used and reserved;
operation level 5: the X11 console enters a graphic GUI mode after logging in;
operation level 6: the system is normally closed and restarted, the default operation level cannot be set to 6, otherwise, the system cannot be normally started;
principle of the operational level of the system:
1. under directory/etc/rc.d/init.d there are many service scripts, commonly referred to as services (services).
2. Under/etc/rc.d, there are 7 directories named rc 0.d-rc 6.d, corresponding to 7 operation levels of the system.
And 3, each directory corresponding to rc 0.d-rc 6.d is provided with a plurality of symbol link files, the link files point to service script files under the init.d directory, the naming rule is K + nn + service name or S + nn + service name, and nn is two digits.
4. The system will enter one of the corresponding rc0.d-rc6.d directories according to the specified operation level, and search the link files under the directories according to the file name sequence:
for files starting with K, the system will terminate the corresponding service;
for files starting with S, the system will start the corresponding service.
For the system mode:
system md is another emerging initialization approach, and many daemon processes use sockets to communicate. To speed up and improve system startup parallelism, the system creates these sockets at startup, but only if a service connection request is received for a socket will the relevant task be initiated. In this way, it is not necessary to start the service at system initialization, but only at the first request. Services that need to use other facilities may be blocked until they are available, so when starting a process, only those services waiting for other processes need to be blocked.
Expanding on the concept of waiting for service, systems have used autocos to define load points, so that the actual loading of a file system, although available, may be delayed until some process attempts to open a file on the file system or use a file. These concepts not only delay the start-up of the service until needed, but also reduce the need to check for dependencies between services, since the service interface is ready before the service itself is available for a long time.
Acquiring the boot optimization accelerated boot entry of the Linux system in a manner corresponding to the initialization manner type may specifically include: and acquiring a boot optimization acceleration starting item of the Linux system by adopting a command system corresponding to the systemd mode. The system mctl is a system tool that is primarily responsible for controlling the system and service manager. The specific implementation method for obtaining the boot optimization accelerated boot entry of the Linux system through the command system is a mature technology in the field and is not described any more.
And acquiring a file which is under a target directory rci.d and starts with S corresponding to the current operation level of the Linux system by adopting a software operation level mode based on service. Referring to the above description, if the current operation level of the Linux system is the operation level 3, the corresponding target directory rci.d is rc3.d, and further the file beginning with S under the directory rc3.d is obtained, and the description of the file beginning with S may refer to the above discussion and will not be repeated.
The power-on optimization acceleration start-up items may include bluetooth, Avahi, modem manager, etc.
S102: and determining a target optimization acceleration starting item needing optimization acceleration according to the startup optimization acceleration starting item, and processing the target optimization acceleration starting item in a mode corresponding to the initialization mode type so as to enable the target optimization acceleration starting item not to be started when the Linux system is started.
Specifically, a target optimization acceleration start item needing optimization acceleration is determined according to the boot optimization acceleration start item, and the target optimization acceleration start item is processed in a mode corresponding to the initialization mode type, so that the target optimization acceleration start item is not started when the Linux system is booted. May further include: and displaying the boot optimization acceleration starting item, and if a second trigger action triggered by the user aiming at the boot optimization acceleration starting item is detected, determining the target optimization acceleration starting item according to the second trigger action. The start-up optimization acceleration starting item can be displayed on an interface UI of the terminal. The terminal can display all the optimized acceleration starting items needing optimized acceleration on the interface UI, and a user can independently select and determine the target optimized acceleration starting items needing optimized acceleration, and the target optimized acceleration starting items needing optimized acceleration can be not changed, namely, all the default optimized acceleration starting items needing optimized acceleration are used as the target optimized acceleration starting items; and a part of the optimized acceleration starting items can be autonomously selected from all the optimized acceleration starting items needing optimized acceleration and used as target optimized acceleration starting items. The second trigger action may include: and clicking a confirmed option box when the autonomous selection of a part of the optimized accelerated starting items is realized, and then clicking a button for confirming the optimized starting optimized accelerated starting item. The processing the target optimization acceleration start item by adopting a mode corresponding to the initialization mode type may specifically include: when the Linux system is started, the command system mctl is adopted to control that the target optimization accelerated start item is not started, the step is a processing mode corresponding to the systemd mode, and particularly, the implementation mode of controlling the non-start optimization accelerated start item by the command system mctl is a mature technology in the field and is not described again.
Or deleting the target file corresponding to the target optimization acceleration starting item and beginning with the S in the target directory rci.d. And rci.d represents that the ith in rc0.d-rc6.d is the target directory. Referring to the above example, the target file beginning with S corresponding to the user confirmation to perform the optimization acceleration boot entry is deleted in the directory rc3.d, and if the user confirmation to perform the optimization acceleration boot entry is bluetooth, the target file beginning with S is the file beginning with S corresponding to bluetooth. It can be understood that, since the target file beginning with S is deleted, all updated files beginning with S do not include the target file, so that the target optimized accelerated boot entry corresponding to the target file is not enabled when the Linux system is booted, and the boot speed of the optimized accelerated domestic operating system is further achieved.
The optimization acceleration method based on the domestic operating system provided by the embodiment of the invention adopts a mode corresponding to the initialization mode type of the Linux system to obtain a startup optimization acceleration starting item; the target optimization acceleration starting item is processed by adopting a mode corresponding to the initialization mode type, so that the optimization acceleration aiming at a domestic operating system can be realized, various initialization modes of a Linux system can be adapted, and the universality of the technology is improved.
On the basis of the above embodiment, determining a target optimization acceleration start item that needs optimization acceleration according to the boot optimization acceleration start item includes:
specifically, the boot optimization accelerated starting item is displayed, and if a second trigger action triggered by the user for the boot optimization accelerated starting item is detected, the target optimization accelerated starting item is determined according to the second trigger action. Reference is made to the above description and no further description is made.
The optimization and acceleration method based on the domestic operating system provided by the embodiment of the invention realizes that the user autonomously determines the target optimization and acceleration starting item, and improves the applicability of the technology.
On the basis of the above embodiment, the initialization mode type includes a system mode; correspondingly, the obtaining of the boot optimization accelerated boot entry of the Linux system in a manner corresponding to the initialization manner type includes:
specifically, a command system mctl corresponding to the systemd mode is adopted to obtain a boot optimization acceleration starting item of the Linux system. Reference is made to the above description and no further description is made.
The optimization acceleration method based on the domestic operating system provided by the embodiment of the invention adopts the command system corresponding to the systemd mode to obtain the startup optimization acceleration starting item of the Linux system, further can adapt to various initialization modes of the Linux system, and improves the universality of the technology.
On the basis of the above embodiment, the initialization mode type includes a service-based software operation level mode; correspondingly, the obtaining of the boot optimization accelerated boot entry of the Linux system in a manner corresponding to the initialization manner type includes:
specifically, a software running level mode based on service is adopted to obtain a file beginning with S under a target directory rci.d corresponding to the current running level of the Linux system. Reference is made to the above description and no further description is made.
The optimization and acceleration method based on the domestic operating system provided by the embodiment of the invention adopts a service-based software running level mode to acquire the files beginning with the S under the target directory rci.d corresponding to the current running level of the Linux system, further can adapt to various initialization modes of the Linux system, and improves the universality of the technology.
On the basis of the above embodiment, processing the target optimization acceleration start item by using a method corresponding to the initialization method type includes:
specifically, when the Linux system is started up, a command system mctl is adopted to control that the target optimization acceleration starting item is not started; reference is made to the above description and no further description is made.
Specifically, or, the target file beginning with S corresponding to the target optimization acceleration start item is deleted in the target directory rci.d. Reference is made to the above description and no further description is made.
According to the optimization and acceleration method based on the domestic operating system, provided by the embodiment of the invention, the target optimization and acceleration starting item is processed through the processing modes corresponding to the system mode and the service-based software running level mode, so that not only can the optimization and acceleration aiming at the domestic operating system be realized, but also various initialization modes of a Linux system can be adapted, and the universality of the technology is improved.
On the basis of the above embodiment, the optimization acceleration method based on the domestic operating system further includes:
and if the first trigger action for enabling the optimization acceleration is detected, acquiring the erasable system cache file.
Specifically, if a first trigger action for enabling optimization acceleration is detected, a removable system cache file is obtained. That is, the user triggers the same first trigger action, so that the boot speed optimization and the running speed optimization after boot for the domestic operating system can be simultaneously realized, wherein the running speed optimization after boot is realized by the removed system cache file. It should be noted that the erasable system cache file refers to a system cache file that does not affect the normal operation of the system. The system cache file may include at least one of a browser cache file, a system garbage cache file, and a recycle bin cache file, that is, the three types of system cache files may be combined arbitrarily and used as the system cache file. The detailed description of the first trigger action is not repeated.
And displaying the system cache file, and clearing the target system cache file if a third trigger action for determining the target system cache file needing to be cleared is detected.
Specifically, the system cache file is displayed, and if a third trigger action for determining the target system cache file needing to be cleared is detected, the target system cache file is cleared. The third trigger action may include the actions of clicking on the ok box when autonomously selecting a portion of the system cache file to be purged, and then clicking on the "ok clear target system cache file" button. The display of the system cache file refers to the description of displaying the boot optimization acceleration starting item, and is not repeated. It can be understood that after the target system cache file is cleared, part of the cache is released, thereby improving the running speed of the system after starting.
According to the optimization and acceleration method based on the domestic operating system, provided by the embodiment of the invention, the target system cache file is cleared, so that the optimization and acceleration aiming at the domestic operating system can be further realized, the method can be suitable for various initialization modes of a Linux system, and the universality of the technical scheme is improved.
On the basis of the foregoing embodiment, specifically, the system cache file includes at least one of a browser cache file, a system garbage cache file, and a recycle bin cache file. The browser caching file may include: and cleaning a software cache of the browser, an access history record of the browser, a cookie cache record, website storage, a form history, a current session and the like.
The system garbage cache file may include: the system comprises a system temporary file, a core file generated by software operation crash, an old version software cache file, a root directory user directory cache file and the like.
A recycle bin cache file may be understood as a file in the recycle bin occupying a cache.
The optimization and acceleration method based on the domestic operating system provided by the embodiment of the invention can further remove various types of system cache files comprehensively, thereby obviously improving the running speed of the domestic operating system.
Fig. 2 is a schematic structural diagram of an embodiment of an optimized acceleration device based on a domestic operating system according to the present invention, and as shown in fig. 2, an embodiment of the present invention provides an optimized acceleration device based on a domestic operating system, which includes an obtaining unit 201 and an optimized acceleration unit 202, where:
the obtaining unit 201 is configured to obtain an initialization mode of the Linux system if a first trigger action for enabling optimization acceleration is detected, and obtain a boot optimization acceleration start item of the Linux system in a mode corresponding to an initialization mode type; the optimization acceleration unit 202 is configured to determine a target optimization acceleration start item that needs to be optimized and accelerated according to the boot optimization acceleration start item, and process the target optimization acceleration start item in a manner corresponding to the initialization manner type, so that the target optimization acceleration start item is not enabled when the Linux system is booted.
Specifically, the obtaining unit 201 is configured to obtain an initialization mode of the Linux system if a first trigger action for enabling optimization acceleration is detected, and obtain a boot optimization acceleration start item of the Linux system in a mode corresponding to an initialization mode type; the optimization acceleration unit 202 is configured to determine a target optimization acceleration start item that needs to be optimized and accelerated according to the boot optimization acceleration start item, and process the target optimization acceleration start item in a manner corresponding to the initialization manner type, so that the target optimization acceleration start item is not enabled when the Linux system is booted.
The optimized accelerating device based on the domestic operating system provided by the embodiment of the invention adopts a mode corresponding to the initialization mode type of the Linux system to obtain a startup optimized accelerating starting item; the target optimization acceleration starting item is processed by adopting a mode corresponding to the initialization mode type, so that the optimization acceleration aiming at a domestic operating system can be realized, various initialization modes of a Linux system can be adapted, and the universality of the technology is improved.
On the basis of the foregoing embodiment, the optimization accelerating unit 202 is specifically configured to: and displaying the boot optimization acceleration starting item, and if a second trigger action triggered by the user aiming at the boot optimization acceleration starting item is detected, determining the target optimization acceleration starting item according to the second trigger action.
The optimization accelerating device based on the domestic operating system provided by the embodiment of the invention realizes that the user autonomously determines the target optimization accelerating starting item, and improves the applicability of the technology.
On the basis of the above embodiment, the initialization mode type includes a system mode; correspondingly, the obtaining unit 201 is specifically configured to: and acquiring a boot optimization acceleration starting item of the Linux system by adopting a command system corresponding to the systemd mode.
The optimized accelerator based on the domestic operating system provided by the embodiment of the invention adopts the command systemctl corresponding to the systemd mode to obtain the startup optimized accelerated startup item of the Linux system, further can adapt to various initialization modes of the Linux system, and improves the universality of the technology.
On the basis of the above embodiment, the initialization mode type includes a service-based software operation level mode; correspondingly, the obtaining unit 201 is specifically configured to: and acquiring a file which is under a target directory rci.d and starts with S corresponding to the current operation level of the Linux system by adopting a software operation level mode based on service.
The optimization accelerating device based on the domestic operating system provided by the embodiment of the invention adopts a service-based software running level mode to acquire the files which are under the target directory rci.d and start with S and correspond to the current running level of the Linux system, so that the optimization accelerating device further can adapt to various initialization modes of the Linux system, and the universality of the technology is improved.
On the basis of the foregoing embodiment, the optimization accelerating unit 202 is specifically configured to: adopting a command system mctl to control that the target optimization accelerated boot item is not started when the Linux system is started; or deleting the target file corresponding to the target optimization acceleration starting item and beginning with the S in the target directory rci.d.
The optimization accelerating device based on the domestic operating system provided by the embodiment of the invention processes the target optimization accelerating start item through the processing modes corresponding to the systemd mode and the service-based software running level mode, not only can realize the optimization acceleration aiming at the domestic operating system, but also can adapt to various initialization modes of a Linux system, and improves the universality of the technology.
On the basis of the above embodiment, the optimization accelerating device based on the domestic operating system is further configured to: if a first trigger action for starting optimization acceleration is detected, acquiring a removable system cache file; and displaying the system cache file, and clearing the target system cache file if a third trigger action for determining the target system cache file needing to be cleared is detected.
The optimization accelerating device based on the domestic operating system provided by the embodiment of the invention can further realize optimization acceleration aiming at the domestic operating system by clearing the target system cache file, can adapt to various initialization modes of a Linux system, and improves the universality of the technical scheme.
On the basis of the above embodiment, the system cache file includes at least one of a browser cache file, a system garbage cache file, and a recycle bin cache file.
The optimization accelerating device based on the domestic operating system provided by the embodiment of the invention can further completely clear various system cache files, thereby obviously improving the running speed of the domestic operating system.
The optimization accelerating device based on the domestic operating system provided by the embodiment of the present invention may be specifically configured to execute the processing flows of the above method embodiments, and the functions of the optimization accelerating device are not described herein again, and reference may be made to the detailed description of the method embodiments.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 3, the electronic device includes: a processor (processor)301, a memory (memory)302, and a bus 303;
the processor 301 and the memory 302 complete communication with each other through a bus 303;
the processor 301 is configured to call program instructions in the memory 302 to perform the methods provided by the above-mentioned method embodiments, including: if a first trigger action for starting optimization acceleration is detected, acquiring an initialization mode of the Linux system, and acquiring a startup optimization acceleration starting item of the Linux system in a mode corresponding to the type of the initialization mode; and determining a target optimization acceleration starting item needing optimization acceleration according to the startup optimization acceleration starting item, and processing the target optimization acceleration starting item in a mode corresponding to the initialization mode type so as to enable the target optimization acceleration starting item not to be started when the Linux system is started.
The present embodiment discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the method provided by the above-mentioned method embodiments, for example, comprising: if a first trigger action for starting optimization acceleration is detected, acquiring an initialization mode of the Linux system, and acquiring a startup optimization acceleration starting item of the Linux system in a mode corresponding to the type of the initialization mode; and determining a target optimization acceleration starting item needing optimization acceleration according to the startup optimization acceleration starting item, and processing the target optimization acceleration starting item in a mode corresponding to the initialization mode type so as to enable the target optimization acceleration starting item not to be started when the Linux system is started.
The present embodiments provide a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the methods provided by the above method embodiments, for example, including: if a first trigger action for starting optimization acceleration is detected, acquiring an initialization mode of the Linux system, and acquiring a startup optimization acceleration starting item of the Linux system in a mode corresponding to the type of the initialization mode; and determining a target optimization acceleration starting item needing optimization acceleration according to the startup optimization acceleration starting item, and processing the target optimization acceleration starting item in a mode corresponding to the initialization mode type so as to enable the target optimization acceleration starting item not to be started when the Linux system is started.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (11)

1. An optimization and acceleration method based on a domestic operating system, wherein the domestic operating system is a Linux system, and the optimization and acceleration method based on the domestic operating system comprises the following steps:
if a first trigger action for starting optimization acceleration is detected, acquiring an initialization mode of the Linux system, and acquiring a startup optimization acceleration starting item of the Linux system in a mode corresponding to the type of the initialization mode;
and determining a target optimization acceleration starting item needing optimization acceleration according to the startup optimization acceleration starting item, and processing the target optimization acceleration starting item in a mode corresponding to the initialization mode type so as to enable the target optimization acceleration starting item not to be started when the Linux system is started.
2. The optimization and acceleration method based on the domestic operating system according to claim 1, wherein the determining a target optimization acceleration start item that needs optimization and acceleration according to the boot-up optimization acceleration start item comprises:
and displaying the boot optimization acceleration starting item, and if a second trigger action triggered by the user aiming at the boot optimization acceleration starting item is detected, determining the target optimization acceleration starting item according to the second trigger action.
3. The optimizing acceleration method based on domestic operating system of claim 1, wherein said initialization means type comprises a systemd means; correspondingly, the obtaining of the boot optimization accelerated boot entry of the Linux system in a manner corresponding to the initialization manner type includes:
and acquiring a boot optimization acceleration starting item of the Linux system by adopting a command system corresponding to the systemd mode.
4. The optimization and acceleration method based on the domestic operating system according to claim 1, wherein the initialization mode type includes a service-based software run-level mode; correspondingly, the obtaining of the boot optimization accelerated boot entry of the Linux system in a manner corresponding to the initialization manner type includes:
and acquiring a file which is under a target directory rci.d and starts with S corresponding to the current operation level of the Linux system by adopting a software operation level mode based on service.
5. The optimization and acceleration method based on the domestic operating system according to claim 3 or 4, wherein the processing of the target optimization and acceleration start-up item by the way corresponding to the initialization way type comprises:
adopting a command system mctl to control that the target optimization accelerated boot item is not started when the Linux system is started;
or deleting the target file corresponding to the target optimization acceleration starting item and beginning with the S in the target directory rci.d.
6. The optimizing and accelerating method based on the domestic operating system as claimed in claim 1, further comprising:
if a first trigger action for starting optimization acceleration is detected, acquiring a removable system cache file;
and displaying the system cache file, and clearing the target system cache file if a third trigger action for determining the target system cache file needing to be cleared is detected.
7. The optimization acceleration method based on domestic operating system of claim 6, wherein the system cache file comprises at least one of a browser cache file, a system garbage cache file and a recycle bin cache file.
8. An optimization accelerating device based on a domestic operating system, wherein the domestic operating system is a Linux system, and the optimization accelerating device based on the domestic operating system comprises:
the acquiring unit is used for acquiring an initialization mode of the Linux system if a first trigger action for starting optimization acceleration is detected, and acquiring a startup optimization acceleration starting item of the Linux system in a mode corresponding to the type of the initialization mode;
and the optimization acceleration unit is used for determining a target optimization acceleration starting item needing optimization acceleration according to the startup optimization acceleration starting item, and processing the target optimization acceleration starting item in a mode corresponding to the initialization mode type so as to enable the target optimization acceleration starting item not to be started when the Linux system is started.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1 to 7 are implemented when the processor executes the program.
10. A non-transitory computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
11. A computer program product comprising computer executable instructions which, when executed, implement the steps of a method according to any one of claims 1 to 7.
CN202010033490.0A 2020-01-13 2020-01-13 Optimization acceleration method and device based on domestic operating system Active CN111209051B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010033490.0A CN111209051B (en) 2020-01-13 2020-01-13 Optimization acceleration method and device based on domestic operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010033490.0A CN111209051B (en) 2020-01-13 2020-01-13 Optimization acceleration method and device based on domestic operating system

Publications (2)

Publication Number Publication Date
CN111209051A true CN111209051A (en) 2020-05-29
CN111209051B CN111209051B (en) 2023-07-28

Family

ID=70785118

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010033490.0A Active CN111209051B (en) 2020-01-13 2020-01-13 Optimization acceleration method and device based on domestic operating system

Country Status (1)

Country Link
CN (1) CN111209051B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112199896A (en) * 2020-10-26 2021-01-08 云中芯半导体技术(苏州)有限公司 Chip logic comprehensive optimization acceleration method based on machine learning

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102707966A (en) * 2012-04-12 2012-10-03 腾讯科技(深圳)有限公司 Method and device for acceleratively starting operating system, and method, device and terminal for generating prefetched information
WO2014127695A1 (en) * 2013-02-21 2014-08-28 北京奇虎科技有限公司 System running acceleration method and apparatus
CN104252363A (en) * 2013-06-25 2014-12-31 上海博泰悦臻电子设备制造有限公司 Rapid starting method for vehicle-mounted system based on Android system
CN104519091A (en) * 2013-09-27 2015-04-15 珠海市君天电子科技有限公司 Method for system start-up optimization, and device
CN105700930A (en) * 2016-02-22 2016-06-22 青岛海信移动通信技术股份有限公司 Application accelerating method and device for embedded operation system
CN105808433A (en) * 2016-03-04 2016-07-27 浪潮软件集团有限公司 One-key tuning method based on Linux operating system
CN106250181A (en) * 2016-07-27 2016-12-21 浪潮(北京)电子信息产业有限公司 The performance optimization method of a kind of (SuSE) Linux OS and framework
CN107153577A (en) * 2017-04-21 2017-09-12 贵州省广播电视信息网络股份有限公司 A kind of system optimization method for Android system
CN107291510A (en) * 2017-06-30 2017-10-24 惠州华阳通用电子有限公司 A kind of Linux inter-vehicle information systems quick start method
CN109656695A (en) * 2018-11-20 2019-04-19 广东联迪信息科技有限公司 A kind of operating system optimization method and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102707966A (en) * 2012-04-12 2012-10-03 腾讯科技(深圳)有限公司 Method and device for acceleratively starting operating system, and method, device and terminal for generating prefetched information
WO2014127695A1 (en) * 2013-02-21 2014-08-28 北京奇虎科技有限公司 System running acceleration method and apparatus
CN104252363A (en) * 2013-06-25 2014-12-31 上海博泰悦臻电子设备制造有限公司 Rapid starting method for vehicle-mounted system based on Android system
CN104519091A (en) * 2013-09-27 2015-04-15 珠海市君天电子科技有限公司 Method for system start-up optimization, and device
CN105700930A (en) * 2016-02-22 2016-06-22 青岛海信移动通信技术股份有限公司 Application accelerating method and device for embedded operation system
CN105808433A (en) * 2016-03-04 2016-07-27 浪潮软件集团有限公司 One-key tuning method based on Linux operating system
CN106250181A (en) * 2016-07-27 2016-12-21 浪潮(北京)电子信息产业有限公司 The performance optimization method of a kind of (SuSE) Linux OS and framework
CN107153577A (en) * 2017-04-21 2017-09-12 贵州省广播电视信息网络股份有限公司 A kind of system optimization method for Android system
CN107291510A (en) * 2017-06-30 2017-10-24 惠州华阳通用电子有限公司 A kind of Linux inter-vehicle information systems quick start method
CN109656695A (en) * 2018-11-20 2019-04-19 广东联迪信息科技有限公司 A kind of operating system optimization method and device

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
SHOKI FUKUDA等: "An accelerated application monitoring environment with accelerated servers" *
叶成景;: "Android系统流畅度智能优化设计" *
吕云光,张凯: "对HP ThinClient上Linux的启动过程进行速度优化" *
邹淼,包启亮: "PC/104下嵌入式Linux操作系统的优化方案" *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112199896A (en) * 2020-10-26 2021-01-08 云中芯半导体技术(苏州)有限公司 Chip logic comprehensive optimization acceleration method based on machine learning

Also Published As

Publication number Publication date
CN111209051B (en) 2023-07-28

Similar Documents

Publication Publication Date Title
CN109857548B (en) Storage space optimization method, storage space optimization device, computer equipment and storage medium
JP2020518926A (en) Backup and restore framework for distributed computing systems
CN108170448B (en) System for automatically and efficiently releasing software update version
CN106302632B (en) Downloading method of basic mirror image and management node
CN105871587A (en) Log uploading method and device
CN109725950B (en) Method, device and storage medium for realizing single-instance operation of client
CN110225078B (en) Application service updating method, system and terminal equipment
EP3635547B1 (en) Systems and methods for preventing service disruption during software updates
CN108399331B (en) Application process trial method and system
CN108563472B (en) Service plug-in loading method and device based on multi-open application
CN106886422A (en) Method for upgrading software and device, electronic equipment
CN111290768A (en) Updating method, device, equipment and medium for containerization application system
KR101974989B1 (en) Method and apparatus for determining behavior information corresponding to a dangerous file
CN111209051B (en) Optimization acceleration method and device based on domestic operating system
EP3109758A1 (en) Method and apparatus for scaling an application
CN108536541B (en) Process engine object processing method and device
CN106844035B (en) Method and device for realizing resource release or recovery of cloud server
CN112286559A (en) Upgrading method and device for vehicle-mounted intelligent terminal
CN109784035B (en) Installation process tracking processing method and device
FR3003365A1 (en) METHOD AND DEVICE FOR MANAGING SOFTWARE UPDATES OF A SET OF EQUIPMENT OF A SYSTEM SUCH AS A SYSTEM OF AN AIRCRAFT
CN102799812A (en) Method and device for processing application program
CN112632523B (en) Offline login and working method and system of mobile terminal
CN112685063B (en) Feature library updating method, device, network equipment and readable storage medium
CN111090458B (en) Gray release system and application release method based on gray release system
CN113434234A (en) Page jump method, device, computer readable storage medium and processor

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
CB02 Change of applicant information

Address after: Room 332, 3 / F, Building 102, 28 xinjiekouwei street, Xicheng District, Beijing 100088

Applicant after: Qianxin Technology Group Co.,Ltd.

Applicant after: Qianxin Wangshen information technology (Beijing) Co.,Ltd.

Address before: Room 332, 3 / F, Building 102, 28 xinjiekouwei street, Xicheng District, Beijing 100088

Applicant before: Qianxin Technology Group Co.,Ltd.

Applicant before: LEGENDSEC INFORMATION TECHNOLOGY (BEIJING) Inc.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant