Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

VSZ pidstat manpage has maybe wrong unit

Đang mở
#399 4 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
30/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
c, linux
Lĩnh vực
documentation

Hướng nghiên cứu

Compare the VSZ calculation at pidstat.c:491 with the unit description at man/pidstat.1:172. Start by checking how the code's value relates to the value reported by top, as described in the issue. Done means the calculation and manpage consistently describe the unit; the issue provides no test or further verification steps.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Hello everyone, was recenty confused while comparing some tools that the man page of pidstat claims that VSZ is kilobytes but should this not be kibibytes. I'm not really great with the C language but shold this line not divide by 2^10, so 1024?
https://github.com/sysstat/sysstat/blob/6a976eb60aed3773076ffd99fd0058c74678ccde/pidstat.c#L491

Line in the man page:
https://github.com/sysstat/sysstat/blob/6a976eb60aed3773076ffd99fd0058c74678ccde/man/pidstat.1#L172

As an example, top and pidstat report the same value for VIRT/VSZ and top claims that it reports in "KiB" so something is going on here.

Ngôn ngữ chính
C
Star
3.4k
Fork
490
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của sysstat/sysstat

Tất cả issue của sysstat/sysstat

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.