Re: SMS 2003 Adv Cli- Cache Deletion Problem

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



To to keep the cache size down I'm running a script on a schedule that
deletes elements in the client cache that hasn't been referenced in the last
X number of days. In that way I'm avoiding the cache growing with several
versions for the same package (client patches, scan engines etc.) and also
installations that hasn't been running for that number of days.

To do this I'm using the LastReferenceTime of the UIResource object:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/smssdk03/hh/sms/smsref30_CacheElement_LastReferenceTime.asp

Rgds,
Rune

"Marin Marinov" <marin-online@xxxxxxxxxx> wrote in message
news:MPG.1ddbdfa0a3e9741d9898df@xxxxxxxxxxxxxxxxxxxxxxx
> In article <2F9684AB-A856-43A6-935B-8257276E28CC@xxxxxxxxxxxxx>,
> y2kbugs97@xxxxxxxxxxxxxxxxxxxxxxxxx says...
>> I'm having a problem in my environment where Client Cache does not get
>> deleted. This seems to be because the Client Cache size is set LARGER
>> then
>> the free available disk space.
>>
>> When this happens, new advertisements will fail because of not enough
>> disk
>> space...even though there are many "dead" packages that could be deleted
>> to
>> provide more disk space.
>>
>>
>> This seems to be the logic the SMS 2003 Advanced Client uses to delete
>> cache:
>>
>> [((pre-determined SMS Cache size parameter) - (actual consumed cache
>> size))
>> - new advertisement package size]
>>
>> If the result is negative, any dead packages (older then 24 hours) will
>> be
>> deleted to create space for the new advertisement.
>>
>> The problem I see with the logic is that there is no additional check for
>> free space on the volume. If the new advertisement is larger then the
>> free
>> space on the volume, the advertisement will fail with this error:
>>
>> In this case, they were not deleted because the Cache size was set to
>> 1000mb
>> (and 459mb's were consumed). However, the volume only had 50mb's of
>> space
>> free.
>>
>> The advertisement was 124MB's in size.
> <snip>
> The SMS Advanced client doesn't reserve free space for its cache. In
> this case, the cache "seems to be" able to fit the new advertisement,
> however there is no physical space.
>
> I haven't come across anything suggesting this behavior is changing in
> SP2. You may want to consider perdiodically checking for computers with
> disk space below a specified threshold. 50MB of free space on (I
> presume) the system volume may lead to other non-SMS related issues and
> cause worse problems than SMS being unable to deploy a package. Moving
> the SMS cache folder to a different drive (if available) is also an
> option.
>
> HTH
> --
> Cheers,
> Marin Marinov
> MCT,MCSE,MCSE:Security,MCP+I
> -
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
> "True knowledge exists in knowing that you know nothing."
> Socrates


.



Relevant Pages

  • Re: OLAP Engine Cache
    ... Thanks for the info but we tried the client cache size already and didn't ... We saw some by changing the server side Memory ...
    (microsoft.public.sqlserver.olap)
  • Re: SMS 2003 Adv Cli- Cache Deletion Problem
    ... > deletes elements in the client cache that hasn't been referenced in the last ... >> The SMS Advanced client doesn't reserve free space for its cache. ... >> cause worse problems than SMS being unable to deploy a package. ...
    (microsoft.public.sms.swdist)
  • Re: SMS 2003 Adv Cli- Cache Deletion Problem
    ... This seems to be because the Client Cache size is set LARGER then ... > deleted to create space for the new advertisement. ... The SMS Advanced client doesn't reserve free space for its cache. ...
    (microsoft.public.sms.swdist)
  • Re: SMS 2003 Adv Cli- Cache Deletion Problem
    ... "Rune Norberg" wrote: ... > deletes elements in the client cache that hasn't been referenced in the last ... >> The SMS Advanced client doesn't reserve free space for its cache. ...
    (microsoft.public.sms.swdist)
  • Re: /var got really big
    ... Others have suggested you clean the apt cache. ... apt-cacher cache rather than have to download the same packages as your ... still have plenty of free space on /var so you don't have to worry for ... directory on another filesystem that has free space. ...
    (Ubuntu)