|
14 | 14 | - [About this Manual](#about-this-manual) |
15 | 15 | - [Scope](#scope) |
16 | 16 | - [Definitions/Abbreviations](#definitionsabbreviations) |
17 | | - - [Table 1: Abbreviations](#table-1-abbreviations) |
| 17 | + - [Table 1: Abbreviations](#table-1-abbreviations) |
18 | 18 | - [Requirements Overview <a name="requirements-overview"></a>](#requirements-overview-a-namerequirements-overviewa) |
19 | | - - [Functional Requirements <a name="functional-requirements"></a>](#functional-requirements-a-namefunctional-requirementsa) |
20 | | - - [Scalability Requirements](#scalability-requirements) |
21 | | - - [Warmboot Requirements](#warmboot-requirements) |
22 | | - - [Configuration and Management Requirements](#configuration-and-management-requirements) |
23 | | - - [Configuration commands](#configuration-commands) |
24 | | - - [Information commands](#information-commands) |
| 19 | + - [Functional Requirements <a name="functional-requirements"></a>](#functional-requirements-a-namefunctional-requirementsa) |
| 20 | + - [Scalability Requirements](#scalability-requirements) |
| 21 | + - [Warmboot Requirements](#warmboot-requirements) |
| 22 | + - [Configuration and Management Requirements](#configuration-and-management-requirements) |
| 23 | + - [Configuration commands](#configuration-commands) |
| 24 | + - [Information commands](#information-commands) |
25 | 25 | - [kdump : end-to-end flow](#kdump-end-to-end-flow) |
26 | 26 | - [Functional Description](#functional-description) |
27 | | - - [Design](#design) |
28 | | - - [Kernel core-dump service](#kernel-core-dump-service) |
29 | | - - [SONiC Code Changes](#sonic-code-changes) |
30 | | - - [Configuration commands:](#configuration-commands) |
31 | | - - [config kdump <enable|disable>](#config-kdump-enabledisable) |
32 | | - - [config kdump memory string](#config-kdump-memory-string) |
33 | | - - [config kdump num_dumps number](#config-kdump-numdumps-number) |
34 | | - - [show kdump [status]](#show-kdump-status) |
35 | | - - [show kdump files](#show-kdump-files) |
36 | | - - [show kdump log [X]](#show-kdump-log-x) |
| 27 | + - [Design](#design) |
| 28 | + - [Kernel core-dump service](#kernel-core-dump-service) |
| 29 | + - [SONiC Code Changes](#sonic-code-changes) |
| 30 | + - [Configuration commands:](#configuration-commands) |
| 31 | + - [config kdump <enable|disable>](#config-kdump-enabledisable) |
| 32 | + - [config kdump memory string](#config-kdump-memory-string) |
| 33 | + - [config kdump num_dumps number](#config-kdump-numdumps-number) |
| 34 | + - [show kdump [status]](#show-kdump-status) |
| 35 | + - [show kdump files](#show-kdump-files) |
| 36 | + - [show kdump log [X]](#show-kdump-log-x) |
37 | 37 | - [How to use the kernel core dump files](#how-to-use-the-kernel-core-dump-files) |
38 | | - - [Introduction](#introduction) |
39 | | - - [Use the kernel core dump file on the switch](#use-the-kernel-core-dump-file-on-the-switch) |
40 | | - - [Use the kernel core dump file on a Linux host](#use-the-kernel-core-dump-file-on-a-linux-host) |
41 | | - - [Analyzing the core dump](#analyzing-the-core-dump) |
| 38 | + - [Introduction](#introduction) |
| 39 | + - [Use the kernel core dump file on the switch](#use-the-kernel-core-dump-file-on-the-switch) |
| 40 | + - [Use the kernel core dump file on a Linux host](#use-the-kernel-core-dump-file-on-a-linux-host) |
| 41 | + - [Analyzing the core dump](#analyzing-the-core-dump) |
42 | 42 | - [KDUMP DB](#kdump-db) |
43 | | -- [Unit Test](#unit-test) |
| 43 | +- [Test](#test) |
| 44 | + - [Test on Different Platforms](#test-on-different-platforms) |
| 45 | + - [Unit Test](#unit-test) |
44 | 46 |
|
45 | 47 | <!-- /TOC --> |
46 | 48 |
|
@@ -421,6 +423,23 @@ Links: |
421 | 423 | "num_dumps" :{{number}} |
422 | 424 | ``` |
423 | 425 |
|
424 | | -## Unit Test |
| 426 | +## Test |
| 427 | + |
| 428 | +### Test on Different Platforms |
| 429 | + |
| 430 | +We tested the Linux kernel dump mechanism on different platfroms in StarLab. |
| 431 | +The following table shows detailed information related to the size of core |
| 432 | +dump file and kernel log file, the downtime of device. At here, the downtime |
| 433 | +represents the time interval from issuing the command `echo c > /prpc/sysrq-trigger` |
| 434 | +triggering the kernel crash to the device is up and can be logged in again. |
| 435 | + |
| 436 | +| Platforms | Memory Size | Size of core file | Size of kernel log file | Downtime | |
| 437 | +| ------------------- | ----------- | ----------------- | ----------------------- | -------- | |
| 438 | +| Arista-7050-QX-32S | 4 GB | 119 MB | 72 KB | 150 s | |
| 439 | +| Mellanox SN2700 | 8 GB | 246 MB | 116 KB | 160 s | |
| 440 | +| Force10-S6000 | 8 GB | 77 MB | 72 KB | 150 s | |
| 441 | +| Celestica-E1031 | 2 GB | 53 MB | 60 KB | 270 s | |
| 442 | + |
| 443 | +### Unit Test |
425 | 444 |
|
426 | 445 | [Test of sonic-kdump](images/sonic-kdump_ut.pdf) |
0 commit comments