| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
for mutual exclusion:
A brief description of the problem:
1) Proc A picks up non-blocking lock on file X
2) Proc B attempts to pickup lock, fails then waits
3) Proc C attempts to pickup lock, fails then waits
4) Proc A releases lock
5) Proc B acquires lock, release it to pickup a non-blocking version
6) Proc C acquires lock, release it to pickup a non-blocking version
7) Both process B and C race each other to pickup lock again
This occurs mainly because the processes do not keep the lock after they have
been waiting on it. They drop it, attempt to re-acquire it. (They use the wait
to notify when the lock has become available then race to pick it up). This
results in additional CPU utilization during the race, and can also result
in processes picking locks up out of order.
This change attempts to correct this problem by eliminating the test/acquire
race and having the operating system handle it.
Reported by: kris
Tested by: kris
MFC after: 1 week
|
|
|
|
|
|
|
|
|
|
|
|
| |
Split commands into two groups: one with optional count and one with
required argument. Changed synopsis line accordingly.
Added some hopefully-helpful comments based on experiments, knowing
that not all hardware works the same.
PR: docs/84101
Approved by: keramida
MFC after: 3 days
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
replacement and has additional features which make it superior.
Discussed on: -arch
Reviewed by: thompsa
X-MFC-after: never (RELENG_6 as transition period)
|
|
|
|
|
| |
- Utilize show_stat() in sidewaysintpr() loop. This makes periodic
statistics to honor -h flag.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
whine when the file cannot be found and opened.
|
|
|
|
|
|
| |
pathname edits before comparing pathnames on disk to those in the archive.
Thanks to: Gareth Bailey, Lowell Gilbert
|
|
|
|
| |
Thanks to: Diego "Flameeyes" Petten?
|
|
|
|
| |
Submitted by: Leonardo Chiquitto Filho
|
|
|
|
| |
Approved by: pav (mentor)
|
|
|
|
|
| |
PR: bin/86343
Submitted by: Matej Vela <vela@debian.org>
|
|
|
|
|
| |
PR: conf/82051
Submitted by: Derek Jones <derek at wahila dot com>
|
|
|
|
|
| |
PR: conf/86193
Submitted by: Matthias Buelow <mkb at incubus dot de>
|
|
|
|
|
| |
Thanks to: Divacky Roman
PR: bin/84993
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
retrieve statistic information for them.
Pointed out by: Pawel Worach < pawel.worach at gmail.com >
|
|
|
|
|
| |
that critical as the program exits after this point anyway, but this may
not always be the case.
|
|
|
|
| |
Pointed out by: ru
|
|
|
|
|
|
|
|
|
|
|
|
| |
-- Made the synopses more precise.
-- Added argument to flag in option description.
-- Moved -b default and limits to option description (to un-hide).
-- Noted several behaviors that were not mentioned.
-- A few more trivial changes.
PR: docs/46787
Approved by: keramida
MFC after: 3 days
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
a -B option which causes bpf peers to be printed. This option can be
used in conjunction with -I if information about specific interfaces
is desired. This is similar to what NetBSD added to their version of
netstat.
$ netstat -B
Pid Netif Flags Recv Drop Match Sblen Hblen Command
1137 lo0 p--s-- 0 0 0 0 0 tcpdump
205 sis0 -ifs-l 37331 0 1 0 0 dhclient
$
$ netstat -I lo0 -B
Pid Netif Flags Recv Drop Match Sblen Hblen Command
1174 lo0 p--s-- 0 0 0 0 0 tcpdump
$
-Add bpf.c which stores all the code for retrieving and parsing bpf
related statistics.
-Modify main.c to add support for the -B option and hook it into the
program logic.
-Add bpf.c to the build.
-Document this new functionality in the man page and bump the revision
date.
-Add prototype for bpf_stats function.
|
| |
|
|
|
|
|
|
|
|
| |
type should be int rather than Boolean.
PR: bin/84528
Submitted by: Max Okumoto <okumoto@ucsd.edu>
MFC after: 3 weeks
|
| |
|
|
|
|
| |
getsockopt().
|
| |
|
|
|
|
|
| |
the generated code still doesn't compile as we lack tinfo, t_getinfo and
friends.
|
|
|
|
|
|
|
| |
more than 4 days - waste of memory.
Obtained from: DragonFlyBSD (liamfoy)
MFC after: 3 days
|
| |
|
|
|
|
| |
Also remove the SIG_PF macro, there is no need to cast closedown.
|
|
|
|
|
|
|
|
| |
flag was specified. If all files are generated at once, those functions are
static and shouldn't appear in the header.
PR: 84450
Reviewed by: alfred
|
|
|
|
|
| |
- Include rpc_scan.h before rpc_util.h for the tok_kind enum.
- Nuke unused declarations.
|
| |
|
|
|
|
| |
Remove a non-bug from the BUGS section.
|
|
|
|
| |
instead of a file operand; this is not compatible with POSIX.
|
| |
|
|
|
|
|
|
|
| |
tell pkill(1)/pgrep(1) to try to flock(2) pidfile before reading PID from
there.
Discussed with: jhb, gad
|
|
|
|
|
| |
PR: bin/84995
Submitted by: Divacky Roman <xdivac02@stud.fit.vutbr.cz>
|
|
|
|
|
| |
Submitted by: Divacky Roman <xdivac02@stud.fit.vutbr.cz>
PR: bin/84991
|
|
|
|
| |
an argument has to be locked.
|
|
|
|
|
|
| |
display of netstat(1).
MFC after: 3 days
|
|
|
|
|
| |
MFC after: 3 weeks
Sponsored by: Sophos/ActiveState
|
|
|
|
|
|
|
|
| |
[0-9a-f]{64}, so exclude portsnap's compressed snapshots from locate's
indexing.
Suggested by: silby
MFC after: 3 days
|