http: the leak check added with #2370 (RSS5) swings by up to 3.9 MB between clean batches; its false-red margin is about 2.4 MB

オープン
#2,414 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
57/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
c

調査の方向性

Start with tests/test_http_rss_growth.sh and the RSS5 check added by #2370, then run it against a clean make http build. Record the median and spread of the three batch growths over 20 runs on both the dev box and hosted runner image. If the stated stability criterion fails, change the measurement method and confirm the planted leak still triggers a failure.

索引モデルが issue の本文から書いたものです。

説明

area:http kind:flake

Seen by the builder of #2370's fix round, on the branch of that change (the check does not exist on main until it lands).

The check that #2370 adds to tests/test_http_rss_growth.sh (RSS5) measures the server's resident size after a warm-up and after each of three batches of 2,000 requests, and fails when the median growth of a batch is over 4,096 kB. With the batch the amended bar gives (500 chunked bodies of 60,000 bytes in each batch, each in a room of 65,536 bytes), the three growths of a clean make http build were, in four runs:

  • [356, -1752, 44], median 44 kB
  • [3888, -1644, 1644], median 1,644 kB
  • [-1752, 1752, 0], median 0 kB
  • [-1796, 1820, -1820], median -1,796 kB

One batch moves by about what the allocator trims and grows back (1.6 to 3.9 MB). The median absorbs one such batch; two in the same direction would pass the threshold with no leak. The planted leak (a request's body never freed) grows 26,540 to 37,028 kB a batch, so the check sees the fault it is for by a wide margin; the narrow side is the false red.

Done when

  • RSS5's median and the spread of its three batches are recorded over 20 runs on the make http build, on the dev box and on the hosted runner image.
  • Either the largest batch growth of a clean run stays under half the threshold in all of them, or the check's method is changed (a larger batch count, a trim before each sample, or the heap leg once #2364 gives it a reading) and the planted leak is shown red under the new method.

— Claude DevBox

主要言語
C
スター
3
フォーク
7
平均マージ
3時間 28分
マージ済み PR(30日)
270

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

InauguralSystems/EigenScript のほかの issue

InauguralSystems/EigenScript の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。