]> err.no Git - varnish/log
varnish
18 years agoPart of this commit leaked into the previous commit:
phk [Sun, 17 Sep 2006 19:31:27 +0000 (19:31 +0000)]
Part of this commit leaked into the previous commit:

We don't use splay trees.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1052 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoKeep track of shmlog mutex contests
phk [Sun, 17 Sep 2006 19:30:31 +0000 (19:30 +0000)]
Keep track of shmlog mutex contests

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1051 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoOops, off by one.
phk [Sun, 17 Sep 2006 18:31:31 +0000 (18:31 +0000)]
Oops, off by one.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1050 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoUse the worker pools in round-robin fashion.
phk [Sun, 17 Sep 2006 18:30:05 +0000 (18:30 +0000)]
Use the worker pools in round-robin fashion.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1049 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoFix logic bug so we don't reap worker threads all the time.
phk [Sun, 17 Sep 2006 09:26:24 +0000 (09:26 +0000)]
Fix logic bug so we don't reap worker threads all the time.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1048 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoWhitespace
phk [Sun, 17 Sep 2006 09:06:16 +0000 (09:06 +0000)]
Whitespace

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1047 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoMake sure we get the error messages from a dying child.
phk [Sun, 17 Sep 2006 09:06:08 +0000 (09:06 +0000)]
Make sure we get the error messages from a dying child.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1046 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoSet sockopts on the listen socket and probe the accepted socket (once)
phk [Sun, 17 Sep 2006 08:44:53 +0000 (08:44 +0000)]
Set sockopts on the listen socket and probe the accepted socket (once)
to see which we do not need to set there because they are inherited.

This could potentially save three syscalls per session.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1045 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoUpdate the parameter list in the man page, and add reminders to keep the
des [Sun, 17 Sep 2006 08:39:37 +0000 (08:39 +0000)]
Update the parameter list in the man page, and add reminders to keep the
lists in synch.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1044 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoPossibly better logic.
phk [Sun, 17 Sep 2006 06:45:22 +0000 (06:45 +0000)]
Possibly better logic.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1043 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoEmbellish the parameter descriptions somewhat.
phk [Sat, 16 Sep 2006 22:32:00 +0000 (22:32 +0000)]
Embellish the parameter descriptions somewhat.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1042 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoChange statistics from gauge to counter
phk [Sat, 16 Sep 2006 22:00:35 +0000 (22:00 +0000)]
Change statistics from gauge to counter

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1041 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoDuh! We need to count stats in per workerthread and summarize into
phk [Sat, 16 Sep 2006 21:45:27 +0000 (21:45 +0000)]
Duh!  We need to count stats in per workerthread and summarize into
session, otherwise we cannot correctly summarize into srcaddr and global.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1040 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoPreallocate a srcaddr per workerthread to speed up locked section.
phk [Sat, 16 Sep 2006 21:35:44 +0000 (21:35 +0000)]
Preallocate a srcaddr per workerthread to speed up locked section.

Remember to free preallocated storage in workerthread.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1039 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoAccount directly into the session.
phk [Sat, 16 Sep 2006 21:20:37 +0000 (21:20 +0000)]
Account directly into the session.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1038 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agouse miniobj on srcaddr's
phk [Sat, 16 Sep 2006 21:14:29 +0000 (21:14 +0000)]
use miniobj on srcaddr's

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1037 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agomake flexelint marginally happier
phk [Sat, 16 Sep 2006 21:14:13 +0000 (21:14 +0000)]
make flexelint marginally happier

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1036 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agotwiddle explanations and defaults.
phk [Sat, 16 Sep 2006 21:05:45 +0000 (21:05 +0000)]
twiddle explanations and defaults.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1035 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoUse srcaddr mutex for srcaddr stats update to reduce contention on stat_mtx
phk [Sat, 16 Sep 2006 20:59:35 +0000 (20:59 +0000)]
Use srcaddr mutex for srcaddr stats update to reduce contention on stat_mtx

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1034 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoGive the srcaddr stats an overhaul.
phk [Sat, 16 Sep 2006 20:52:35 +0000 (20:52 +0000)]
Give the srcaddr stats an overhaul.

Make the number of buckets a parameter (needs restart though).

Make the ttl a parameter and have zero disable srcaddr accounting.

Give each hash bucket its own mutex.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1033 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoVCL configs change relatively seldom so we can cache the requests
phk [Sat, 16 Sep 2006 20:17:15 +0000 (20:17 +0000)]
VCL configs change relatively seldom so we can cache the requests
VCL reference in the worker thread when the request is done and
with a cheap check reuse it for the next request handled by this
thread.

