CN103064705B - Computer system starting processing method and device - Google Patents

Computer system starting processing method and device Download PDF

Info

Publication number
CN103064705B
CN103064705B CN201210553744.7A CN201210553744A CN103064705B CN 103064705 B CN103064705 B CN 103064705B CN 201210553744 A CN201210553744 A CN 201210553744A CN 103064705 B CN103064705 B CN 103064705B
Authority
CN
China
Prior art keywords
service
system start
described system
starting
current state
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
CN201210553744.7A
Other languages
Chinese (zh)
Other versions
CN103064705A (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 Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201210553744.7A priority Critical patent/CN103064705B/en
Publication of CN103064705A publication Critical patent/CN103064705A/en
Application granted granted Critical
Publication of CN103064705B publication Critical patent/CN103064705B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

Embodiments providing a kind of computer system starting processing method and device, wherein, computer system starting processing method includes: obtain the system failure daily record of computer system;Obtaining the log information of system start-up service from system failure daily record, log information includes the Data Source of the log information of system start-up service and the service identifiers of system start-up service;Whether the Data Source judging the log information that system start-up services is system service manager, and judges whether the service identifiers that system start-up services is setting identification;If so, startup type and the current state of system start-up service are then obtained;If the startup type of system start-up service is self-starting or manually boots, and current state is for starting or having stopped, then the startup type that system start-up services is revised as disabling.By the embodiment of the present invention, reach and improve the speed that system boot starts, decrease wait unnecessary in system boot start-up course.

Description

Computer system starting processing method and device
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of computer system starting processing method and device.
Background technology
Starting up's item namely system start-up item, it is simply that when start, system can in the program on foreground or running background.Current system start-up service includes: SERVICE_FILE_SYSTEM_DRIVER, SERVICE_KERNEL_DRIVER, SERVICE_WIN32_OWN_PROCESS and SERVICE_WIN32_SHARE_PROCESS four kinds, by registry entry HKEY_LOCAL_MACHINE SYSTEM CurrentControlSet services Type value mark under XXXX may identify which the COS of service, wherein, the XXXX in list item represents service name.
Said system starts in service, and SERVICE_FILE_SYSTEM_DRIVER service is file system driver service, is responsible for all of File I/O operations of system;SERVICE_KERNEL_DRIVER service is device drives service, is responsible for control system all devices;SERVICE_WIN32_OWN_PROCESS service is common software service, and resident system realizes user function, in a process instance, can only run a service;SERVICE_WIN32_SHARE_PROCESS service is common software service, and resident system realizes user function, in a process instance, it is possible to run multiple service.
At present, when system boot starts these services, it is serial, for instance: after start powers on, computer can first detect and start-up loading operating system after the success of initiating hardware equipment, and application program starts successively one by one.That is, function is the more, namely mean that the operating system in computer need to spend the more time to load various softwares and program.Before user uses computer, namely having taken the much time on waiting, particularly the start required time expended is longer, and user can be made to be inconvenienced with loaded down with trivial details.And after system boot starts, according to some conditions, can wait.Only when service operation to state is normal, just start next one service.But, when leaky in service, or to cause that service occurs abnormal due to system other reasons, then system start-up will infinite delay, until service overcomes leak or misoperation normally, or user restarts system.Regardless of which kind of situation, all can drag slow system starting process, expend the unnecessary system boot waiting time, make Consumer's Experience be deteriorated.
Summary of the invention
In view of above-mentioned existing system start method system start-up service in leaky, or when causing that system start-up service occurs abnormal due to system other reasons, slow system starting process can be dragged, make the problem that Consumer's Experience is deteriorated, it is proposed that the present invention is to provide a kind of computer system starting processing method and device overcoming the problems referred to above or solving the problems referred to above at least in part.
According to one aspect of the present invention, it is provided that a kind of computer system starting processing method, including: obtain the system failure daily record of computer system;Obtaining the log information of system start-up service from system failure daily record, log information includes the Data Source of the log information of system start-up service and the service identifiers of system start-up service;Whether the Data Source judging the log information that system start-up services is system service manager, and judges whether the service identifiers that system start-up services is setting identification;If so, startup type and the current state of system start-up service are then obtained;If the startup type of system start-up service is self-starting or manually boots, and current state is for starting or having stopped, then the startup type that system start-up services is revised as disabling.
Alternatively, it is judged that the step whether service identifiers of system start-up service is setting identification includes: judge service identifiers that system start-up service be whether identified below at least one: wait the to be serviced mark connecting time-out, wait the mark of issued transaction response timeout from service, the service mark of time-out when startup.
Alternatively, the step of the startup type and current state that obtain described system start-up service includes: when obtaining the startup type of system start-up service, the first query messages is sent, the startup type of the system start-up service that requesting query judged result is yes to system service manager;Receive the system service manager return message to the first query messages, according to the startup type returning the system start-up service that message acquisition judged result is yes;When obtaining the current state of system start-up service, send the second query messages to system service manager, the current state of the system start-up service that requesting query judged result is yes;Receive the system service manager return message to the second query messages, according to the current state returning the system start-up service that message acquisition judged result is yes.
Alternatively, when obtaining the startup type of system start-up service, the first query messages is sent by QueryServiceConfig interface to system service manager;And, by the QueryServiceConfig interface system service manager return message to the first query messages;When obtaining the current state of system start-up service, send the second query messages by QueryServiceStatus interface to system service manager;And, by the QueryServiceStatus interface system service manager return message to the second query messages.
Alternatively, the step of the log information obtaining system start-up service from described system failure daily record includes: generate, with daily record, the order that the time is inverted order, obtains and set log information in time range, system start-up service from system failure daily record.
According to a further aspect in the invention, it is provided that a kind of computer system starting processes device, including: the first acquisition module, for obtaining the system failure daily record of computer system;Obtaining the log information of system start-up service from system failure daily record, log information includes the Data Source of the log information of system start-up service and the service identifiers of system start-up service;Whether judge module, be system service manager for judging the Data Source of log information that system start-up services, and judge whether the service identifiers that system start-up services is setting identification;Second acquisition module, if the judged result for judge module is yes, then obtains startup type and the current state of system start-up service;Modified module, if the startup type for system start-up service is self-starting or manually boots, and current state is for starting or having stopped, then the startup type that system start-up services is revised as disabling.
Alternatively, judge module is when whether the service identifiers judging that system start-up services is setting identification, it is judged that the service identifiers of system start-up service be whether identified below at least one: wait the to be serviced mark connecting time-out, wait the mark that the mark of issued transaction response timeout from service, service suspend when starting.
Alternatively, the second acquisition module, when obtaining the startup type of system start-up service, sends the first query messages to system service manager, the startup type of the system start-up service that requesting query judged result is yes;Receive the system service manager return message to the first query messages, according to the startup type returning the system start-up service that message acquisition judged result is yes;When obtaining the current state of system start-up service, send the second query messages to system service manager, the current state of the system start-up service that requesting query judged result is yes;Receive the system service manager return message to the second query messages, according to the current state returning the system start-up service that message acquisition judged result is yes.
Alternatively, when the second acquisition module obtains the startup type of system start-up service, the first query messages is sent by QueryServiceConfig interface to system service manager;And, by the QueryServiceConfig interface system service manager return message to the first query messages;When the second acquisition module obtains the current state of system start-up service, send the second query messages by QueryServiceStatus interface to system service manager;And, by the QueryServiceStatus interface system service manager return message to the second query messages.
Alternatively, the first acquisition module, when obtaining the log information of system start-up service from system failure daily record, generates, with daily record, the order that the time is inverted order, obtains and set log information in time range, system start-up service from system failure daily record.
The present invention is directed to existing system start method leaky in system start-up services, or when causing that system start-up service occurs abnormal due to system other reasons, slow system starting process can be dragged, make the problem that Consumer's Experience is deteriorated, when system start-up exceedes certain time (namely setting threshold value), the information of system start-up service is obtained from system failure daily record, and then the information judgement according to acquisition starts a leak or the system start-up service of exception, and then this system start-up service is revised as disabling, amended system start-up service startup system is used when system is again started up.When disabling starts a leak or during the system start-up service of exception, these services during system start-up, will be skipped, thus it is slow to avoid system starting process, the problem of user's experience difference, reach raising system starting process, promote the effect of user's experience.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, and can be practiced according to the content of description, and in order to above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit those of ordinary skill in the art be will be clear from understanding.Accompanying drawing is only for illustrating the purpose of preferred implementation, and is not considered as limitation of the present invention.And in whole accompanying drawing, it is denoted by the same reference numerals identical parts.In the accompanying drawings:
Fig. 1 is the flow chart of steps of a kind of computer system starting processing method of according to embodiments of the present invention;
Fig. 2 is the flow chart of steps of a kind of computer system starting processing method of according to embodiments of the present invention two;
Fig. 3 is the flow chart of steps of a kind of computer system starting processing method of according to embodiments of the present invention three;
Fig. 4 is the flow chart of steps of a kind of computer system power-on Acceleration of starting method of according to embodiments of the present invention four;
Fig. 5 is the structured flowchart of a kind of computer system starting process device of according to embodiments of the present invention five;
Fig. 6 is the structured flowchart of a kind of computer system power-on Acceleration of starting device of according to embodiments of the present invention six.
Detailed description of the invention
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although accompanying drawing showing the exemplary embodiment of the disclosure, it being understood, however, that may be realized in various forms the disclosure and should do not limited by embodiments set forth here.On the contrary, it is provided that these embodiments are able to be best understood from the disclosure, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
System starting process is the process constantly loading starting up's project, these starting up's projects not only include loading system file, start kernel service, display welcomes interface, wait user to input account number cipher, configure some backstages starting up's projects such as loading non-critical services according to individual, also includes some foregrounds such as input method, antivirus software starting up's project.
Embodiment one
With reference to Fig. 1, it is shown that the flow chart of steps of a kind of computer system starting processing method of according to embodiments of the present invention.
The computer system starting processing method of the present embodiment comprises the following steps:
Step S102: obtain the system failure daily record of computer system.
System failure daily record is usually noted systematic fault message, when system start-up occurs in that abnormal, system failure daily record should record the information that this part is abnormal.
Step S104: obtain the log information of system start-up service from system failure daily record.
Wherein, the log information of system start-up service includes the Data Source of the log information of system start-up service and the service identifiers of system start-up service.
System start-up service includes but not limited to SERVICE_FILE_SYSTEM_DRIVER service, SERVICE_KERNEL_DRIVER service, SERVICE_WIN32_OWN_PROCESS service and SERVICE_WIN32_SHARE_PROCESS service.
Step S106: whether the Data Source judging the log information that system start-up services is system service manager, and judges whether the service identifiers that system start-up services is setting identification, if be is, then perform step S108;Otherwise, return step S104, read next daily record and continue to analyze.
Step S108: if the determination result is YES, then obtain startup type and the current state of the system start-up service that judged result is yes.
Step S110: judge whether the startup type that system start-up services is self-starting or manually boots, and whether current state is starting or stopping, if being is, then perform step S112;Otherwise, return step S104, read next daily record and continue to analyze.
The startup type of system start-up service includes but not limited to: SERVICE_AUTO_START type, is namely serviced by the self-starting that service managerZ-HU starts;SERVICE_BOOT_START type, is namely driven by the self-starting that system kernel starts;SERVICE_DEMAND_START type, is namely manually booted service by what service managerZ-HU started;SERVICE_DISABLED type, has namely disabled service;SERVICE_SYSTEM_START, is namely driven by the self-starting that system kernel starts.When the startup type of system start-up service is self-starting or manually boots, and when current state is start or stop, then carry out follow-up startup type amendment operation.
Step S112: the startup type that system start-up services is revised as and disables.
Amended system start-up service will come into force when system start-up next time.
Pass through the present embodiment, for existing system start method in system start-up services leaky (leak), or when causing that system start-up service occurs abnormal due to system other reasons, slow system starting process can be dragged, make the problem that Consumer's Experience is deteriorated, when system start-up exceedes certain time (namely setting threshold value), the information of system start-up service is obtained from system failure daily record, and then the information judgement according to acquisition starts a leak or the system start-up service of exception, and then this system start-up service is revised as disabling, amended system start-up service startup system is used when system is again started up.When disabling starts a leak or during the system start-up service of exception, these services during system start-up, will be skipped, thus it is slow to avoid system starting process, the problem of user's experience difference, reach to improve the speed of system starting process, promote the effect of user's experience.
Embodiment two
With reference to Fig. 2, it is shown that the flow chart of steps of a kind of computer system starting processing method of two according to embodiments of the present invention.
The computer system starting processing method of the present embodiment comprises the following steps:
Step S202: when exceeding setting threshold value between upon power-up of the system, obtain the system failure daily record of computer system.
Wherein, setting threshold value suitably can set according to the statistic analysis result of system start-up time, or rule of thumb sets, or adopts other setting means, the invention is not limited in this regard.Such as, when system service management program starts service, detecting the service state started, detect this service and whether exceed Preset Time and do not have normal response, wherein, this Preset Time is 80 seconds, therefore can using 80 seconds as the setting threshold value in the present embodiment;Again such as, when system service management program starts service, can detect whether the time that service place process runs has exceeded 30 seconds, accordingly it is also possible to using 30 seconds as the setting threshold value in the present embodiment.Certainly, it is not limited to this, as it has been described above, arbitrarily suitable setting means is all applicable.
Step S204: obtain the log information of system start-up service from system failure daily record.
Wherein, the log information of system start-up service includes the Data Source of the log information of system start-up service and the service identifiers of system start-up service.
Every daily record in system failure daily record has the generation time, it is therefore preferred that the order that the time is inverted order can be generated with daily record, obtains and set log information in time range, system start-up service from system failure daily record.Wherein, setting time range can be appropriately arranged with according to practical situation by those skilled in the art, such as the log information for the same day, or the several hours interior log informations for setting, naturally it is also possible to for other situation, for set in the date etc..With inverted order order read log information can the log information that is newly generated of priority treatment, improve processing speed and efficiency.
Step S206: whether the Data Source judging the log information that system start-up services is system service manager, and at least one judging the to be serviced marks connecting time-out such as whether service identifiers that system start-up services is, waiting in the mark that the mark of issued transaction response timeout from service, service suspend when starting.
It should be noted that, in actual applications, setting identification is not limited to the to be serviced mark connecting time-out such as above-mentioned, waits the mark that the mark of issued transaction response timeout from service, service suspend when starting, those skilled in the art can suitably select service identifiers according to practical situation, can interpolate that whether system start-up service is overtime or stops as principle.
Step S208: if the determination result is YES, then obtain startup type and the current state of the system start-up service that judged result is yes.
Wherein, the startup type of system start-up service can by sending the first query messages to system service manager, the startup type of the system start-up service that requesting query judged result is yes;Receive the system service manager return message to the first query messages, according to the startup type returning the system start-up service that message acquisition judged result is yes;The current state of system start-up service can by sending the second query messages to system service manager, the current state of the system start-up service that requesting query judged result is yes;Receive the system service manager return message to the second query messages, according to the current state returning the system start-up service that message acquisition judged result is yes.Wherein, the acquisition starting type and current state can in no particular order sequentially.
Preferably, when obtaining the startup type of the system start-up service that judged result is yes, the first query messages is sent by QueryServiceConfig interface to system service manager;And, by the QueryServiceConfig interface system service manager return message to the first query messages;When obtaining the current state of the system start-up service that judged result is yes, send the second query messages by QueryServiceStatus interface to system service manager;And, by the QueryServiceStatus interface system service manager return message to the second query messages.QueryServiceConfig interface and QueryServiceStatus interface are the interface that operating system provides, and use the two interface to obtain corresponding information, it is achieved simple, have saved and realized cost.
Step S210: if the startup type of system start-up service is self-starting or manually boots, and current state is for starting or having stopped, then the startup type that system start-up services is revised as disabling.
If the startup type of system start-up service is self-starting or manually boots, and current state is for starting or having stopped, then show that this system start-up service occurs in that exception, have impact on the start-up course of system, then its startup type is revised as and disables, thus forbidding this service of warm boot.
Step S212: service restarting systems according to amended system start-up.
Pass through the present embodiment, it is to avoid system starting process is slow, the problem of user's experience difference, reach raising system starting process, promote the effect of user experience.
Embodiment three
With reference to Fig. 3, it is shown that the flow chart of steps of a kind of computer system starting processing method of three according to embodiments of the present invention.
In the present embodiment, hang-up service detection module is set in systems, uses this hang-up service detection module to perform the computer system starting processing method of the present embodiment.
The computer system starting processing method of the present embodiment comprises the following steps:
Step S302: when exceeding setting threshold value between upon power-up of the system, hangs up service detection module and obtains the eventlog daily record of computer system.
In the present embodiment, in eventlog daily record, record has the system failure/abnormal information, and for each daily record in system eventlog, it includes Data Source, and ID(identifies), data content, and field and the information such as time.
Step S304: hang up service detection module and read at least one daily record by system interface ReadEventLog, obtains the Data Source of this daily record and services the information such as ID.
In the present embodiment, every daily record has the generation time, when reading daily record, can first judging that the generation time of this daily record read is whether in setting time range, in the present embodiment, setting time range can for the same day, when reading daily record, employing inverted order reads, and namely first reads the daily record being newly generated, the old daily record of rear reading.If daily record is to generate the same day, then continue to judge whether service source and ID mate, otherwise, then it is assumed that the daily record on the same day is treated to be completed, it is possible to exit current process.
Daily record for reading arranges setting time range, is because problematic before old daily record is probably but the daily record that has been solved, if that reads that this partial log will affect the present invention program finally detects judged result.
Reading additionally, be not limited to inverted order when reading daily record, those skilled in the art can adopt other self-defining order to be read out.
Step S306: whether the Data Source hanging up the daily record that service detection module coupling reads is " ServiceControlManager ", i.e. system service manager SCM, and whether ID is one or more in 7009,7011,7022, if the match is successful, then illustrate that the daily record read is the daily record starting service, then perform step S308;Otherwise, do not process, return step S304.
Wherein, the implication of each ID is as follows: 7009, waits connection time-out to be serviced;7011, wait the issued transaction response timeout from service;7022, service and suspend when starting.
By analyzing and verifying, it has been found that when SCM runs into ID in as described above 3, can cause that system start-up is slack-off, or sign in long period no response after system.
Step S308: when mating eventlog daily record conditional success, hangs up service detection module and judges whether the startup type that system start-up services is self-starting or manually boots by interface QueryServiceConfig, if it is, perform step S310;If it is not, then do not process, return step S304.
Because having relation of interdependence between system start-up service, if a self-starting service dependence manually boots service, then system restarts that self-starting service having dependence after first the service call manually booted being got up.Therefore, the startups type for system start-up service is self-starting or the service that manually boots is required for carrying out judging to detect.
Step S310: if the startup type of system start-up service is self-starting or manually boots, hang up service detection module and start the current state of service again through interface QueryServiceStatus inquiry system, if current state is to start or stopping, then startup type is revised as and disables, perform step S312;If current state is not starting or stopping, then do not process, return step S304.
If current state is to start or stopping, then it is assumed that this system start-up service is strictly the service of influential system toggle speed, the startup type of this service is revised as and disables.It is revised as after disabling, can not be again started up after this service.When realizing, it is possible to by directly by registration table HKEY_LOCAL_MACHINE SYSTEM CurrentControlSet services Start key assignments under XXXX be revised as 4 realizations, i.e. Start key assignments is that 4 expressions disable.
It should be noted that in reality performs, namely the execution of step S308 and step S310 in no particular order sequentially, can start the acquisition of type and current state can in no particular order sequentially.
Step S312: hang up service detection module and service restarting systems according to amended system start-up.
The present embodiment is by mating eventlog daily record, the startup type of inquiry service, the current state of inquiry service achieves pathological system and starts the disabling of service, accelerates system start-up speed, decrease the time spent in system starting process, improve the effect of user's experience.
Wherein, in this enforcement, coupling eventlog daily record must first carry out, the execution of the startups type of inquiry service and the current state of inquiry service can in no particular order sequentially, without influence on testing result.
Embodiment four
With reference to Fig. 4, it is shown that the flow chart of steps of a kind of computer system power-on Acceleration of starting method of four according to embodiments of the present invention.
The computer system power-on Acceleration of starting method of the present embodiment comprises the following steps:
Step S10: after system detects power-on event, loads SCM(system service manager).
Step S20:SCM starts system service according to the startup type of the system start-up service pre-set.
Wherein, the startup type of the system start-up service pre-set can by pre-setting the startup type detection of system start-up service and amendment realization in any one computer system starting processing method embodiment in embodiment one to three.
The required time of computer system power-on speed relates to services.exe(and SCM) and explorer.exe(and explorer), services.exe is a part for Windows operating system, is used for managing startup and stopping service.This process also can process the service run when computer starting and shutdown.Explorer.exe process has provided the user graphic user interface (also becoming figure shell), is briefly just used to the desktop environment of display system, including the taskbar below start menu, desktop, desktop icons and file management.
In computer system starting process, SCM is responsible for starting system start-up service, and explorer is responsible for user's desktop environment.In system starting process, SCM is first created and runs, and starts system start-up service.After a while, explorer starts and initializes, and loads user's desktop environment.When explorer has used the assembly relevant with system start-up service, need and SCM is mutual, but because SCM is in starting service process, occupy a lock, in this process, other processes of system are if it is desired to start a service, then when accessing this lock, meeting is blocked firmly, thus the starting up speed of influential system.
For WINDOWSXP system, when explorer starts, can create a COM, its CLSID is that { DD522ACC-F821-461A-A407-50B198B896DC}, this COM service corresponding to the ShellHWDetection of system.When creating this COM, if this service is but without startup, then need first to start this service, and the startup of this service needs to be performed by SCM.If the service that SCM starts has hang-up service, namely the process of SCM startup system service is held off, so explorer notifies when SCM starts this service, will be stuck owing to that lock being previously mentioned can not be taken, until SCM completes service activation process, the request of explorer just can be satisfied, and then continues the operation of back, and it is slow that this results in starting up speed.And processed by the computer system starting in embodiment one to three, after detecting and the startup type hanging up service be revised as and disable, in SCM start-up course, the system start-up service (namely this part hangs up service) disabled will do not restarted, so that start process can complete more glibly, explorer starts the process of COM and will not delay because SCM starts system start-up service or block, owing to the time required for the process of explorer startup COM is reduced, so embodiment improves the starting up speed of system.
Embodiment five
With reference to Fig. 5, it is shown that a kind of computer system starting of five processes the structured flowchart of device according to embodiments of the present invention.
The computer system starting of the present embodiment processes device and includes: the first acquisition module 402, for obtaining the system failure daily record of computer system;Obtaining the log information of system start-up service from system failure daily record, this log information includes the Data Source of the log information of system start-up service and the service identifiers of system start-up service;Whether judge module 404, be system service manager for judging the Data Source of log information that system start-up services, and judge whether the service identifiers that system start-up services is setting identification;Second acquisition module 406, if the judged result for judge module 404 is yes, then obtains startup type and the current state of the system start-up service that judged result is yes;Modified module 408, if the startup type for system start-up service is self-starting or manually boots, and current state is for starting or having stopped, then the startup type that system start-up services is revised as disabling.
Preferably, judge module 404 is when whether the service identifiers judging that system start-up services is setting identification, it is judged that the service identifiers of system start-up service be whether identified below at least one: wait the to be serviced mark connecting time-out, wait the mark that the mark of issued transaction response timeout from service, service suspend when starting.
Preferably, the second acquisition module 406, when obtaining the startup type of the system start-up service that judged result is yes, sends the first query messages to system service manager, and what requesting query judged result was yes states the startup type of system start-up service;Receive the system service manager return message to the first query messages, according to the startup type returning the system start-up service that message acquisition judged result is yes;When obtaining the current state of the system start-up service that judged result is yes, send the second query messages to system service manager, the current state of the system start-up service that requesting query judged result is yes;Receive the system service manager return message to the second query messages, according to the current state returning the system start-up service that message acquisition judged result is yes.Wherein, the acquisition order in no particular order of type and current state is started.
Preferably, when the second acquisition module 406 obtains the startup type of the system start-up service that judged result is yes, the first query messages is sent by QueryServiceConfig interface to system service manager;And, by the QueryServiceConfig interface system service manager return message to the first query messages;When the second acquisition module 406 obtains the current state of the system start-up service that judged result is yes, send the second query messages by QueryServiceStatus interface to system service manager;And, by the QueryServiceStatus interface system service manager return message to the second query messages.
Preferably, the first acquisition module 402 when obtaining the log information of system start-up service from system failure daily record, with the order of inverted order, obtains the generation time setting log information in time range, system start-up service from system failure daily record.
The system starting device of the present embodiment is used for realizing corresponding system start method in aforesaid plurality of embodiment of the method, and has the beneficial effect of corresponding embodiment of the method, does not repeat them here.
Embodiment six
With reference to Fig. 6, it is shown that the structured flowchart of a kind of computer system power-on Acceleration of starting device of six according to embodiments of the present invention.
The computer system power-on Acceleration of starting device of the present embodiment includes: Acceleration of starting module 602 and the computer system starting in embodiment five process device.
Acceleration of starting module 602, is used for after system detects power-on event, loading system service managerZ-HU, makes system service manager start system start-up service according to the startup type of the system start-up service pre-set;Wherein, the startup type of the system start-up service pre-set processes device by computer system starting and pre-sets.
Such as, in system boot start-up course, it is necessary to run services.exe(and SCM) and explorer.exe(and explorer).System, after power-on event being detected, uses Acceleration of starting module 602 to load SCM, starts system start-up service by SCM.After a while, explorer starts and initializes, and loads user's desktop environment.When needing to use the assembly relevant with system start-up service in explorer running, then need mutual with SCM, SCM, after starting related service success, explorer just can carry out follow-up flow process.In the present embodiment, system service manager starts system start-up service according to the startup type of the system start-up service pre-set, because of those cause SCM cannot trouble-free operation hang-up service by computer system starting process device disabling, SCM can smoothly complete flow process, therefore, explorer will not delay because of SCM or block, owing to the time required for the process of explorer startup COM is reduced, so the present embodiment is thus accelerating system boot speed.
System start-up scheme in this offer is not intrinsic to any certain computer, virtual system or miscellaneous equipment relevant.Various general-purpose systems can also with use based on together with this teaching.As described above, construct the structure required by the system with the present invention program to be apparent from.Additionally, the present invention is also not for any certain programmed language.It is understood that, it is possible to utilize various programming language to realize the content of invention described herein, and the description above language-specific done is the preferred forms in order to disclose the present invention.
In description mentioned herein, describe a large amount of detail.It is to be appreciated, however, that embodiments of the invention can be put into practice when not having these details.In some instances, known method, structure and technology it are not shown specifically, in order to do not obscure the understanding of this description.
Similarly, it is to be understood that, one or more in order to what simplify that the disclosure helping understands in each inventive aspect, herein above in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or descriptions thereof sometimes.But, the method for the disclosure should be construed to and reflect an intention that namely the present invention for required protection requires feature more more than the feature being expressly recited in each claim.More precisely, as the following claims reflect, inventive aspect is in that all features less than single embodiment disclosed above.Therefore, it then follows claims of detailed description of the invention are thus expressly incorporated in this detailed description of the invention, wherein each claim itself as the independent embodiment of the present invention.
Those skilled in the art are appreciated that, it is possible to carry out the module in the equipment in embodiment adaptively changing and they being arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit excludes each other, it is possible to adopt any combination that all processes or the unit of all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment are combined.Unless expressly stated otherwise, each feature disclosed in this specification (including adjoint claim, summary and accompanying drawing) can be replaced by the alternative features providing purpose identical, equivalent or similar.
In addition, those skilled in the art it will be appreciated that, although embodiments more described herein include some feature included in other embodiments rather than further feature, but the combination of the feature of different embodiment means to be within the scope of the present invention and form different embodiments.Such as, in detail in the claims, the one of any of embodiment required for protection can mode use in any combination.
The all parts embodiment of the present invention can realize with hardware, or realizes with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize the some or all parts in system start-up scheme according to embodiments of the present invention.The present invention is also implemented as part or all the equipment for performing method as described herein or device program (such as, computer program and computer program).The program of such present invention of realization can store on a computer-readable medium, or can have the form of one or more signal.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described rather than limits the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment without departing from the scope of the appended claims.In the claims, any reference marks that should not will be located between bracket is configured to limitations on claims.Word " comprises " and does not exclude the presence of the element or step not arranged in the claims.Word "a" or "an" before being positioned at element does not exclude the presence of multiple such element.The present invention by means of including the hardware of some different elements and can realize by means of properly programmed computer.In the unit claim listing some devices, several in these devices can be through same hardware branch and specifically embody.Word first, second and third use do not indicate that any order.Can be title by these word explanations.

Claims (8)

1. a computer system starting processing method, including:
Obtain the system failure daily record of computer system;
Obtaining the log information of system start-up service from described system failure daily record, described log information includes the Data Source of the log information of described system start-up service and the service identifiers of described system start-up service;
Whether the Data Source judging the log information that described system start-up services is system service manager, and judges whether the service identifiers that described system start-up services is setting identification;
If so, startup type and the current state of described system start-up service are then obtained;
If the startup type of described system start-up service is self-starting or manually boots, and current state is for starting or having stopped, then the startup type that described system start-up services is revised as disabling;
Wherein, described judge that whether service identifiers that described system start-up services is that the step of setting identification includes:
Judge service identifiers that described system start-up services be whether identified below at least one: wait the to be serviced mark connecting time-out, wait the mark that the mark of issued transaction response timeout from service, service suspend when starting.
2. method according to claim 1, wherein, the described startup type of system start-up service of described acquisition and the step of current state include:
When obtaining the startup type of described system start-up service, send the first query messages to described system service manager, the startup type of the described system start-up service that requesting query judged result is yes;Receive the described system service manager return message to described first query messages, obtain the startup type of the described system start-up service that described judged result is yes according to described return message;
When obtaining the current state of described system start-up service, send the second query messages to described system service manager, the current state of the described system start-up service that requesting query judged result is yes;Receive the described system service manager return message to described second query messages, obtain the current state of the described system start-up service that described judged result is yes according to the return message of described second query messages.
3. method according to claim 2, wherein,
When obtaining the startup type of described system start-up service, send the first query messages by QueryServiceConfig interface to described system service manager;And, by the system service manager return message to described first query messages described in described QueryServiceConfig interface;
When obtaining the current state of described system start-up service, send the second query messages by QueryServiceStatus interface to described system service manager;And, by the system service manager return message to described second query messages described in described QueryServiceStatus interface.
4. method according to claim 1, wherein, the step of the described log information obtaining system start-up service from described system failure daily record includes:
Generate, with daily record, the order that the time is inverted order, obtain from described system failure daily record and set log information in time range, described system start-up service.
5. computer system starting processes a device, including:
First acquisition module, for obtaining the system failure daily record of computer system;Obtaining the log information of system start-up service from described system failure daily record, described log information includes the Data Source of the log information of described system start-up service and the service identifiers of described system start-up service;
Whether judge module, be system service manager for judging the Data Source of log information that described system start-up services, and judge whether the service identifiers that described system start-up services is setting identification;
Second acquisition module, if the judged result for described judge module is yes, then obtains startup type and the current state of described system start-up service;
Modified module, if the startup type for described system start-up service is self-starting or manually boots, and current state is for starting or having stopped, then the startup type that described system start-up services is revised as disabling;
Wherein, described judge module is when whether the service identifiers judging that described system start-up services is setting identification, it is judged that the service identifiers of described system start-up service be whether identified below at least one: wait the to be serviced mark connecting time-out, wait the mark that the mark of issued transaction response timeout from service, service suspend when starting.
6. device according to claim 5, wherein, described second acquisition module, when obtaining the startup type of described system start-up service, sends the first query messages to described system service manager, the startup type of the described system start-up service that judged result described in requesting query is yes;Receive the described system service manager return message to described first query messages, obtain the startup type of the described system start-up service that described judged result is yes according to described return message;When obtaining the current state of described system start-up service, send the second query messages to described system service manager, the current state of the described system start-up service that judged result described in requesting query is yes;Receive the described system service manager return message to described second query messages, obtain the current state of the described system start-up service that described judged result is yes according to the return message of described second query messages.
7. device according to claim 6, wherein,
When the second acquisition module obtains the startup type of described system start-up service, send the first query messages by QueryServiceConfig interface to described system service manager;And, by the system service manager return message to described first query messages described in described QueryServiceConfig interface;
When the second acquisition module obtains the current state of described system start-up service, send the second query messages by QueryServiceStatus interface to described system service manager;And, by the system service manager return message to described second query messages described in described QueryServiceStatus interface.
8. device according to claim 5, wherein, described first acquisition module when obtaining the log information of system start-up service from described system failure daily record, generate, with daily record, the order that the time is inverted order, obtain from described system failure daily record and set log information in time range, described system start-up service.
CN201210553744.7A 2012-12-18 2012-12-18 Computer system starting processing method and device Active CN103064705B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210553744.7A CN103064705B (en) 2012-12-18 2012-12-18 Computer system starting processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210553744.7A CN103064705B (en) 2012-12-18 2012-12-18 Computer system starting processing method and device

Publications (2)

Publication Number Publication Date
CN103064705A CN103064705A (en) 2013-04-24
CN103064705B true CN103064705B (en) 2016-06-29

Family

ID=48107342

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210553744.7A Active CN103064705B (en) 2012-12-18 2012-12-18 Computer system starting processing method and device

Country Status (1)

Country Link
CN (1) CN103064705B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019790B (en) * 2012-12-18 2016-03-30 北京奇虎科技有限公司 Computer system power-on Acceleration of starting method and apparatus
CN104572197B (en) * 2014-12-31 2018-09-04 北京奇虎科技有限公司 A kind for the treatment of method and apparatus of startup item
CN105930247B (en) * 2016-04-14 2018-09-04 北京小米移动软件有限公司 Processing method, device and the mobile terminal of system reboot problem
CN106792185B (en) * 2016-11-15 2020-08-04 深圳Tcl数字技术有限公司 Starting method, starting device and Android intelligent device
CN108268335B (en) * 2018-01-31 2022-04-19 努比亚技术有限公司 Restart positioning method based on system service, mobile terminal and storage medium
CN109582387B (en) * 2018-11-26 2022-06-07 郑州云海信息技术有限公司 Service class baseline item identification method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102331947A (en) * 2011-10-14 2012-01-25 中科创达软件科技(北京)有限公司 Restarting method for Android system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102331947A (en) * 2011-10-14 2012-01-25 中科创达软件科技(北京)有限公司 Restarting method for Android system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
HOW TO:解决 Windows Server 2003 中的关机问题;匿名;《Microsoft帮助和支持网站,网址:https://support.microsoft.com/zh-cn/kb/324268/zh-cn》;20071203;"如何使用安全模式确定关机问题的原因"一节 *
Win2000启动加速法;曾骏;《电脑采购周刊》;20011231(第6期);第26页 *
Windows服务编写综述;李朝中;《博客园网站,网址http://www.cnblogs.com/xuyuan77/archive/2008/03/28/1127941.html》;20080328;"4服务控制程序"一节 *

Also Published As

Publication number Publication date
CN103064705A (en) 2013-04-24

Similar Documents

Publication Publication Date Title
CN103064705B (en) Computer system starting processing method and device
US10303490B2 (en) Apparatus and method for optimizing startup of embedded system
US9665469B2 (en) System and method of runtime downloading of debug code and diagnostics tools in an already deployed baseboard management controller (BMC) devices
KR101944873B1 (en) Method for checking whether hardware of intelligent terminal runs abnormally and intelligent terminal
CN107291510B (en) Rapid starting method for Linux vehicle-mounted information system
CN104809045B (en) Running method and device of monitoring script
CN104536875A (en) Automatic server restart testing method based on IPMI
CN102999343A (en) Method and device for forbidding self-starting of startup project
US10831467B2 (en) Techniques of updating host device firmware via service processor
US7900033B2 (en) Firmware processing for operating system panic data
CN103019706A (en) Method and device for processing startup item
US10318731B2 (en) Detection system and detection method
CN103019790B (en) Computer system power-on Acceleration of starting method and apparatus
CN104915239A (en) Method and device for carrying out multi-process startup by container
US11640290B2 (en) Pushing a firmware update patch to a computing device via an out-of-band path
CN107357608B (en) Method, device and system for automatically installing operating system
CN109669727B (en) Server configuration method, system and related components
CN109471630B (en) Application processing method and device
CN108595292B (en) System optimization method, mobile terminal and computer storage medium
US20150186163A1 (en) Application virtualization system and method
EP4086756A1 (en) Method and apparatus for processing virtual machine component
US20240036896A1 (en) Generating installation images based upon dpu-specific capabilities
US20240020103A1 (en) Parallelizing data processing unit provisioning
TW201327139A (en) Method for processing node replacement and server system using the same
US9122551B2 (en) Methods and systems for generating read-only operating systems

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220727

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right