Skip to content

refactor(writer): Clean up writer performance stats#802

Open
HuamengJiang wants to merge 1 commit into
facebookincubator:mainfrom
HuamengJiang:export-D106909562
Open

refactor(writer): Clean up writer performance stats#802
HuamengJiang wants to merge 1 commit into
facebookincubator:mainfrom
HuamengJiang:export-D106909562

Conversation

@HuamengJiang
Copy link
Copy Markdown

@HuamengJiang HuamengJiang commented May 31, 2026

Summary:
Follow-up cleanup for D106147104. Addresses review comments from xiaoxmeng.

  • Remove totalFlushTiming_ / stripeFlushTiming_encodingTiming subsumes flush timing
  • Write I/O uses NanosecondTimer (wall-only) since CPU time is not meaningful for I/O; remove writeCpuTimeNs
  • Replace folly::StreamingStats<uint64_t> with velox::RuntimeMetric for chunkSizeStats in FieldWriterContext and VeloxWriter::Stats
  • Replace std::vector<uint64_t> rowsPerStripe with velox::RuntimeMetric in VeloxWriter::Stats
  • Remove inputBufferReallocCount / inputBufferReallocItemCount from Stats
  • Move chunk size and rowsPerStripe reporting from customStats_ to addThreadLocalRuntimeStat
  • Fix FileWriter.cpp ws_pwrite latency to use writeWallTimeNs instead of encoding timing
  • Rename writerStats to stats in NimbleWriter.cpp

Differential Revision: D106909562

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label May 31, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented May 31, 2026

@HuamengJiang has exported this pull request. If you are a Meta employee, you can view the originating Diff in D106909562.

Summary:
Follow-up cleanup for D106147104. Addresses review comments from xiaoxmeng.

- Remove `totalFlushTiming_` / `stripeFlushTiming_` — `encodingTiming` subsumes flush timing
- Write I/O uses `NanosecondTimer` (wall-only) since CPU time is not meaningful for I/O; remove `writeCpuTimeNs`
- Replace `folly::StreamingStats<uint64_t>` with `velox::RuntimeMetric` for `chunkSizeStats` in `FieldWriterContext` and `VeloxWriter::Stats`
- Replace `std::vector<uint64_t> rowsPerStripe` with `velox::RuntimeMetric` in `VeloxWriter::Stats`
- Remove `inputBufferReallocCount` / `inputBufferReallocItemCount` from `Stats`
- Move chunk size and `rowsPerStripe` reporting from `customStats_` to `addThreadLocalRuntimeStat`
- Fix `FileWriter.cpp` `ws_pwrite` latency to use `writeWallTimeNs` instead of encoding timing
- Rename `writerStats` to `stats` in `NimbleWriter.cpp`

Differential Revision: D106909562
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant