CN106951352A - A kind of server log memory management method - Google Patents
A kind of server log memory management method Download PDFInfo
- Publication number
- CN106951352A CN106951352A CN201710145448.6A CN201710145448A CN106951352A CN 106951352 A CN106951352 A CN 106951352A CN 201710145448 A CN201710145448 A CN 201710145448A CN 106951352 A CN106951352 A CN 106951352A
- Authority
- CN
- China
- Prior art keywords
- data
- management method
- memory management
- server log
- log memory
- 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
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3055—Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/14—Handling requests for interconnection or transfer
- G06F13/16—Handling requests for interconnection or transfer for access to memory bus
- G06F13/18—Handling requests for interconnection or transfer for access to memory bus based on priority control
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Quality & Reliability (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a kind of server log memory management method, it will be encapsulated by the Data Collection of bus between device and according to form, formation record stored, when server encounters problems, by transferring stored record, the position gone wrong and time detail are drawn, monitoring client is fed back to.It has when failure occurs, the communication data of bottom can be provided, be support staff fix a breakdown reason quickening maintenance process advantage.
Description
Technical field
The present invention relates to server log management domain.
Background technology
Server log have recorded the various raw informations such as server reception processing request and run time error.By right
Daily record is counted, analyzed, comprehensively, just can effectively grasp the operation conditions of server, is found and debug reason, understanding
Client accesses distribution etc., the maintenance and management of more preferable strengthening system.
It is important server admin means that server, which is monitored,.In online SaaS monitoring systems, most important portion
Point it is the monitoring of server host, by indexs such as main availability, performance, the daily records of monitoring host computer, user can be at any time
Solution and grasp are placed on the equipment work quality of remote data central machine room, coordinate mobile phone A PP timely pushed information, exempt
The problems such as IDC trustship computer rooms also need to purchase Short Message Service Gateway, the monitoring project that host monitor is related generally to mainly has:CPU/ internal memories,
Port monitoring, process monitoring, disk monitoring, service monitoring etc..
BMC(Baseboard Management Controller, baseboard management controller)It is a special service center
Reason machine, it monitors computer, a webserver using sensor, or other hardware driving equipment state, and
And communicated by independent connection line and system manager, BMC is intelligent platform control interface(IPMI,
Intelligent Platform Management Interface)A part and be commonly included in template or by
In the main circuit board of the equipment of monitoring.
BMC sensor is used for measuring internal physical variable, for example:Temperature, humidity, supply voltage, fan speed, communication
Parameter and operating system function, if outside any one in these variables is beyond the scope of specified limitation, he is informed about
Keeper, keeper will take correct measure using remote control.
At present, prior art can only provide some of upper strata and monitor substantially, such as CPU usage, rotation speed of the fan, voltage electricity
The data macroscopically such as stream information.As monitoring function, the most important work of BMC is exactly to be sent out when work is abnormal
Go out warning.But after warning is sent, only some present states seen from these upper interfaces, as why occurring
Such case, generally requires technical support personnel and by virtue of experience carries out groping to exclude.Therefore, such system can not be provided
Detected at the data of bottom, the scene of generally requiring.This greatly hinders the investigation of problem, add maintenance time and into
This.
What is be internally integrated is serial(Inter-Integrated Circuit, abbreviation I2C)Bus is by PHILIPS companies
The twin wire universal serial bus of exploitation, for connecting microcontroller and its ancillary equipment.It is that microelectronics Control on Communication field is adopted extensively
A kind of bus standard.It is a kind of special shape of synchronous communication, few with interface line, and control mode is simple, device envelope
Dress form is small, the advantages of traffic rate is higher.
I2C passes through serial data(SDA)Line and serial clock(SCL)Line transmission information between the device of bus is connected to.
Each device has a unique Address Recognition, and can serve as a transmitter or receiver(By the function of device
Determine).Slave unit is the data transfer of initialization bus and generation allow transmission clock signal device.Now, any quilt
The device of addressing is considered as slave unit.
The content of the invention
The present invention is to solve the above problems.Therefore, the present invention provides a kind of server log memory management method, it has
When failure occurs, the communication data of bottom can be provided, be support staff fix a breakdown reason accelerate maintenance process advantage.
To achieve these goals, the present invention is adopted the following technical scheme that.
A kind of server log memory management method, will be encapsulated by the Data Collection of bus between device and according to form,
Storage forms record, when server encounters problems, by transferring stored record, draws the position gone wrong and time detail,
Feed back to monitoring client.
It is preferred that, the bus is I2C buses.
It is preferential, inside BMC main control chip, according to link, by the data that will be sent according to being packaged, and lead
Go out final encapsulation of data;
After encapsulating data, storage device is stored in sequence, waits reading instruction to read;
When there is reading instruction triggering, data are taken out from storage device, and pointer points to next group of data, obtains the complete of record
Daily record bag.By the complete daily record bag for obtaining record.Could be aware that the communication data state of bottom when ging wrong, there is provided dimension
The basis for estimation of shield.
Preferential, BMC main control chip is one kind of fpga chip or asic chip.
Preferential, encapsulation is with sending parallel carry out.Ensure that transmission delay will not be produced,
Preferential, storage device is FLASH flash memories or DDR(Double Data Rate Double Data Rates synchronous dynamic random is stored
Device)Storage device.
It should be noted that in order to not produce spilling, when storage device will be full, by address reset, with newest number
According to overriding old data, and pointer is always pointed to initial data.Because the design is mainly for maintenance when ging wrong,
The maintenance that old normal data has no effect on the later stage is replaced, cost is saved while satisfaction is required.
Beneficial effects of the present invention:Visualize bottom data, extending the sphere of action of daily record, there is provided new monitoring
Means, reduce the difficulty and cost of maintenance to a certain extent, improve the stability of server operation.
Brief description of the drawings
Fig. 1 is the data flow figure of the present embodiment.
Embodiment
The invention will be further described with embodiment below in conjunction with the accompanying drawings.
In BMC plates(Baseboard management controller)Main control chip inside(Inside fpga chip)In the presence of can be with I2C slave units
The main device module of communication, and I2C slave units correspondingly are the data register of the equipment such as server internal fan, hard disk
Device.The present invention establish a daily record memory module on this basis, module is connected with I2C main equipments, and can be with BMC at
Reason device realizes the direct communication of data.The realization of module is divided into three steps, the export and encapsulation of data, data storage and data
Extract.The specific implementation process of three steps is as follows:
Whole communication datas of I2C read-writes are obtained from I2C main equipments first, and import this module, are carried out according to the form of design
Encapsulation, and export final encapsulation of data.In order to ensure that will not produce transmission delay, encapsulation is with sending parallel carry out.
After encapsulating data, storage device such as FLASH is stored in sequence, waits BMC processors reading instruction to read.Work as skill
When art support staff needs to read bottom data, you can by sending the daily record that instruction obtains storage to BMC processors.Need
To illustrate that in order to not produce spilling, when storage device will be full, address reset is fallen old with newest data cover
Data, and pointer is always pointed to initial data.Because the design is mainly for maintenance when ging wrong, replace old
Normal data have no effect on the maintenance in later stage, save cost while satisfaction is required.
When there is reading instruction triggering, data are taken out from FLASH the insides, and pointer points to next group of data, passes through and obtains
The complete daily record bag of record, what kind of sentencing there is provided maintenance the communication data of bottom is when clearly can know to go wrong
Disconnected foundation.
For the acquisition of communication data, this module is carried out in strict accordance with I2C agreements, and the normal process that I2C writes register is:
1. main equipment initiates commencing signal
2. main equipment sends I2C addresses(7bit)With write operation position 0(1bit), wait-for-response signal
3. slave unit sends response signal(ACKNOWLEDGEMENT)
4. main equipment sends slave unit register address(8bit), wait-for-response signal
5. slave unit sends response signal(ACKNOWLEDGEMENT)
6. main equipment sends data(8bit), i.e., the data that write in register, wait-for-response signal
7. slave unit sends response signal(ACKNOWLEDGEMENT)
8. the 6th step and the 7th step can repeatedly, i.e. multiple registers of sequential write
9. main equipment initiates stop signal
When commencing signal is detected, this module is started working, according to internal obtained each BYTE data, replying or
Person's wait-for-response signal(ACKNOWLEDGEMENT)While, carry out data record encapsulation, receive stop signal it
Afterwards, the complete export of a data is completed.
According to above-mentioned standard I2C host-host protocols, this module with commencing signal and stop for beginning and end judge a little, with
8bit stores for unit, and encapsulation format is
Storage address | Time | Address | Read-write | Data length | Data | |
0X0000000 | 6byte | 7bit | 1bit | 1 bytre | N byte |
The I2C controllers that this module is built according to FPGA, are once recorded during each byte transmission, accumulate read procedure it
The encapsulation of data is carried out afterwards, and is stored in DDR.By being repeated continuously record, the I2C communication logs of a completion can be obtained,
And wait the reading instruction of BMC processors.
Although above-mentioned the embodiment of the present invention is described with reference to accompanying drawing, not to present invention protection model
The limitation enclosed, one of ordinary skill in the art should be understood that on the basis of technical scheme those skilled in the art are not
Need to pay various modifications or deform still within protection scope of the present invention that creative work can make.
Claims (7)
1. a kind of server log memory management method, it is characterised in that by between device by the Data Collection of bus and according to
Form encapsulation, storage form record, when server encounters problems, by transferring stored record, draw the position gone wrong and
Time detail, feeds back to monitoring client.
2. server log memory management method as claimed in claim 1, it is characterised in that the bus is I2C buses.
3. server log memory management method as claimed in claim 1, it is characterised in that inside BMC main control chip,
According to link, by the data that will be sent according to being packaged, and final encapsulation of data is exported;
After encapsulating data, storage device is stored in sequence, waits reading instruction to read;
When there is reading instruction triggering, data are taken out from storage device, and pointer points to next group of data, obtains the complete of record
Daily record bag;By the complete daily record bag for obtaining record;There is provided maintenance for the communication data state of bottom when knowing to go wrong
Basis for estimation.
4. server log memory management method as claimed in claim 3, it is characterised in that BMC main control chip is FPGA
One kind of chip or asic chip.
5. server log memory management method as claimed in claim 3, it is characterised in that encapsulation is with sending parallel carry out.
6. server log memory management method as claimed in claim 3, it is characterised in that the storage device is FLASH
Flash memory or DDR memory device.
7. server log memory management method as claimed in claim 3, it is characterised in that when storage device will be full
Wait, by address reset, old data are fallen with newest data cover, and pointer is always pointed to initial data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710145448.6A CN106951352A (en) | 2017-03-13 | 2017-03-13 | A kind of server log memory management method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710145448.6A CN106951352A (en) | 2017-03-13 | 2017-03-13 | A kind of server log memory management method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106951352A true CN106951352A (en) | 2017-07-14 |
Family
ID=59467254
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710145448.6A Pending CN106951352A (en) | 2017-03-13 | 2017-03-13 | A kind of server log memory management method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106951352A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107608868A (en) * | 2017-09-08 | 2018-01-19 | 联想(北京)有限公司 | Log collecting method, baseboard management controller BMC and Magnetic Disk Controler |
CN107918577A (en) * | 2017-11-28 | 2018-04-17 | 郑州云海信息技术有限公司 | A kind of method that BMC obtains FPGA card temperature information |
CN108777638A (en) * | 2018-08-27 | 2018-11-09 | 郑州云海信息技术有限公司 | A kind of server log information backup method and system |
CN109656778A (en) * | 2018-11-28 | 2019-04-19 | 金蝶软件(中国)有限公司 | Data capture method, device, computer equipment and storage medium |
CN110990325A (en) * | 2019-10-31 | 2020-04-10 | 苏州浪潮智能科技有限公司 | Data transmission method and device based on I2C bus |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103853678A (en) * | 2012-12-06 | 2014-06-11 | 鸿富锦精密工业(深圳)有限公司 | Board management device and board management system and control card using same |
CN104038380A (en) * | 2013-03-07 | 2014-09-10 | 鸿富锦精密工业(深圳)有限公司 | Server motherboard detection system and method |
CN104268068A (en) * | 2014-09-24 | 2015-01-07 | 浪潮电子信息产业股份有限公司 | Method for acquiring server log information |
CN104360927A (en) * | 2014-12-11 | 2015-02-18 | 浪潮电子信息产业股份有限公司 | Method for acquiring monitoring information of computer system structure based on NUMA (Non Uniform Memory Access) |
CN105389244A (en) * | 2015-11-05 | 2016-03-09 | 浪潮(北京)电子信息产业有限公司 | Server monitoring method and apparatus |
-
2017
- 2017-03-13 CN CN201710145448.6A patent/CN106951352A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103853678A (en) * | 2012-12-06 | 2014-06-11 | 鸿富锦精密工业(深圳)有限公司 | Board management device and board management system and control card using same |
CN104038380A (en) * | 2013-03-07 | 2014-09-10 | 鸿富锦精密工业(深圳)有限公司 | Server motherboard detection system and method |
CN104268068A (en) * | 2014-09-24 | 2015-01-07 | 浪潮电子信息产业股份有限公司 | Method for acquiring server log information |
CN104360927A (en) * | 2014-12-11 | 2015-02-18 | 浪潮电子信息产业股份有限公司 | Method for acquiring monitoring information of computer system structure based on NUMA (Non Uniform Memory Access) |
CN105389244A (en) * | 2015-11-05 | 2016-03-09 | 浪潮(北京)电子信息产业有限公司 | Server monitoring method and apparatus |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107608868A (en) * | 2017-09-08 | 2018-01-19 | 联想(北京)有限公司 | Log collecting method, baseboard management controller BMC and Magnetic Disk Controler |
CN107918577A (en) * | 2017-11-28 | 2018-04-17 | 郑州云海信息技术有限公司 | A kind of method that BMC obtains FPGA card temperature information |
CN108777638A (en) * | 2018-08-27 | 2018-11-09 | 郑州云海信息技术有限公司 | A kind of server log information backup method and system |
CN109656778A (en) * | 2018-11-28 | 2019-04-19 | 金蝶软件(中国)有限公司 | Data capture method, device, computer equipment and storage medium |
CN109656778B (en) * | 2018-11-28 | 2022-07-12 | 金蝶软件(中国)有限公司 | Data acquisition method and device, computer equipment and storage medium |
CN110990325A (en) * | 2019-10-31 | 2020-04-10 | 苏州浪潮智能科技有限公司 | Data transmission method and device based on I2C bus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106951352A (en) | A kind of server log memory management method | |
CN105868149B (en) | Serial port information transmission method and device | |
CN105446657B (en) | Method for monitoring RAID card | |
CN106959935A (en) | A kind of method that compatible I2C communications communicate with IPMB | |
CN114116378B (en) | Method, system, terminal and storage medium for acquiring PCIe (peripheral component interconnect express) equipment temperature | |
CN208188815U (en) | BMC module system | |
CN103902427A (en) | Out-band hard disk status obtaining method | |
CN106933753A (en) | The control method and device of intelligent interface card | |
CN104635708A (en) | OPC UA (Unified Architecture) data acquisition module based on I-MX287 processor | |
CN104166611A (en) | Hard disk temperature information acquisition device and method | |
CN107766200A (en) | A kind of I2C monitoring bus system and monitoring method | |
CN107807576A (en) | A kind of intelligent power distribution monitoring management apparatus | |
CN103067201B (en) | A kind of multi-protocol communication manager | |
WO2019105335A1 (en) | Storage device and component management method for storage device | |
CN103856364A (en) | Bus signal monitoring device and method | |
CN115543746A (en) | Graphics processor monitoring method, system and device and electronic equipment | |
CN107026759A (en) | The firmware and its development approach of a kind of remote management BBU modules based on BMC | |
CN104484260B (en) | Simulation monitoring circuit based on GJB289 bus interface SoC (system on a chip) | |
CN117312067A (en) | Network card debugging system, method, equipment and storage medium | |
CN113849355B (en) | I2C rate self-adaptive adjustment method, system, terminal and storage medium | |
CN107230263B (en) | WTB bus data frame recorder and recording method | |
CN206686217U (en) | A kind of multiserver network share framework | |
CN102932208A (en) | Site monitoring method and device | |
CN104268109A (en) | Data interface communication method and device | |
CN103200248B (en) | Based on the communication means of the power param eter supervision of embedded system |
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: 20170714 |
|
RJ01 | Rejection of invention patent application after publication |