Googles appar
Huvudmeny

Post a Comment On: cbloom rants

"04-04-13 - Tabdir"

9 Comments -

1 – 9 of 9
Anonymous Anonymous said...

I notice that tabdir defaults to writing to r:\tabdir.tab which seems... odd. It also doesn't give any error messages if (for some odd reason) you don't have an R: drive mounted. I hacked around this with subst, but defaulting to %temp% and adding an error message would help the out-of-box experience.

But, looks useful.

April 4, 2013 at 11:06 PM

Anonymous Anonymous said...

I found this oddly hilarious. I've been running clockres more frequently lately so I noticed when my systems timer interval was dropped to 1 ms -- thus wasting power. I investigated with powercfg -energy. Guess who:

Platform Timer Resolution:Outstanding Timer Request

A program or service has requested a timer resolution smaller than the platform maximum timer resolution.

Requested Period 10000
Requesting Process ID 11864
Requesting Process Path \Device\HarddiskVolume3\bin\tabdir.exe

How come tabdir is requesting a lower timer resolution? Is this intentional, or some odd side-effect?

April 4, 2013 at 11:11 PM

Blogger cbloom said...

I always timeBeginPeriod(1) at startup.

I'd never heard of anyone caring. In fact I did some tests at one point where I queried the timer interval *before* setting it, and I always found it was already 1 because some app had set.

Seems like an unnecessary headache to fight that. The whole idea that it's variable but global and apps get to set it is super broken, BTW.

April 5, 2013 at 7:05 AM

Blogger cbloom said...

Updated. Still defaults output to r:\ cuz that's what I like, but if that fails it writes to temp.

April 5, 2013 at 7:47 AM

Blogger Unknown said...

timeBeginPeriod(1) runs down your laptop's battery.

Chrome is* careful to adjust it based on whether there are pending tasks that need it:
https://code.google.com/p/chromium/issues/detail?id=46531

It seems likely the users of tabdir are different than Chrome's though.


* Looking at the bug tracker, it seems to maybe have regressed since that point.

April 6, 2013 at 8:23 AM

Blogger cbloom said...

I suspect that enumerating your entire disk affects battery more than the tbp(1) ;)

Certainly I agree in principal that things like casual games which might just sit running in the background while a user browses the web should be careful about not consuming excessive resources. Game developers can get stuck in this philosophy that they own the whole machine and get to brutalize it.

April 6, 2013 at 8:33 AM

Blogger johnb said...

"Someday I'd like to write an even faster tabdir that reads the NTFS volume directory information directly, but chances are that will never happen."

Apparently, SwiftSearch does something like this.

http://sourceforge.net/projects/swiftsearch/

(Not a recommendation; I've never used it)

April 6, 2013 at 1:43 PM

Anonymous Anonymous said...

I agree that increasing the timer frequency while tabdir is running is not a problem, because it keeps the system busy anyway. However I would urge you to not routinely set the timer to 1 KHz at startup because for other programs it is a big deal. Some programs (Chrome, Starry Night, etc.) are on my kill list for when I'm running on battery because they increase the timer frequency unnecessarily.

Timer frequency is, of course, not the only thing that affects power draw, but burning ~0.3 W for no reason seems like a bad idea.

My timer interval is currently 15.6 ms.

April 11, 2013 at 5:41 PM

Blogger cbloom said...

Yeah, totally agree with you that programs which sit idle need to minimize their resource usage.

March 30, 2014 at 12:55 PM

You can use some HTML tags, such as <b>, <i>, <a>

This blog does not allow anonymous comments.

Comment moderation has been enabled. All comments must be approved by the blog author.

You will be asked to sign in after submitting your comment.