/illumos-gate/usr/src/cmd/powertop/common/ |
H A D | turbo.c | 192 * and get a delta. the final ratio of performance boost will be worked 200 double ratio; local 213 * Calculate the kstat delta and work out the performance boost ratio 220 ratio = 1.0; 222 ratio = (double)delta_acnt / (double)delta_mcnt; 223 g_turbo_ratio += ratio;
|
/illumos-gate/usr/src/cmd/acct/ |
H A D | acctcms.c | 303 double ratio; local 354 ratio = (double)elaps[PRIME]/(double)etime; 365 pcmt.pcm_cpu[PRIME] = dtmp * ratio; 366 pcmt.pcm_cpu[NONPRIME] = (ratio == 1.0) ? 0.0 : 370 pcmt.pcm_real[PRIME] = dtmp * ratio; 371 pcmt.pcm_real[NONPRIME] = (ratio == 1.0) ? 0.0 : 375 pcmt.pcm_kcore[PRIME] = dtmp * ratio; 376 pcmt.pcm_kcore[NONPRIME] = (ratio == 1.0) ? 0.0 : 379 pcmt.pcm_io[PRIME] = (double)ltmp * ratio; 380 pcmt.pcm_io[NONPRIME] = (ratio [all...] |
/illumos-gate/usr/src/uts/common/inet/sctp/ |
H A D | sctp_tunables.c | 96 long ratio; local 107 if (ddi_strtol(colon + 1, NULL, 10, &ratio) != 0 || ratio <= 0) 113 /* There is an existing entry, so update its ratio value. */ 115 sl->sl_ratio = ratio; 128 new_sl->sl_ratio = ratio;
|
H A D | sctp_misc.c | 110 * configuration for that port and return the ratio. 116 uint32_t ratio = 0; local 122 ratio = sl->sl_ratio; 127 return (ratio);
|
H A D | sctp_bind.c | 177 uint32_t ratio; local 179 ratio = sctp_find_listener_conf(sctps, 181 if (ratio != 0) { 187 * the configured ratio and maxusers. Maxusers 197 slc->slc_max = maxusers / ratio * mem_ratio; 200 slc->slc_max = maxusers / ratio / mem_ratio;
|
/illumos-gate/usr/src/cmd/fm/modules/sun4v/generic-mem/ |
H A D | gmem_mem.c | 121 gmem_serd_record(fmd_hdl_t *hdl, const char *serdbaser, uint32_t ratio, argument 125 if (ratio == 0) 127 for (i = 0; i < ratio; i++) {
|
H A D | gmem_memerr.c | 281 double ratio; local 294 ratio = lret * GMEM_MQ_RATIO; 296 if (sret > ratio) { 297 fmd_hdl_debug(hdl, "sret=%d lret=%d ratio=%.3f", 298 sret, lret, ratio);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppstats/ |
H A D | pppstats.c | 8 * -r Show compression ratio 213 creq.stats.c.ratio = 0.0; 215 creq.stats.c.ratio = 256.0 * creq.stats.c.in_count / 223 creq.stats.d.ratio = 0.0; 225 creq.stats.d.ratio = 256.0 * creq.stats.d.in_count / 381 ccs.d.ratio / 256.0); 387 ccs.c.ratio / 256.0); 394 ccs.d.ratio / 256.0); 400 ccs.c.ratio / 256.0);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppdump/ |
H A D | deflate.c | 117 stats->ratio = stats->unc_bytes; 119 if (stats->ratio <= 0x7ffffff) 120 stats->ratio <<= 8; 124 stats->ratio /= out;
|
H A D | bsd-comp.c | 71 * The compression ratio is checked at the first end of a packet 96 u_int ratio; /* recent compression ratio */ member in struct:bsd_db 97 u_int checkpoint; /* when to next check the ratio */ 185 db->ratio = 0; 194 * Compute the compression ratio using fixed-point arithmetic 198 * watch only the local compression ratio. 202 * must compute the same ratio. 211 /* age the ratio by limiting the size of the counts */ 221 /* Reset the dictionary only if the ratio i [all...] |
/illumos-gate/usr/src/uts/common/inet/tcp/ |
H A D | tcp_tunables.c | 115 long ratio; local 126 if (ddi_strtol(colon + 1, NULL, 10, &ratio) != 0 || ratio <= 0) 132 /* There is an existing entry, so update its ratio value. */ 134 tl->tl_ratio = ratio; 147 new_tl->tl_ratio = ratio;
|
H A D | tcp_misc.c | 613 * configuration for that port and return the ratio. 619 uint32_t ratio = 0; local 625 ratio = tl->tl_ratio; 630 return (ratio);
|
H A D | tcp.c | 4445 uint32_t ratio; local 4447 ratio = tcp_find_listener_conf(tcps, 4449 if (ratio != 0) { 4456 * the configured ratio and maxusers. Maxusers 4466 tlc->tlc_max = maxusers / ratio * 4470 tlc->tlc_max = maxusers / ratio /
|
/illumos-gate/usr/src/cmd/audio/audiotest/ |
H A D | audiotest.c | 230 float ratio; local 335 ratio = ((float)total_bytes / (float)sample_rate) * 100.0; 337 (float)sample_rate * ratio / 100.0, ratio - 100.0);
|
/illumos-gate/usr/src/uts/common/io/ppp/spppcomp/ |
H A D | bsd-comp.c | 87 * The compression ratio is checked at the first end of a packet 112 uint_t ratio; /* recent compression ratio */ member in struct:bsd_db 113 uint_t checkpoint; /* when to next check the ratio */ 223 db->ratio = 0; 234 * Compute the compression ratio using fixed-point arithmetic 238 * watch only the local compression ratio. 242 * must compute the same ratio. 252 * age the ratio by limiting the size of the counts 264 * Reset the dictionary only if the ratio i [all...] |
H A D | deflate.c | 628 stats->ratio = stats->unc_bytes; 631 if (stats->ratio <= 0x7ffffff) { 632 stats->ratio <<= 8; 638 stats->ratio /= out;
|
/illumos-gate/usr/src/uts/common/net/ |
H A D | ppp_defs.h | 243 u_int32_t ratio; /* recent compression ratio << 8 */ member in struct:compstat
|
/illumos-gate/usr/src/cmd/compress/ |
H A D | compress.c | 185 static long int ratio = 0; variable 186 #define CHECK_GAP 10000 /* ratio check interval */ 960 * ratio decreases, but after the table fills. The variable-length output 999 ratio = 0; 1741 (void) fprintf(stderr, "count: %lld, ratio: ", 1760 if (rat > ratio) { 1761 ratio = rat; 1763 ratio = 0;
|
/illumos-gate/usr/src/cmd/audio/audioplay/ |
H A D | audioplay.c | 71 * This defines the tolerable sample rate error as a ratio between the 862 double ratio; local 864 ratio = (double)abs((int) 867 if (ratio <= SAMPLE_RATE_THRESHOLD) {
|
/illumos-gate/usr/src/cmd/fm/modules/sun4/cpumem-diagnosis/ |
H A D | cmd_memerr.c | 121 double ratio; local 144 ratio = lret * CMD_PAGE_RATIO; 146 if (sret > ratio) { 147 fmd_hdl_debug(hdl, "sret=%d lret=%d ratio=%.3f\n", 148 sret, lret, ratio);
|
/illumos-gate/usr/src/cmd/fm/modules/sun4u/cpumem-diagnosis/ |
H A D | cmd_memerr_arch.c | 846 int i, ratio, type, fault_cpu, max_rpt; local 897 ratio = (fault_list[i]->count * 100) / (cmd.cmd_nupos * 2); 907 ratio, asru, fru, asru); 914 ratio, fru, fru, fru);
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | dsl_dataset.c | 1845 uint64_t refd, avail, uobjs, aobjs, ratio; local 1849 ratio = dsl_dataset_phys(ds)->ds_compressed_bytes == 0 ? 100 : 1853 dsl_prop_nvlist_add_uint64(nv, ZFS_PROP_REFRATIO, ratio); 1858 dsl_prop_nvlist_add_uint64(nv, ZFS_PROP_COMPRESSRATIO, ratio);
|
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | vdc.c | 8255 uint32_t ratio, n; local 8266 ratio = blk_size / DEV_BSIZE; 8268 for (n = ratio; n > 1; n >>= 1) { 8277 vdc->vio_bmask = ratio - 1;
|