[users at i-scream] ZFS Cache on Solaris 10 and 11

Guillermo Adrián Molina guillermoadrianmolina at hotmail.com
Thu Sep 12 10:36:51 BST 2013


Hi, I want to contribute with this to solve the cache=0 issue in solaris 10 and 11Cheers
in: src/libstatgrab/memory_stats.c
84a85> # else209,228d209<       if( (kc = kstat_open()) == NULL ) {<               RETURN_WITH_SET_ERROR("mem", SG_ERROR_KSTAT_OPEN, NULL);<       }< <       if((ksp=kstat_lookup(kc, "zfs", 0, "arcstats")) == NULL) {<               RETURN_WITH_SET_ERROR("mem", SG_ERROR_KSTAT_LOOKUP, "zfs,0,arcstats");<       }< <       if (kstat_read(kc, ksp, 0) == -1) {<               RETURN_WITH_SET_ERROR("mem", SG_ERROR_KSTAT_READ, NULL);<       }< <       if((kn=kstat_data_lookup(ksp, "size")) == NULL) {<               RETURN_WITH_SET_ERROR("mem", SG_ERROR_KSTAT_DATA_LOOKUP, "size");<       }< <       mem_stats_buf->cache = ((unsigned long long)kn->value.ui64);<       kstat_close(kc);< <       mem_stats_buf->free += mem_stats_buf->cache;229a211>       mem_stats_buf->cache = 0;
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.i-scream.org/pipermail/users/attachments/20130912/487facd6/attachment.html>


More information about the users mailing list