userlibandfileserver/fileserver/sfile/sf_file_cache_defs.h
branchRCL_3
changeset 80 597aaf25e343
parent 0 a41df078684a
equal deleted inserted replaced
62:4a8fed1c0ef6 80:597aaf25e343
    24 */
    24 */
    25 
    25 
    26 
    26 
    27 // Global file-cache settings 
    27 // Global file-cache settings 
    28 const TBool KDefaultGlobalCacheEnabled			= ETrue; 
    28 const TBool KDefaultGlobalCacheEnabled			= ETrue; 
       
    29 #ifdef __WINS__
       
    30 // Reduce impact on S60 emulator memory budget
       
    31 const TInt KDefaultGlobalCacheSize				= ( 8*1024);	//  8192 K =  8 MBytes - the maximum for all files
       
    32 #else
    29 const TInt KDefaultGlobalCacheSize				= (32*1024);	// 32768 K = 32 MBytes - the maximum for all files
    33 const TInt KDefaultGlobalCacheSize				= (32*1024);	// 32768 K = 32 MBytes - the maximum for all files
       
    34 #endif
    30 // The maximum amount of locked data allowed for all files
    35 // The maximum amount of locked data allowed for all files
    31 const TInt KDefaultGlobalCacheMaxLockedSize	= (1*1024);		// 1 Mb maximum locked data
    36 const TInt KDefaultGlobalCacheMaxLockedSize	= (1*1024);		// 1 Mb maximum locked data
    32 // Low memory threshold as a percentage of total RAM.
    37 // Low memory threshold as a percentage of total RAM.
    33 // If the amount of RAM drops below this value, attempts to allocate memory for a file caching will fail
    38 // If the amount of RAM drops below this value, attempts to allocate memory for a file caching will fail
    34 const TInt KDefaultLowMemoryThreshold			= 10;			// 10 % of total RAM
    39 const TInt KDefaultLowMemoryThreshold			= 10;			// 10 % of total RAM