bazel: bazel build data is huge and takes several hours to remove

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

Maintainer thường phản hồi trong vòng 1 ngày

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

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Lĩnh vực
build-system

Hướng nghiên cứu

Start by reviewing the Bazel cache and output-directory settings listed in the issue, especially --output_user_root, --output_base, --repository_cache, and --disk_cache. The report does not identify which directories are duplicated or what is making removal slow, so first gather disk-usage and file-permission details for those paths. Done means identifying a reproducible cause and a concrete way to reduce disk usage or simplify cleanup.

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

Mô tả

Describe the bug

I had to move data to another bigger drive. This took several hours.
I tried using rm -rf -v to see what was happening and it seems there are a lot of duplicates directories.
Also I had to do chmod -R u+w as there was a lot of files that was readonly.

I used the following directories:

root=/prj/gpca_dig/users/costa/.bazel
mkdir -p $root/output/user_root
mkdir -p $root/output/base
mkdir -p $root/cache/repository
mkdir -p $root/cache/disk

with the following in the ~/.bazelrc file:

startup --output_user_root=/prj/gpca_dig/users/costa/.bazel/output/user_current
startup --output_base=/prj/gpca_dig/users/costa/.bazel/output/base
common --repository_cache=/prj/gpca_dig/users/costa/.bazel/cache/repository --disk_cache /prj/gpca_dig/users/costa/.bazel/cache/disk
fetch  --repository_cache=/prj/gpca_dig/users/costa/.bazel/cache/repository --disk_cache /prj/gpca_dig/users/costa/.bazel/cache/disk
build  --repository_cache=/prj/gpca_dig/users/costa/.bazel/cache/repository --disk_cache /prj/gpca_dig/users/costa/.bazel/cache/disk
run    --repository_cache=/prj/gpca_dig/users/costa/.bazel/cache/repository --disk_cache /prj/gpca_dig/users/costa/.bazel/cache/disk
test   --repository_cache=/prj/gpca_dig/users/costa/.bazel/cache/repository --disk_cache /prj/gpca_dig/users/costa/.bazel/cache/disk
Expected Behavior

Reduce disk usage

Environment
RHEL 8.1
Latest OR
To Reproduce

/

Relevant log output

Screenshots

No response

Additional Context

No response

Ngôn ngữ chính
Verilog
Star
3.3k
Fork
1.1k
Merge trung bình
2 ngày 14 giờ
Pull request đã merge (30 ngày)
277

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

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 The-OpenROAD-Project/OpenROAD

Tất cả issue của The-OpenROAD-Project/OpenROAD

Issue tương tự

Thêm issue về Build System

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.