go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
45.29k stars 5.51k forks source link

Add used disk space to `System Status` #10771

Open alexanderadam opened 4 years ago

alexanderadam commented 4 years ago

Description

There's this overview at /admin but I'm not sure where I can see the allocated disk space. Total Memory Allocated is RAM, right?

Screenshots

Screenshot_20200319_151113

lunny commented 4 years ago

Yes, currently there is no space used information.

alexanderadam commented 4 years ago

Ah, I thought this info is already somewhere. But I changed the issue name now accordingly.

By the way: thank you for handling all those issues, and stay healthy. :+1:

TimerWolf commented 4 years ago

Another nice improvement would be to fix more friendly reading output for the values that don't has it like.

Memory Allocations: 440.3 MiB
Memory Frees: 439.7 MiB
Heap Objects: 623.998
GC Times: 5.153
alexanderadam commented 4 years ago

Memory Allocations: 440.3 MiB

IMHO this would be wrong, though. It's the amount for allocations. There's no unit for it. So you could write "thousands", "millions" etc. (Memory Allocations: 440 millions).

Or at least it would help if those numbers could be properly formatted. So rather Memory Allocations: 461'748'329 instead of Memory Allocations: 461748329. Because 461748329 (or even larger numbers) are difficult to parse for humans otherwise. :wink:

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.

a1012112796 commented 4 years ago

ping :)

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.

alexanderadam commented 4 years ago

ping

alexrabin commented 5 months ago

Any status on this?

alexanderadam commented 2 months ago

I'm not using Gitea anymore.

lunny commented 2 months ago

@alexanderadam Thank you for opening this issue. I think it's still meaningful for other users. So I would like to keep it open until someone implements the feature.

lunny commented 2 months ago

I think this issue depends on #31804 . Currently, repositories' size/LFS size have been stored in database. So we can do a sum SQL to calculate the size of repositories. Except repositories size, we also need to know the size of database/attachments/avatars/action logs.