question

KarunKhanna-4030 avatar image
0 Votes"
KarunKhanna-4030 asked Jason-MSFT commented

SCCM Client Cache Size

if the sccm client cache size is full, i assume it will fail to download any more apps/packages.

is there a setting i can enable to clean up the ccmcache?

for peer cache sources, whats the best way to preserve content on them and make sure the old content is deleted from cache?

mem-cm-general
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Jason-MSFT avatar image
1 Vote"
Jason-MSFT answered Jason-MSFT commented

Cache content is cleaned up automatically as needed based on time last used and a minimum age (which can be configured, see https://docs.microsoft.com/en-us/mem/configmgr/core/clients/deploy/about-client-settings#minimum-duration-before-cached-content-can-be-removed-minutes).

For Peer cache sources, you should increase the size the cache on those systems, use a task sequence and the SMSTSPreserveContent variable, or individually mark content to persist in the client's cache.

See https://docs.microsoft.com/en-us/mem/configmgr/core/plan-design/hierarchy/client-peer-cache#guidance-for-cache-management for further details.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Jason, any chance you can comment on behavior when using SMSTSPreserveContent and the cache is full? I have an OSD task sequences that pre-caches content as well as another to preform the actual upgrade, and on some clients not all files from a package are being persisted, such as the install media for the upgrade. From the smsts logs I don't see any errors related to the content failing to persist, so my assumption is the cache is full and the content isn't being copied all the way. Any ideas or info you can point me to around this?

0 Votes 0 ·

SMSTSPreserveContent doesn't change any behaviors or create an exception to cache full behavior. Increasing the cache size is probably the solution here.

0 Votes 0 ·
SimonRenMSFT-3639 avatar image
0 Votes"
SimonRenMSFT-3639 answered Jason-MSFT commented

Hi,

Thank you for coming Microsoft MECM Q&A forum.

Yes, if the client cache is full or the client attempts to download content for a program or application that is greater than the size of the cache, it will fail. We should either increase the cache size or choose the option to delete cache content.

We can delete the cached client manully or using script:
Procedure to clearing the ConfigMgr (SCCM) client local cache (CCM cache)
Deleting the SCCM Cache the right way (propper way)

For more detailed information about client cache, please refer to the official article:
Configure the client cache

Please note: Some links are not from Microsoft, just for your reference. Thanks for your time.

Best regards,
Simon
If the response is helpful, please click "Accept Answer" and upvote it.


· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

if the client cache is full ... it will fail.

This is not correct. As I called out, content will be automatically removed from the cache as needed. There is no option to enable for this; it is automatic, behavior.

1 Vote 1 ·

Sorry Jason, this isn't correct as it's never been automatic in the way you're explaining. SCCM is supposed to clear it after 24 hours but this doesn't appear to happen I'm afraid

0 Votes 0 ·
Jason-MSFT avatar image Jason-MSFT RussellGarrett-Martin-0293 ·

It 100% is automatic, but yes, only content not used in the last 24 hours is considered for cleanup. I've never seen this not occur. If all content has been used within the last 24 hours on a client, then nothing is considered for removal. If that is your scenario, then you need to consider increasing your cache size. Without more details on the entire scenario, not much more can be said though.

0 Votes 0 ·