Re: [PATCH 1/6] GITWEB - Load Checking

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: J.H.
Date: Thursday, December 10, 2009 - 7:19 pm

<snip>

Well there's the opposite argument that setting the number arbitrarily 
high, 4096 for instance would also in essence negate this (though I'll 
admit I've reached and exceeded those numbers before)

That said I agree, being able to turn this off needs to be added and 
will be shortly.


Will comment on this further down


That's fine.


My bad, did the patches up on my laptop but had to send them out from 
kernel.org, thus the miss-match: I.E. user error.

<snip>


Here's the fundamental problem:

Sys:Info:Device:CPU
	Windows:
		Using this method under Windows is not recommended
		since, the WMI interface will possibly take at least 2
		seconds to complete the request.

BSD::getloadavg
	While this more or less supports anything with a libc getloadavg
	(and thus might be the best one I've seen, I'll admit I didn't
	notice this one when I looked years ago) getting it to work on
	windows looks, exciting.

Sys::CpuLoad:
	http://cpansearch.perl.org/src/CLINTDW/Sys-CpuLoad-0.03/README
	Specifically:
		- Currently FreeBSD and OpenBSD are supported.
		- Wanted: HPUX 11.11 ...
		- Todo: Win32 support

	So this doesn't really buy me anything but, maybe, BSD support.
	
So at the end of the day, none of those really gets me a "useful" cross 
platform load checker (though like I said BSD::getloadavg looks to be 
the best of the ones you mentioned) and more or less Windows is going to 
lose this as a usable feature no matter what.

I think I'd almost rather set this up so that if it can't get something 
useful (I.E. /proc/loadavg is missing) it just skips past it as if the 
load was 0.

I might try out the BSD::getloadavg but I want to take a look and see if 
that's easily installed or not, if it's not it might be difficult to 
justify that as a dependency.

<snip>


It was intended to be the most minimal possible, mainly get in, get out. 
  Also not sure the die_error existed in gitweb when this was originally 
written.  Probably worth switching to it now since it's there either 
way, and I don't think using it would add enough overhead to matter.

- John 'Warthog9' Hawley
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/6] Gitweb caching changes v2, John 'Warthog9' Hawley, (Thu Dec 10, 4:45 pm)
[PATCH 1/6] GITWEB - Load Checking, John 'Warthog9' Hawley, (Thu Dec 10, 4:45 pm)
[PATCH 2/6] GITWEB - Missmatching git w/ gitweb, John 'Warthog9' Hawley, (Thu Dec 10, 4:45 pm)
[PATCH 3/6] GITWEB - Add git:// link to summary pages, John 'Warthog9' Hawley, (Thu Dec 10, 4:45 pm)
[PATCH 4/6] GITWEB - Makefile changes, John 'Warthog9' Hawley, (Thu Dec 10, 4:45 pm)
[PATCH 6/6] GITWEB - Separate defaults from main file, John 'Warthog9' Hawley, (Thu Dec 10, 4:45 pm)
Re: [PATCH 0/6] Gitweb caching changes v2, Sverre Rabbelier, (Thu Dec 10, 4:53 pm)
Re: [PATCH 1/6] GITWEB - Load Checking, Sverre Rabbelier, (Thu Dec 10, 4:54 pm)
Re: [PATCH 1/6] GITWEB - Load Checking, Jakub Narebski, (Thu Dec 10, 5:52 pm)
Re: [PATCH 1/6] GITWEB - Load Checking, Junio C Hamano, (Thu Dec 10, 6:10 pm)
Re: [PATCH 1/6] GITWEB - Load Checking, J.H., (Thu Dec 10, 7:19 pm)
Re: [PATCH 1/6] GITWEB - Load Checking, Junio C Hamano, (Thu Dec 10, 7:50 pm)
Re: [PATCH 1/6] GITWEB - Load Checking, J.H., (Thu Dec 10, 7:58 pm)
Re: [PATCH 1/6] GITWEB - Load Checking, J.H., (Thu Dec 10, 8:07 pm)
Re: [PATCH 1/6] GITWEB - Load Checking, Junio C Hamano, (Thu Dec 10, 8:09 pm)
Re: [PATCH 1/6] GITWEB - Load Checking, Jakub Narebski, (Fri Dec 11, 3:09 am)
Re: [PATCH 2/6] GITWEB - Missmatching git w/ gitweb, Jakub Narebski, (Fri Dec 11, 3:52 am)
Re: [PATCH 2/6] GITWEB - Missmatching git w/ gitweb, Johannes Schindelin, (Fri Dec 11, 5:49 am)
Re: [PATCH 3/6] GITWEB - Add git:// link to summary pages, Johannes Schindelin, (Fri Dec 11, 5:52 am)
Re: [PATCH 3/6] GITWEB - Add git:// link to summary pages, Jakub Narebski, (Fri Dec 11, 6:44 am)
Re: [PATCH 1/6] GITWEB - Load Checking, Mihamina Rakotomandimby, (Fri Dec 11, 6:53 am)
Re: [PATCH 4/6] GITWEB - Makefile changes, Jakub Narebski, (Fri Dec 11, 7:28 am)
Re: [PATCH 6/6] GITWEB - Separate defaults from main file, Jakub Narebski, (Fri Dec 11, 8:46 am)
Re: [PATCH 0/6] Gitweb caching changes v2, Jakub Narebski, (Fri Dec 11, 8:51 am)
Re: [PATCH 4/6] GITWEB - Makefile changes, J.H., (Fri Dec 11, 9:22 am)
Re: [PATCH 4/6] GITWEB - Makefile changes, Jakub Narebski, (Fri Dec 11, 9:41 am)
Re: [PATCH 0/6] Gitweb caching changes v2, Jakub Narebski, (Fri Dec 11, 11:01 am)
Re: [PATCH 0/6] Gitweb caching changes v2, J.H., (Fri Dec 11, 11:26 am)
Re: [PATCH 6/6] GITWEB - Separate defaults from main file, Jakub Narebski, (Fri Dec 11, 3:53 pm)
Re: [PATCH 0/6] Gitweb caching changes v2, Jakub Narebski, (Fri Dec 11, 6:37 pm)
Re: [PATCH 6/6] GITWEB - Separate defaults from main file, Junio C Hamano, (Tue Dec 15, 6:22 pm)
Re: [PATCH 6/6] GITWEB - Separate defaults from main file, Jakub Narebski, (Tue Dec 15, 7:22 pm)
Re: [PATCH 6/6] GITWEB - Separate defaults from main file, Jakub Narebski, (Wed Dec 16, 12:52 pm)
[PATCHv2 1/6] gitweb: Load checking, Jakub Narebski, (Fri Dec 18, 9:36 am)
[RFC/PATCHv2 2/6] gitweb: Add option to force version match, Jakub Narebski, (Fri Dec 18, 12:18 pm)
[PATCH/RFCv2 4/6] gitweb: Makefile improvements, Jakub Narebski, (Sat Dec 19, 6:32 am)