This should reduce mutex contention.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1032 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoMake it possible to have multiple worker pools.
phk [Sat, 16 Sep 2006 19:54:34 +0000 (19:54 +0000)]
Make it possible to have multiple worker pools.

The acceptor selects the pool based on filedescriptor modulus
number of pools.

This is an attempt to reduce lock contention.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1031 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agofix debug locks
phk [Sat, 16 Sep 2006 16:00:48 +0000 (16:00 +0000)]
fix debug locks

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1030 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoWrap mutex more completely so that experimentation becomes easier.
phk [Sat, 16 Sep 2006 15:54:56 +0000 (15:54 +0000)]
Wrap mutex more completely so that experimentation becomes easier.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1029 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agowrap line
phk [Sat, 16 Sep 2006 15:52:53 +0000 (15:52 +0000)]
wrap line

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1028 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agocorrectly round INT32_MAX down to page boundary
phk [Sat, 16 Sep 2006 15:51:43 +0000 (15:51 +0000)]
correctly round INT32_MAX down to page boundary

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1027 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoRename -1 to -f, and add a -1 option meaning "once". It currently does not
des [Sat, 16 Sep 2006 14:53:56 +0000 (14:53 +0000)]
Rename -1 to -f, and add a -1 option meaning "once".  It currently does not
work very well; it should use a non-curses method to display the ranking.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1026 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoAdd a non-blocking mode to the log reader.
des [Sat, 16 Sep 2006 14:50:09 +0000 (14:50 +0000)]
Add a non-blocking mode to the log reader.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1025 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoAdd a man page.
des [Sat, 16 Sep 2006 14:21:04 +0000 (14:21 +0000)]
Add a man page.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1024 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoUmm, what have I been smoking? varnishstat is not a logger and does not
des [Sat, 16 Sep 2006 14:06:57 +0000 (14:06 +0000)]
Umm, what have I been smoking?  varnishstat is not a logger and does not
support VSL_ARGS.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1023 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoBring up-to-date.
des [Sat, 16 Sep 2006 13:08:38 +0000 (13:08 +0000)]
Bring up-to-date.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1022 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoRemove stray -a description.
des [Sat, 16 Sep 2006 13:06:01 +0000 (13:06 +0000)]
Remove stray -a description.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1021 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoBring up-to-date.
des [Sat, 16 Sep 2006 13:02:40 +0000 (13:02 +0000)]
Bring up-to-date.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1020 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoBump date and add cross-references to all log programs.
des [Sat, 16 Sep 2006 13:02:24 +0000 (13:02 +0000)]
Bump date and add cross-references to all log programs.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1019 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years ago-c collides with one of the standard VSL options, so replace it with -1,
des [Sat, 16 Sep 2006 12:59:41 +0000 (12:59 +0000)]
-c collides with one of the standard VSL options, so replace it with -1,
which has the opposite meaning (IMHO, the continuous display is the most
useful)

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1018 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoSort options correctly.
des [Sat, 16 Sep 2006 12:45:00 +0000 (12:45 +0000)]
Sort options correctly.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1017 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoBring up-to-date, and sort options correctly.
des [Sat, 16 Sep 2006 12:43:50 +0000 (12:43 +0000)]
Bring up-to-date, and sort options correctly.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1016 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoSort options correctly.
des [Sat, 16 Sep 2006 12:43:11 +0000 (12:43 +0000)]
Sort options correctly.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1015 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoFix usage string.
des [Sat, 16 Sep 2006 12:29:08 +0000 (12:29 +0000)]
Fix usage string.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1014 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoAdd -V option, fix usage string.
des [Sat, 16 Sep 2006 12:28:59 +0000 (12:28 +0000)]
Add -V option, fix usage string.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1013 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoAdd the ability to write to a file (it was previously documented but not
des [Sat, 16 Sep 2006 12:28:34 +0000 (12:28 +0000)]
Add the ability to write to a file (it was previously documented but not
implemented).
Fix the usage string.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1012 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoAdd a -a option to control append / overwrite when writing to a file.
des [Sat, 16 Sep 2006 12:26:45 +0000 (12:26 +0000)]
Add a -a option to control append / overwrite when writing to a file.
Fix the usage string.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1011 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoAdd a usage string for the standard VSL options.
des [Sat, 16 Sep 2006 12:25:36 +0000 (12:25 +0000)]
Add a usage string for the standard VSL options.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1010 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoTweak storage file size calculations. Avoid overflow when calculating 80%
des [Sat, 16 Sep 2006 12:23:33 +0000 (12:23 +0000)]
Tweak storage file size calculations.  Avoid overflow when calculating 80%
of available storage on 32-bit Linux (most fields in struct statfs are long
instead of int64_t as in BSD)

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1009 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoJust in case.
phk [Sat, 16 Sep 2006 11:34:25 +0000 (11:34 +0000)]
Just in case.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1008 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoExpand keywords.
des [Sat, 16 Sep 2006 11:28:50 +0000 (11:28 +0000)]
Expand keywords.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1007 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoBring up-to-date. Still lacks descriptions for management commands and
des [Sat, 16 Sep 2006 11:01:07 +0000 (11:01 +0000)]
Bring up-to-date.  Still lacks descriptions for management commands and
run-time parameters.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1006 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoForgot about embedded CLI commands here.
phk [Sat, 16 Sep 2006 11:00:08 +0000 (11:00 +0000)]
Forgot about embedded CLI commands here.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1005 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoThe buckets_per_mutex parameter was removed in r813.
des [Sat, 16 Sep 2006 10:36:23 +0000 (10:36 +0000)]
The buckets_per_mutex parameter was removed in r813.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1004 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoUse generic param setting stuff
phk [Sat, 16 Sep 2006 09:49:51 +0000 (09:49 +0000)]
Use generic param setting stuff

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1003 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoMake the listen depth a paramter.
phk [Sat, 16 Sep 2006 09:38:09 +0000 (09:38 +0000)]
Make the listen depth a paramter.

Clean up the paramter stuff even more.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1002 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoAdd -p param=value command line argument.
phk [Sat, 16 Sep 2006 09:06:45 +0000 (09:06 +0000)]
Add -p param=value command line argument.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1001 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoGeneralize parameter setting at start up.
phk [Sat, 16 Sep 2006 09:01:21 +0000 (09:01 +0000)]
Generalize parameter setting at start up.

Give the managers main a struct cli and use that to call into
the paramter stuff for setting listen address.  More params to follow.

When setting the listen address, check that getaddrinfo() doesn't
hate it.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1000 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoOpen and close the listen socket when we start and stop the child.
phk [Sat, 16 Sep 2006 08:20:39 +0000 (08:20 +0000)]
Open and close the listen socket when we start and stop the child.

Make the listen address a parameter.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@999 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoRename the config.* CLI command family to vcl.*. It is more intuitive
phk [Sat, 16 Sep 2006 07:49:35 +0000 (07:49 +0000)]
Rename the config.* CLI command family to vcl.*.  It is more intuitive
that way and we may eventually want a config file for varnishd to
control obscure parameters.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@998 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoMake the shmlog'ing of vcl execution a parameter.
phk [Sat, 16 Sep 2006 07:44:15 +0000 (07:44 +0000)]
Make the shmlog'ing of vcl execution a parameter.

VCL tracing is responsible for a very large fraction of the shmlog
records and will generally only be used for debugging of VCL code.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@997 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoAdd a base64 decoder.
phk [Fri, 15 Sep 2006 19:25:06 +0000 (19:25 +0000)]
Add a base64 decoder.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@996 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoEliminate the session_grace thing, the inter-request interval is to
phk [Fri, 15 Sep 2006 16:18:27 +0000 (16:18 +0000)]
Eliminate the session_grace thing, the inter-request interval is to
large in general (think RTT) for this to make sense, it costs a syscall
and if a delay is used, at least two context switches.

We still capture sessions that do pipe-line avoiding the context switch
in that case, without incurring the syscall overhead.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@995 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoRemove the SessionReuse shmem tag, we have little or no benefit from
phk [Fri, 15 Sep 2006 16:10:15 +0000 (16:10 +0000)]
Remove the SessionReuse shmem tag, we have little or no benefit from
knowing this at the end of a request.

Instead put the address + port in the ReqStart shmtag where it does
a lot of good.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@994 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoDisable session_grace for now.
phk [Fri, 15 Sep 2006 10:30:27 +0000 (10:30 +0000)]
Disable session_grace for now.

It is not clear if this is a benefit or not.  There seems to be a significant
(100msec ?) inter-request gap and seeting the grace period that long
means tying up worker threads doing basically nothing.

Setting a short timeout (10msec) results in an extra system call which
practically never does anything good.

Unless benefit is shown, this stuff should be removed again.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@993 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agofix more stats
phk [Fri, 15 Sep 2006 10:24:49 +0000 (10:24 +0000)]
fix more stats

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@992 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoFix stats.
phk [Fri, 15 Sep 2006 10:23:34 +0000 (10:23 +0000)]
Fix stats.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@991 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoAdd missing SessionReuse log entries
phk [Fri, 15 Sep 2006 10:03:24 +0000 (10:03 +0000)]
Add missing SessionReuse log entries

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@990 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoImprove portability: Since all log strings are NUL terminated we do not
phk [Fri, 15 Sep 2006 10:01:45 +0000 (10:01 +0000)]
Improve portability: Since all log strings are NUL terminated we do not
need to use REG_STARTEND any more.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@989 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoAllow session_grace to be set to zero
phk [Fri, 15 Sep 2006 09:54:52 +0000 (09:54 +0000)]
Allow session_grace to be set to zero

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@988 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoTry to avoid sending EOF'ed or ready sessions to the herder.
phk [Fri, 15 Sep 2006 09:43:56 +0000 (09:43 +0000)]
Try to avoid sending EOF'ed or ready sessions to the herder.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@987 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoAdd XXX comment
phk [Fri, 15 Sep 2006 08:48:13 +0000 (08:48 +0000)]
Add XXX comment

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@986 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoPrint '-' if we don't have an IP# on startup.
phk [Fri, 15 Sep 2006 08:43:39 +0000 (08:43 +0000)]
Print '-' if we don't have an IP# on startup.

Also skip IP# from SessionReuse records.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@985 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoFix sendfile() on Linux:
des [Fri, 15 Sep 2006 08:14:36 +0000 (08:14 +0000)]
Fix sendfile() on Linux:

 - use the correct headers
 - don't duplicate WRK_Flush()
 - pass the offset correctly

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@984 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoAvoid parking a worker thread on trailing space
phk [Fri, 15 Sep 2006 08:08:28 +0000 (08:08 +0000)]
Avoid parking a worker thread on trailing space

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@983 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoIf after handling a request we find anything in our input buffer,
phk [Fri, 15 Sep 2006 07:37:20 +0000 (07:37 +0000)]
If after handling a request we find anything in our input buffer,
don't waste time putting the session on the herder, but go right
back and take the next request in the current worker thread.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@982 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoOverhaul NCSA logging.
phk [Fri, 15 Sep 2006 07:14:37 +0000 (07:14 +0000)]
Overhaul NCSA logging.

Reduce memory footprint by only allocating space for a fd first time
we see it.  Few if any servers will ever see 64k fd's in use.

Move the sbuf into the logline structure for simplicity.

Access the logline structure through a pointer instead of indexing
the array all the time.

Reduce amount of malloc/free traffic for performance.

Use the "cooked" SHMlog api where the length, fd, etc are broken out
as arguments for us.  Pass the FILE* where we want the stuff to
go as private data (stdout for now).

Add FlexeLint files.

Now over to Anders again...

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@981 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoFixed timestamp so thats it's correct. PHK added a new variable to ReqEnd that contai...
andersb [Wed, 13 Sep 2006 21:26:01 +0000 (21:26 +0000)]
Fixed timestamp so thats it's correct. PHK added a new variable to ReqEnd that contains a correct endtime.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@980 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoAdd the end time as timestamp to the ReqEnd SHM record.
phk [Wed, 13 Sep 2006 20:43:14 +0000 (20:43 +0000)]
Add the end time as timestamp to the ReqEnd SHM record.

Vector failures of the the FIRST case via DONE as well to
avoid code duplication.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@979 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoDike out Linux senfile, it doesn't work.
phk [Wed, 13 Sep 2006 19:07:52 +0000 (19:07 +0000)]
Dike out Linux senfile, it doesn't work.

Isolated by: Xing Li <xing@litespeedtech.com>

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@978 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoDouble the default workspace for the benefit of Blackberris and other
phk [Tue, 12 Sep 2006 21:21:36 +0000 (21:21 +0000)]
Double the default workspace for the benefit of Blackberris and other
low-bandwidth devices which for some reason include their entire
lifehistory in the HTTP requests.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@977 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoMade the code more robust but fixing a bug that caused coredumps. Haven't seen dumps...
andersb [Tue, 12 Sep 2006 21:02:09 +0000 (21:02 +0000)]
Made the code more robust but fixing a bug that caused coredumps. Haven't seen dumps after fix.

Cleared some unused variables.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@976 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoDistinguish the explanation for the first request from the one used
phk [Tue, 12 Sep 2006 20:50:19 +0000 (20:50 +0000)]
Distinguish the explanation for the first request from the one used
on subsequent requests.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@975 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoFix timestamps in shm tag StatSess for sessions with no requests.
phk [Tue, 12 Sep 2006 20:17:35 +0000 (20:17 +0000)]
Fix timestamps in shm tag StatSess for sessions with no requests.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@974 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agochunksize is in kilobytes
phk [Tue, 12 Sep 2006 20:06:55 +0000 (20:06 +0000)]
chunksize is in kilobytes

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@973 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoThere may be error returns from kevent, don't assert there are none.
phk [Tue, 12 Sep 2006 19:41:52 +0000 (19:41 +0000)]
There may be error returns from kevent, don't assert there are none.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@972 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoImplement sendfile() support for Linux.
des [Tue, 12 Sep 2006 10:12:34 +0000 (10:12 +0000)]
Implement sendfile() support for Linux.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@971 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agofix typo
phk [Tue, 12 Sep 2006 09:38:28 +0000 (09:38 +0000)]
fix typo

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@970 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoGetting somewhere. I now have a "full" logline. Apart from writing usernames caught...
andersb [Mon, 11 Sep 2006 23:30:07 +0000 (23:30 +0000)]
Getting somewhere. I now have a "full" logline. Apart from writing usernames caught by the auth header, the logline is complete.
I have now cleared up my obvious memoryleaks also.

The code looks like it has been through a shredder, and needs massive cleaning before alpha.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@969 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoIf we have more threads than the max, kill one if we can.
phk [Mon, 11 Sep 2006 17:18:31 +0000 (17:18 +0000)]
If we have more threads than the max, kill one if we can.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@968 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoremember to close pipes
phk [Mon, 11 Sep 2006 15:12:05 +0000 (15:12 +0000)]
remember to close pipes

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@967 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoUse a pipe for synchronization instead.
phk [Mon, 11 Sep 2006 14:50:56 +0000 (14:50 +0000)]
Use a pipe for synchronization instead.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@966 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoRedo the worker thread pool locking a bit, all the while cursing
phk [Mon, 11 Sep 2006 14:34:48 +0000 (14:34 +0000)]
Redo the worker thread pool locking a bit, all the while cursing
pthreads deficient API design for it's shortcomings.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@965 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoEmbellish the mutex debugging a bit
phk [Mon, 11 Sep 2006 12:00:50 +0000 (12:00 +0000)]
Embellish the mutex debugging a bit

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@964 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoMove LOCK/UNLOCK macros to cache.h where they belong.
phk [Mon, 11 Sep 2006 11:55:00 +0000 (11:55 +0000)]
Move LOCK/UNLOCK macros to cache.h where they belong.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@963 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoIgnore kevent error return entries
phk [Mon, 11 Sep 2006 10:35:26 +0000 (10:35 +0000)]
Ignore kevent error return entries

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@962 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoOnly expire when the timer fires
phk [Mon, 11 Sep 2006 10:16:02 +0000 (10:16 +0000)]
Only expire when the timer fires

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@961 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoPiggy-back kevent changes on kevent wait call
phk [Mon, 11 Sep 2006 10:14:45 +0000 (10:14 +0000)]
Piggy-back kevent changes on kevent wait call

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@960 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoAvoid a startup-race
phk [Mon, 11 Sep 2006 10:14:29 +0000 (10:14 +0000)]
Avoid a startup-race

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@959 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoCleaned up User-Agent and Referer. Both should now work correct. As far as I can...
andersb [Mon, 11 Sep 2006 09:35:43 +0000 (09:35 +0000)]
Cleaned up User-Agent and Referer. Both should now work correct. As far as I can see, I only have the timestamp left for a sane loggline.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@958 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoCheck for sendfile().
des [Mon, 11 Sep 2006 09:16:59 +0000 (09:16 +0000)]
Check for sendfile().

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@957 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoReduce syscall footprint of expiry and hangman
phk [Mon, 11 Sep 2006 09:14:29 +0000 (09:14 +0000)]
Reduce syscall footprint of expiry and hangman

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@956 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoAvoid a clock_gettime() call
phk [Mon, 11 Sep 2006 09:05:39 +0000 (09:05 +0000)]
Avoid a clock_gettime() call

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@955 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agobraino in last commit.
phk [Mon, 11 Sep 2006 09:00:44 +0000 (09:00 +0000)]
braino in last commit.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@954 d4fa192b-c00b-0410-8231-f00ffab90ce4

18 years agoSave more time() calls
phk [Mon, 11 Sep 2006 08:58:42 +0000 (08:58 +0000)]
Save more time() calls

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@953 d4fa192b-c00b-0410-8231-f00ffab90ce4