aboutsummarylogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md111
1 files changed, 33 insertions, 78 deletions
diff --git a/README.md b/README.md
index b5fd7c08870a..491bc6ca1fd9 100644
--- a/README.md
+++ b/README.md
@@ -31,84 +31,39 @@ journalctl -b0 -u systemd-report-entropy.service
## Example output:
```
--- Logs begin at Sat 2020-08-01 09:15:18 JST, end at Fri 2020-11-06 01:40:57 JST. --
-Nov 06 01:40:01 farseerfc-mbp systemd[1]: Started Start to report entropy in journal.
-Nov 06 01:40:01 farseerfc-mbp systemd-report-entropy[311]: ENTROPY 2020-11-06T01:40:01,821656364+09:00 2256
-Nov 06 01:40:02 farseerfc-mbp systemd-report-entropy[311]: REPORT ENTROPY is-system-running:
-Nov 06 01:40:02 farseerfc-mbp systemd-report-entropy[424]: starting
-Nov 06 01:40:02 farseerfc-mbp systemd-report-entropy[311]: ENTROPY 2020-11-06T01:40:02,094607322+09:00 2257
-Nov 06 01:40:02 farseerfc-mbp systemd-report-entropy[311]: REPORT ENTROPY is-system-running:
-Nov 06 01:40:02 farseerfc-mbp systemd-report-entropy[467]: starting
-Nov 06 01:40:02 farseerfc-mbp systemd-report-entropy[311]: ENTROPY 2020-11-06T01:40:02,342393182+09:00 2261
-Nov 06 01:40:02 farseerfc-mbp systemd-report-entropy[311]: REPORT ENTROPY is-system-running:
-Nov 06 01:40:02 farseerfc-mbp systemd-report-entropy[529]: starting
-Nov 06 01:40:02 farseerfc-mbp systemd-report-entropy[311]: ENTROPY 2020-11-06T01:40:02,624923358+09:00 2265
-Nov 06 01:40:02 farseerfc-mbp systemd-report-entropy[311]: REPORT ENTROPY is-system-running:
-Nov 06 01:40:02 farseerfc-mbp systemd-report-entropy[639]: starting
-Nov 06 01:40:02 farseerfc-mbp systemd-report-entropy[311]: ENTROPY 2020-11-06T01:40:02,888413750+09:00 2269
-Nov 06 01:40:03 farseerfc-mbp systemd-report-entropy[311]: REPORT ENTROPY is-system-running:
-Nov 06 01:40:03 farseerfc-mbp systemd-report-entropy[778]: starting
-Nov 06 01:40:03 farseerfc-mbp systemd-report-entropy[311]: ENTROPY 2020-11-06T01:40:03,130162362+09:00 2270
-Nov 06 01:40:03 farseerfc-mbp systemd-report-entropy[311]: REPORT ENTROPY is-system-running:
-Nov 06 01:40:03 farseerfc-mbp systemd-report-entropy[797]: starting
-Nov 06 01:40:03 farseerfc-mbp systemd-report-entropy[311]: ENTROPY 2020-11-06T01:40:03,369049032+09:00 2271
-Nov 06 01:40:03 farseerfc-mbp systemd-report-entropy[311]: REPORT ENTROPY is-system-running:
-Nov 06 01:40:03 farseerfc-mbp systemd-report-entropy[864]: starting
-Nov 06 01:40:03 farseerfc-mbp systemd-report-entropy[311]: ENTROPY 2020-11-06T01:40:03,611843147+09:00 2272
-Nov 06 01:40:03 farseerfc-mbp systemd-report-entropy[311]: REPORT ENTROPY is-system-running:
-Nov 06 01:40:03 farseerfc-mbp systemd-report-entropy[905]: starting
-Nov 06 01:40:03 farseerfc-mbp systemd-report-entropy[311]: ENTROPY 2020-11-06T01:40:03,851492751+09:00 2273
-Nov 06 01:40:04 farseerfc-mbp systemd-report-entropy[311]: REPORT ENTROPY is-system-running:
-Nov 06 01:40:04 farseerfc-mbp systemd-report-entropy[913]: starting
-Nov 06 01:40:04 farseerfc-mbp systemd-report-entropy[311]: ENTROPY 2020-11-06T01:40:04,091936135+09:00 2275
-Nov 06 01:40:04 farseerfc-mbp systemd-report-entropy[311]: REPORT ENTROPY is-system-running:
-Nov 06 01:40:04 farseerfc-mbp systemd-report-entropy[1036]: starting
-Nov 06 01:40:04 farseerfc-mbp systemd-report-entropy[311]: ENTROPY 2020-11-06T01:40:04,330146916+09:00 2275
-Nov 06 01:40:04 farseerfc-mbp systemd-report-entropy[311]: REPORT ENTROPY is-system-running:
-Nov 06 01:40:04 farseerfc-mbp systemd-report-entropy[1053]: starting
-Nov 06 01:40:04 farseerfc-mbp systemd-report-entropy[311]: ENTROPY 2020-11-06T01:40:04,570204545+09:00 2276
-Nov 06 01:40:04 farseerfc-mbp systemd-report-entropy[311]: REPORT ENTROPY is-system-running:
-Nov 06 01:40:04 farseerfc-mbp systemd-report-entropy[1092]: starting
-Nov 06 01:40:04 farseerfc-mbp systemd-report-entropy[311]: ENTROPY 2020-11-06T01:40:04,817767855+09:00 2277
-Nov 06 01:40:05 farseerfc-mbp systemd-report-entropy[311]: REPORT ENTROPY is-system-running:
-Nov 06 01:40:05 farseerfc-mbp systemd-report-entropy[1117]: starting
-Nov 06 01:40:05 farseerfc-mbp systemd-report-entropy[311]: ENTROPY 2020-11-06T01:40:05,058280321+09:00 2277
-Nov 06 01:40:05 farseerfc-mbp systemd-report-entropy[311]: REPORT ENTROPY is-system-running:
-Nov 06 01:40:05 farseerfc-mbp systemd-report-entropy[1125]: starting
-Nov 06 01:40:05 farseerfc-mbp systemd-report-entropy[311]: ENTROPY 2020-11-06T01:40:05,297474806+09:00 2278
-Nov 06 01:40:05 farseerfc-mbp systemd-report-entropy[311]: REPORT ENTROPY is-system-running:
-Nov 06 01:40:05 farseerfc-mbp systemd-report-entropy[1132]: starting
-Nov 06 01:40:05 farseerfc-mbp systemd-report-entropy[311]: ENTROPY 2020-11-06T01:40:05,538473136+09:00 2279
-Nov 06 01:40:05 farseerfc-mbp systemd-report-entropy[311]: REPORT ENTROPY is-system-running:
-Nov 06 01:40:05 farseerfc-mbp systemd-report-entropy[1139]: starting
-Nov 06 01:40:05 farseerfc-mbp systemd-report-entropy[311]: ENTROPY 2020-11-06T01:40:05,779119853+09:00 2282
-Nov 06 01:40:06 farseerfc-mbp systemd-report-entropy[311]: REPORT ENTROPY is-system-running:
-Nov 06 01:40:06 farseerfc-mbp systemd-report-entropy[1146]: starting
-Nov 06 01:40:06 farseerfc-mbp systemd-report-entropy[311]: ENTROPY 2020-11-06T01:40:06,019094053+09:00 2287
-Nov 06 01:40:06 farseerfc-mbp systemd-report-entropy[311]: REPORT ENTROPY is-system-running:
-Nov 06 01:40:06 farseerfc-mbp systemd-report-entropy[1153]: starting
-Nov 06 01:40:06 farseerfc-mbp systemd-report-entropy[311]: ENTROPY 2020-11-06T01:40:06,262658068+09:00 2293
-Nov 06 01:40:06 farseerfc-mbp systemd-report-entropy[311]: REPORT ENTROPY is-system-running:
-Nov 06 01:40:06 farseerfc-mbp systemd-report-entropy[1160]: starting
-Nov 06 01:40:06 farseerfc-mbp systemd-report-entropy[311]: ENTROPY 2020-11-06T01:40:06,503870376+09:00 2296
-Nov 06 01:40:06 farseerfc-mbp systemd-report-entropy[311]: REPORT ENTROPY is-system-running:
-Nov 06 01:40:06 farseerfc-mbp systemd-report-entropy[1167]: starting
-Nov 06 01:40:06 farseerfc-mbp systemd-report-entropy[311]: ENTROPY 2020-11-06T01:40:06,749538576+09:00 2299
-Nov 06 01:40:06 farseerfc-mbp systemd-report-entropy[311]: REPORT ENTROPY is-system-running:
-Nov 06 01:40:06 farseerfc-mbp systemd-report-entropy[1175]: starting
-Nov 06 01:40:06 farseerfc-mbp systemd-report-entropy[311]: ENTROPY 2020-11-06T01:40:06,990995043+09:00 2301
-Nov 06 01:40:07 farseerfc-mbp systemd-report-entropy[311]: REPORT ENTROPY is-system-running:
-Nov 06 01:40:07 farseerfc-mbp systemd-report-entropy[1182]: starting
-Nov 06 01:40:07 farseerfc-mbp systemd-report-entropy[311]: ENTROPY 2020-11-06T01:40:07,232147585+09:00 2301
-Nov 06 01:40:07 farseerfc-mbp systemd-report-entropy[311]: REPORT ENTROPY is-system-running:
-Nov 06 01:40:07 farseerfc-mbp systemd-report-entropy[1189]: starting
-Nov 06 01:40:07 farseerfc-mbp systemd-report-entropy[311]: ENTROPY 2020-11-06T01:40:07,476427253+09:00 2302
-Nov 06 01:40:07 farseerfc-mbp systemd-report-entropy[311]: REPORT ENTROPY is-system-running:
-Nov 06 01:40:07 farseerfc-mbp systemd-report-entropy[1233]: starting
-Nov 06 01:40:07 farseerfc-mbp systemd-report-entropy[311]: ENTROPY 2020-11-06T01:40:07,717667752+09:00 2302
-Nov 06 01:40:07 farseerfc-mbp systemd-report-entropy[311]: REPORT ENTROPY is-system-running:
-Nov 06 01:40:07 farseerfc-mbp systemd-report-entropy[1249]: running
-Nov 06 01:40:07 farseerfc-mbp systemd-report-entropy[311]: REPORT ENTROPY systemd boot finished, quit.
+-- Journal begins at Mon 2020-11-30 11:05:02 JST, ends at Mon 2020-12-07 11:32:10 JST. --
+12月 07 11:30:31 imacssd systemd-report-entropy[317]: At 2020-12-07T11:30:31,703999577+09:00 ENTROPY 2273 sleeping 227.30000000000000000000 ms
+12月 07 11:30:32 imacssd systemd-report-entropy[317]: is-system-running: initializing
+12月 07 11:30:32 imacssd systemd-report-entropy[317]: At 2020-12-07T11:30:32,028432113+09:00 ENTROPY 2278 sleeping 227.80000000000000000000 ms
+12月 07 11:30:32 imacssd systemd-report-entropy[317]: is-system-running: initializing
+12月 07 11:30:32 imacssd systemd-report-entropy[317]: At 2020-12-07T11:30:32,275582469+09:00 ENTROPY 2281 sleeping 228.10000000000000000000 ms
+12月 07 11:30:32 imacssd systemd-report-entropy[317]: is-system-running: initializing
+12月 07 11:30:32 imacssd systemd-report-entropy[317]: At 2020-12-07T11:30:32,530915564+09:00 ENTROPY 2296 sleeping 229.60000000000000000000 ms
+12月 07 11:30:32 imacssd systemd-report-entropy[317]: is-system-running: initializing
+12月 07 11:30:32 imacssd systemd-report-entropy[317]: At 2020-12-07T11:30:32,776745567+09:00 ENTROPY 2306 sleeping 230.60000000000000000000 ms
+12月 07 11:30:33 imacssd systemd-report-entropy[317]: is-system-running: initializing
+12月 07 11:30:33 imacssd systemd-report-entropy[317]: At 2020-12-07T11:30:33,019687024+09:00 ENTROPY 2308 sleeping 230.80000000000000000000 ms
+12月 07 11:30:33 imacssd systemd-report-entropy[317]: is-system-running: starting
+12月 07 11:30:33 imacssd systemd-report-entropy[317]: At 2020-12-07T11:30:33,262886342+09:00 ENTROPY 2310 sleeping 231.00000000000000000000 ms
+12月 07 11:30:33 imacssd systemd-report-entropy[317]: is-system-running: starting
+12月 07 11:30:33 imacssd systemd-report-entropy[317]: At 2020-12-07T11:30:33,506260356+09:00 ENTROPY 2313 sleeping 231.30000000000000000000 ms
+12月 07 11:30:33 imacssd systemd-report-entropy[317]: is-system-running: starting
+12月 07 11:30:33 imacssd systemd-report-entropy[317]: At 2020-12-07T11:30:33,749220139+09:00 ENTROPY 2313 sleeping 231.30000000000000000000 ms
+12月 07 11:30:33 imacssd systemd-report-entropy[317]: is-system-running: running
+12月 07 11:30:33 imacssd systemd-report-entropy[317]: REPORT ENTROPY systemd boot finished, quit.
```
+## What do these outputs all mean?
+
+The service will start before system enters `basic.target` and report time, entropy several times per second.
+
+The output line with `is-system-running` is from `systemctl is-system-running`, which is used to determine the systemd bootup status.
+`initializing` means the system hasn't reach `basic.target`, and is most likely tring to mount local filesystems.
+`starting` is after `basic.target` and before `default.target`, when systemd is starting up system services.
+
+You can co-relate the timestamps, entropy with other systemd units to see at which point the entropy is enough.
+
+To initialize kernel PRNG(Pseudo-Random Number Generator), that is for programs to able to read from `/dev/urandom` or `getrandom`,
+the kernel needs at least 512 bits of entropy. Therefore any value less than 512 indicates that you may want to add entropy sources.
+