Open
Description
If you've started lots of services and then stopped them, the memory used by the service information (particularly the log ring buffer) stays around and is never pruned. Pebble is used in several contexts including memory-constrained containers and small devices, so we should design and implement a way to prune these when the services has been stopped for a while or there are too many services. Obviously we can't prune running services; we may be able to shrink/deallocate the log buffers for services on backoff state if they've been in that state for too long.
For comparison, old (done) changes are pruned when there are more than 500 of them or they've been done for more than 7 days (the interval for checking whether to prune is 10m).
Activity