This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: start_time patch for fhandler_process.cc


> >>> On Tue, Jul 08, 2003 at 07:09:12PM +0100, Chris January wrote:
> >>> >Try this Chris and see if it solves the start time problem.
> >>> >
> >>> >Chris
> >>> >
> >>> >2003-07-28  Chris January  <kseitz@chris@atomice.net>
> >>> >
> >>> >	* fhandler_process.cc (format_process_stat): Changed the
> >>> calculation for
> >>> >start_time.
> >>>
> >>> Sorry, no.
> >>>
> >>> Unknown HZ value! (250) Assume 100.
> >>> USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
> >>> cgf       3452  0.0  1.0  2544 2680 ?        R    Aug08
> 0:00 procps auwx
> >>>
> >>> Now that I've read the description of what the field is supposed to
> >>> contain, I'm wondering if the culprit is the "Unknown HZ value! (250)
> >>> Assume 100."
> >>Maybe sysconf (_SC_NPROCESSORS_CONF) is reporting the wrong
> amount if the
> >>problem is indeed you are running on an SMP machine.
> >
> >_SC_NPROCESSORS_CONF returns two, as it should.
> >_SC_NPROCESSORS_ONLN returned three, which was wrong, but I just
> checked in
> >a fix for that.  No change after that, though.
> >
> >I guess I'll build procps and see what's up.
>
> There are a couple of problems.
>
> 1) procps is not allowing a valid 500MHZ setting for my system
>    (patch enclosed for procps).
>
> 2) /proc/stat is not reporting times for all cpus
>    (patch enclosed and applied).
>
> With these two patches, procps reports accurate times.
>
> This requires a new procps release, though, unfortunately.
>
> cgf

A new procps release is due anyway so I shall make one sometime in the next
couple of weeks.
The /proc/stat patch looks good.

Chris


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]