Project

General

Profile

Actions

Bug #39318

closed

w_await high when rockdb compacting

Added by hoan nv about 5 years ago. Updated 6 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

hi all.

I have a ceph cluster and all disk ssd.
I benchmark disk. it ok

sometime disk has w_await to 300 or 1000

This is log osd.

I see w_await high when rockdb compacting

2019-04-16 16:32:02.519 7f33aa693700  3 rocksdb: [/home/jenkins-build/build/workspace/ceph-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos7/DIST/centos7/MACHINE_SIZE/huge/release/13.2.5/rpm/el7/BUILD/ceph-13.2.5/src/rocksdb/db/db_impl.cc:49
1]
** DB Stats **
Uptime(secs): 2289.1 total, 1334.4 interval
Cumulative writes: 225K writes, 1123K keys, 225K commit groups, 1.0 writes per commit group, ingest: 1.67 GB, 0.75 MB/s
Cumulative WAL: 225K writes, 109K syncs, 2.05 writes per sync, written: 1.67 GB, 0.75 MB/s
Cumulative stall: 00:00:0.000 H:M:S, 0.0 percent
Interval writes: 118K writes, 558K keys, 118K commit groups, 1.0 writes per commit group, ingest: 979.38 MB, 0.73 MB/s
Interval WAL: 118K writes, 58K syncs, 2.03 writes per sync, written: 0.96 MB, 0.73 MB/s
Interval stall: 00:00:0.000 H:M:S, 0.0 percent

** Compaction Stats [default] **
Level    Files   Size     Score Read(GB)  Rn(GB) Rnp1(GB) Write(GB) Wnew(GB) Moved(GB) W-Amp Rd(MB/s) Wr(MB/s) Comp(sec) Comp(cnt) Avg(sec) KeyIn KeyDrop
----------------------------------------------------------------------------------------------------------------------------------------------------------
  L0      4/0   65.27 MB   1.0      0.0     0.0      0.0       0.1      0.1       0.0   1.0      0.0     70.6         2         8    0.253       0      0
  L1      4/0   214.13 MB   1.0      0.3     0.1      0.2       0.2      0.0       0.0   2.8     26.9     21.0        10         1   10.218   1598K    88K
  L2     30/0    1.45 GB   0.6      0.0     0.0      0.0       0.0      0.0       0.0   0.0      0.0      0.0         0         0    0.000       0      0
 Sum     38/0    1.72 GB   0.0      0.3     0.1      0.2       0.3      0.2       0.0   2.5     22.5     29.2        12         9    1.360   1598K    88K
 Int      0/0    0.00 KB   0.0      0.3     0.1      0.2       0.3      0.1       0.0   4.3     24.4     24.8        11         5    2.250   1598K    88K
Uptime(secs): 2289.1 total, 1334.4 interval
Flush(GB): cumulative 0.139, interval 0.064
AddFile(GB): cumulative 0.000, interval 0.000
AddFile(Total Files): cumulative 0, interval 0
AddFile(L0 Files): cumulative 0, interval 0
AddFile(Keys): cumulative 0, interval 0
Cumulative compaction: 0.35 GB write, 0.16 MB/s write, 0.27 GB read, 0.12 MB/s read, 12.2 seconds
Interval compaction: 0.27 GB write, 0.21 MB/s write, 0.27 GB read, 0.21 MB/s read, 11.3 seconds
Stalls(count): 0 level0_slowdown, 0 level0_slowdown_with_compaction, 0 level0_numfiles, 0 level0_numfiles_with_compaction, 0 stop for pending_compaction_bytes, 0 slowdown for pending_compaction_bytes, 0 memtable_compaction, 0 memtable_slowdown, interval 0 total count

** File Read Latency Histogram By Level [default] **

** Compaction Stats [default] **
Level    Files   Size     Score Read(GB)  Rn(GB) Rnp1(GB) Write(GB) Wnew(GB) Moved(GB) W-Amp Rd(MB/s) Wr(MB/s) Comp(sec) Comp(cnt) Avg(sec) KeyIn KeyDrop
----------------------------------------------------------------------------------------------------------------------------------------------------------
  L0      4/0   65.27 MB   1.0      0.0     0.0      0.0       0.1      0.1       0.0   1.0      0.0     70.6         2         8    0.253       0      0
  L1      4/0   214.13 MB   1.0      0.3     0.1      0.2       0.2      0.0       0.0   2.8     26.9     21.0        10         1   10.218   1598K    88K
  L2     30/0    1.45 GB   0.6      0.0     0.0      0.0       0.0      0.0       0.0   0.0      0.0      0.0         0         0    0.000       0      0
 Sum     38/0    1.72 GB   0.0      0.3     0.1      0.2       0.3      0.2       0.0   2.5     22.5     29.2        12         9    1.360   1598K    88K
 Int      0/0    0.00 KB   0.0      0.0     0.0      0.0       0.0      0.0       0.0   0.0      0.0      0.0         0         0    0.000       0      0
Uptime(secs): 2289.1 total, 0.0 interval
Flush(GB): cumulative 0.139, interval 0.000
AddFile(GB): cumulative 0.000, interval 0.000
AddFile(Total Files): cumulative 0, interval 0
AddFile(L0 Files): cumulative 0, interval 0
AddFile(Keys): cumulative 0, interval 0
Cumulative compaction: 0.35 GB write, 0.16 MB/s write, 0.27 GB read, 0.12 MB/s read, 12.2 seconds
Interval compaction: 0.00 GB write, 0.00 MB/s write, 0.00 GB read, 0.00 MB/s read, 0.0 seconds
Stalls(count): 0 level0_slowdown, 0 level0_slowdown_with_compaction, 0 level0_numfiles, 0 level0_numfiles_with_compaction, 0 stop for pending_compaction_bytes, 0 slowdown for pending_compaction_bytes, 0 memtable_compaction, 0 memtable_slowdown, interval 0 total count

** File Read Latency Histogram By Level [default] **

Rockdb compact too slow?

Thanks


Files

log-compact-ceph (209 KB) log-compact-ceph hoan nv, 04/22/2019 02:43 AM
Grafana - osd-write-latency.png (26.7 KB) Grafana - osd-write-latency.png disk write latency hoan nv, 04/26/2019 02:33 AM
Grafana - osd -latency.png (56.5 KB) Grafana - osd -latency.png osd latency hoan nv, 04/26/2019 02:33 AM
Grafana - write latency after tuning rocksdb.png (30.4 KB) Grafana - write latency after tuning rocksdb.png write latency after tuning rocksdb hoan nv, 05/08/2019 03:29 AM

Related issues 1 (0 open1 closed)

Related to bluestore - Bug #23819: how to make compactions smoothWon't Fix04/23/2018

Actions
Actions

Also available in: Atom PDF