CN106815039A - A kind of parallel file system decompressing method - Google Patents
A kind of parallel file system decompressing method Download PDFInfo
- Publication number
- CN106815039A CN106815039A CN201610640673.2A CN201610640673A CN106815039A CN 106815039 A CN106815039 A CN 106815039A CN 201610640673 A CN201610640673 A CN 201610640673A CN 106815039 A CN106815039 A CN 106815039A
- Authority
- CN
- China
- Prior art keywords
- core
- main
- file system
- processor
- cpu0
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multi Processors (AREA)
Abstract
The invention discloses a kind of parallel file system decompressing method, comprise the following steps:Step one:Electricity in embedded system, performs Bootloader initialization multinuclear CPU, starts the main processor core in main line, hereinafter referred to as " main core ";Step 2:The quantity and working condition of the processor core in main core detecting multinuclear CPU;Step 3:Main core obtains the store path of file system, specifies read file system at least one from processor, hereinafter referred to as " from core ", and starts from core;Step 4:Main core with select a loading kernel and device drives from core, while concurrently being loaded by another and by compression algorithm decompressing files system to internal memory;Step 5:Complete to start embedded system.The present invention performs parallel computation using the multiple processor cores in same CPU, and starting linux kernel simultaneously by main core and from core conciliates compressed file system, improves the startup speed of embedded system.
Description
Technical field
The invention belongs to computer realm, more particularly to a kind of parallel file system decompressing method.
Background technology
In the art, Bootloader is the first paragraph code that embedded system is performed after power, completes CPU
After the initialization of related hardware, then then operation system image or the built-in application program of solidification is mounted in in internal memory
Space where jumping to operating system, start-up operation system operation.Embedded system establishes the beginning by cable from above until starting,
Bootloader needs to load kernel and file system successively.Wherein, in order to save memory space and encryption, the file being loaded
System be all it is pre- first pass through compression, need to decompress file system in loading, the process of decompression can delay embedded system
The startup time.Fig. 2 is shown prior art systems file decompressing method, performs Bootloader, is booted up main core, main
After core loads kernel and device drives, then by the loading of main core and decompressing files system, therefore, in startup stage, no matter CPU has be
It is no to there is multinuclear, kernel loads and file decompression are carried out merely with main core.Therefore, decompression process can delay embedded system
The startup time.
Although in computer realm it has been suggested that parallel starting method, is not based on " multiple in same processor
Different processor core " this prerequisite.Referring particularly to the patent document of the B of Publication No. CN 102646045, its disclosure
Multicomputer system and its parallel starting method in, it was also proposed that using multiple processors concurrently complete startup task.But
It is that the processor that the document is used is two independent processor chips in bus, the two processor chips rely on PCI-
E buses carry out information mutual communication, and it is to load independent startup file from processor to need primary processor.And described by this method
System is at the multinuclear based on SMP (Symmetrical Multi-Processing, the processor of symmetrical expression multiprocessing framework)
Device framework is managed, physically it shows as single processor, and possess multiple and can not had with the processor core of independent operating
In bus and multiple processor chips for depositing, therefore above-mentioned existing method cannot concurrently decompressing files system.
Regarding to the issue above, the present invention proposes a kind of parallel file system decompressing method, has innovatively used multi-core CPU
Dispatching technique, while loading kernel and decompressing files system, reduces system start-up time.
The content of the invention
The present invention proposes a kind of parallel file system decompressing method, comprises the following steps:
Step one:Electricity in embedded system, performs Bootloader initialization multinuclear CPU, in startup main line
Main core;
Step 2:The main core detects the quantity and work shape of the processor core in the multinuclear CPU
State;
Step 3:The main core obtains the store path of file system, specifies and reads at least one of the file system
From core, and start described from core;
Step 4:A loading kernel and device drives are selected from core with described in the main core, while parallel by another
Load and by compression algorithm decompressing files system to internal memory;
Step 5:Complete to start embedded system.
In the parallel file system decompressing method proposed by the present invention, in step 3, the main core is according in processor
Core amounts specify from core.
The beneficial effects of the present invention are:Multiple cores started in system during the present invention innovatively proposes same processor
Processor scheduling mechanism in journey, remaining processor core letter of multinuclear CPU is obtained when Bootloader is loaded
Breath, using multiple processor core loaded in parallel kernels and decompressing files system, reduces the startup time of embedded system.
Brief description of the drawings
Fig. 1 is the flow chart of parallel file system decompressing method of the present invention.
Fig. 2 is the flow chart that prior art embedded system starts.
Specific embodiment
With reference to specific examples below and accompanying drawing, the present invention is described in further detail.Implement process of the invention,
Condition, experimental technique etc., in addition to the following special content for referring to, are the universal knowledege and common knowledge of this area, this hair
It is bright that content is not particularly limited.
Main core:In multi-core CPU, for the core cpu of the start-up operation system core.
From core:In multi-core CPU, specified by main core, for the core cpu of decompressing files system.
Fig. 1 is shown the flow chart of parallel file system decompressing method of the present invention.Parallel file system decompression of the present invention
Method comprises the following steps:
Step one:Electricity in embedded system, performs Bootloader initialization multinuclear CPU, in startup main line
Main core CPU0;
Step 2:The quantity and working condition of the processor core in main core CPU0 detectings multinuclear CPU;
Step 3:Main core CPU0 obtains the store path of file system, specifies and reads at least one of file system from core
CPU, and start from core CPU1
Step 4:Main core CPU0 with select a loading kernel and device drives from core CPU1, while concurrently being added by another
Carry and by compression algorithm decompressing files system to internal memory;
Step 5:Complete to start embedded system.
(embodiment 1 is specified according to quantity and started from core)
Specified according to quantity and startup comprises the following steps from core CPU1:
Read the quantity and working condition of the processor core in multinuclear CPU;For example, in the present embodiment 1,
The quantity of processor core is 2, and the working condition of each processor core is:CPU0 is busy, and CPU1 is idle.
It is, from core CPU1, to obtain from core that main core CPU0 specifies a processor core from the processor core of respective numbers
The port address of CPU1;
It is to be loaded from core CPU1 by the processor core in addition to main core CPU0, starts from core CPU1;
Store path is pressed from core CPU1 read file system.
Embodiment 2
Specified according to quantity and startup comprises the following steps from core CPU1, from core CPU2:
Read the quantity and working condition of the processor core in multinuclear CPU;For example, in the present embodiment 2,
The quantity of processor core is 4, and the working condition of each processor core is that CPU0 is busy, and CPU1 is idle, and CPU2 is idle, and CPU3 is empty
It is not busy.
It is, from core CPU1, CPU2, to obtain that main core CPU0 specifies two processor cores from the processor core of respective numbers
Take the port address from core CPU1, CPU2;
It is to be loaded from core CPU1, CPU2 by the processor core in addition to main core CPU0, starts from core CPU1, CPU2;
From core CPU1, from core CPU2 file system is read by store path simultaneously.
Protection content of the invention is not limited to above example.Under the spirit and scope without departing substantially from inventive concept, this
Art personnel it is conceivable that change and advantage be all included in the present invention, and with appending claims be protect
Shield scope.
Claims (2)
1. a kind of parallel file system decompressing method, it is characterised in that comprise the following steps:
Step one:Electricity in embedded system, performs Bootloader initialization multinuclear CPU, starts the master in main line
Core (CPU0);
Step 2:The main core (CPU0) detects the quantity and work shape of the processor core in the multinuclear CPU
State;
Step 3:The main core (CPU0) obtains the store path of file system, specifies and reads at least the one of the file system
It is individual from core (CPU1), and start described from core (CPU1);
Step 4:The main core (CPU0) selects a loading kernel and device drives with described from core (CPU1), while by another
Concurrently load and by compression algorithm decompressing files system to internal memory;
Step 5:Complete to start embedded system.
2. parallel file system decompressing method as claimed in claim 1, it is characterised in that in step 3, the main core
(CPU0) quantity according to core in single processor is specified from core.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610640673.2A CN106815039A (en) | 2016-08-08 | 2016-08-08 | A kind of parallel file system decompressing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610640673.2A CN106815039A (en) | 2016-08-08 | 2016-08-08 | A kind of parallel file system decompressing method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106815039A true CN106815039A (en) | 2017-06-09 |
Family
ID=59105947
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610640673.2A Pending CN106815039A (en) | 2016-08-08 | 2016-08-08 | A kind of parallel file system decompressing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106815039A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109460260A (en) * | 2018-10-24 | 2019-03-12 | 福州瑞芯微电子股份有限公司 | A kind of method and apparatus of quick turn-on |
CN109683968A (en) * | 2018-12-18 | 2019-04-26 | 北京东土军悦科技有限公司 | Interchanger quick start method, interchanger and storage medium |
CN114064138A (en) * | 2022-01-17 | 2022-02-18 | 杭州研极微电子有限公司 | Method for starting system including multi-core processor and system adopting same |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101464807A (en) * | 2009-01-08 | 2009-06-24 | 杭州华三通信技术有限公司 | Application program loading method and device |
CN102646045A (en) * | 2012-03-08 | 2012-08-22 | 杭州海康威视数字技术股份有限公司 | Multiprocessor system and parallel startup method thereof |
CN104820582A (en) * | 2015-05-14 | 2015-08-05 | 西安电子科技大学 | Realization method of multicore embedded DSP (Digital Signal Processor) parallel programming model based on Navigator |
-
2016
- 2016-08-08 CN CN201610640673.2A patent/CN106815039A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101464807A (en) * | 2009-01-08 | 2009-06-24 | 杭州华三通信技术有限公司 | Application program loading method and device |
CN102646045A (en) * | 2012-03-08 | 2012-08-22 | 杭州海康威视数字技术股份有限公司 | Multiprocessor system and parallel startup method thereof |
CN104820582A (en) * | 2015-05-14 | 2015-08-05 | 西安电子科技大学 | Realization method of multicore embedded DSP (Digital Signal Processor) parallel programming model based on Navigator |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109460260A (en) * | 2018-10-24 | 2019-03-12 | 福州瑞芯微电子股份有限公司 | A kind of method and apparatus of quick turn-on |
CN109460260B (en) * | 2018-10-24 | 2021-07-09 | 瑞芯微电子股份有限公司 | Method and device for quickly starting up |
CN109683968A (en) * | 2018-12-18 | 2019-04-26 | 北京东土军悦科技有限公司 | Interchanger quick start method, interchanger and storage medium |
CN114064138A (en) * | 2022-01-17 | 2022-02-18 | 杭州研极微电子有限公司 | Method for starting system including multi-core processor and system adopting same |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106445576B (en) | Motherboard and its computer implemented method and the readable storage device of non-transient computer | |
US9459874B2 (en) | Instruction set architecture-based inter-sequencer communications with a heterogeneous resource | |
CN105183539B (en) | Dynamic task arrangement method | |
US8468334B1 (en) | Efficient initial RAM disk creation | |
US11243795B2 (en) | CPU overcommit with guest idle polling | |
CN103473135B (en) | The processing method of spin lock LHP phenomenon under virtualized environment | |
CN106815039A (en) | A kind of parallel file system decompressing method | |
TWI668574B (en) | Computing apparatus, system-on-chip and method of quality of service ordinal modification | |
CN111191777A (en) | Neural network processor and control method thereof | |
EP3971713A1 (en) | Boot process for early display initialization and visualization | |
US10073715B2 (en) | Dynamic runtime task management | |
CN113721990A (en) | Data processing method, data processing apparatus, accelerator card, and storage medium | |
CN115033356A (en) | Heterogeneous reconfigurable dynamic resource scheduling method and system | |
JP5824472B2 (en) | Memory access control system and image forming apparatus | |
CN113687868A (en) | Equipment firmware starting method and device and electronic equipment | |
CN104008014A (en) | Multi-core processor and related control method and computer system thereof | |
CN113253978A (en) | Embedded software development method, model, electronic device, and medium | |
US20230185991A1 (en) | Multi-processor simulation on a multi-core machine | |
US10810032B2 (en) | System and method for dynamic guest-controlled halt polling using a CPU governor | |
CN114064128B (en) | Kernel restarting method | |
CN102326145B (en) | Reset vector code realization method, system and apparatus | |
JP2011152685A (en) | Printer controller | |
US10185604B2 (en) | Methods and apparatus for software chaining of co-processor commands before submission to a command queue | |
CN114510287B (en) | System starting method and device for multiple processing units, storage medium and electronic equipment | |
CN111027101B (en) | Safe computer platform with flexibly distributed operation cycles |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170609 |
|
RJ01 | Rejection of invention patent application after publication |