High disk activity from the Capability Access Manager Service (camsvc) is typically caused by a runaway app or process repeatedly triggering Location or Camera permissions, causing the database’s write-ahead log (.db-wal) to bloat. Stop the service, delete the bloated file, and adjust privacy settings to resolve this.
Immediate Fix: Clear the Bloated Database File
- Stop the Service: Press Win + R, type services.msc, and hit Enter. Scroll to Capability Access Manager Service (camsvc), right-click it, and select Stop.
- Delete the .db-wal File: Open File Explorer and navigate to C:\ProgramData\Microsoft\Windows\CapabilityAccessManager. Locate the CapabilityAccessManager.db-wal file and delete it (leave the main .db file intact).
- Restart the Service: Return to the Services window, right-click Capability Access Manager Service, and click Start.
Prevent the Issue from Returning
If the .db-wal file keeps rapidly expanding, a third-party app or background process is constantly polling for permission data.
- Check Privacy Settings: Navigate to Settings > Privacy & security > Location.
- Disable Runaway Access: Turn off Location services temporarily, or turn off Let desktop apps access your location.
- Update or Isolate Third-Party Apps: Check for running browser overlays, screen recorders, or chat applications that may be requesting excessive background capabilities.
How to gain access to folder https://pcpar.net/2022/08/23/grant-access-to-files-and-folders-with-icacls/