Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Giving a program priority briefly
- Date: Tue, 12 Jun 2007 11:15:56 +0900
- From: "Stephen J. Turnbull" <turnbull@example.com>
- Subject: Re: [tlug] Giving a program priority briefly
- References: <466B5A87.7000002@dcook.org> <Pine.NEB.4.64.0706120117510.22712@homeric.cynic.net>
Curt Sampson writes: > You'll probably get much more consistent times from [time ./myprog], > even if your real time varies a lot based on load. This, while far > from perfect, is a fine method of making sure you haven't screwed > up something big time as you make changes. You always get at least system vs. user time (POSIX spec), but GNU time has a slew of additional features. Also, you want to know the characteristics of the OS. Some OSes do a pretty poor job of such profiling (IIRC the sum of user + system on Mac OS X can exceed 100% of wall clock time); you may need to instrument the program itself to get accurate results (although that often introduces Heisenbugs that skew overall performance). As Curt says, though, it's a fine method, and works well most of the time. > If that doesn't work for you, because you've got important cache issues, > or you need to benchmark disk I/O as well, or whatever else, well, now > you've probably got a lot more work cut out for you. GNU time can help with that, as it will give information on page faults and lots of other stuff. See also getrusage: you could use that information to compute resource usage by specific routines. Read the documentation carefully, though: the structure returned is compatible with other Unices, and your OS may not maintain all of the members.
- References:
- [tlug] Giving a program priority briefly
- From: Darren Cook
- Re: [tlug] Giving a program priority briefly
- From: Curt Sampson
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Giving a program priority briefly
- Next by Date: Re: [tlug] contribution to F/OSS community
- Previous by thread: Re: [tlug] Giving a program priority briefly
- Next by thread: Re: [tlug] Giving a program priority briefly
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links