Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Thread Tools Display Modes
  #1   (View Single Post)  
Old 29th December 2011
nagesh nagesh is offline
New User
Join Date: Dec 2011
Posts: 2
Question how to caluculate ccpu_exp value for 1 second time value?

How to find the ccpu_exp value for 1 second? @ kern_synch.c

Decay 95% of proc:_pctcpu in 60 seconds, ccpu = exp(-1/20) */
const fixpt_t ccpu = 0.95122942450071400909 * FSCALE;

0.60653065971263342360 * FSCALE, /* exp(-1/2) : decay 95% in 5s */
0.95122942450071400909 * FSCALE, /* exp(-1/20) : decay 95% in 60s */
0.98347145382161748947 * FSCALE /* exp(-1/60) : decay 95% in 5m */

What will the value for 1 second, Is there any formula to calculate the value.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Following -current for the first time... Daffy OpenBSD Installation and Upgrading 9 21st July 2011 06:38 PM
Time for a New Laptop harold FreeBSD General 4 5th October 2009 05:56 AM
NFS time outs trilog General software and network 1 5th May 2009 07:21 AM
Real Time OS corey_james Off-Topic 2 11th July 2008 02:56 PM
Time drift cajunman4life FreeBSD General 4 18th June 2008 07:21 AM

All times are GMT. The time now is 07:26 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick