| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
number of pages.
Obtained from: Yahoo!
Notes:
svn path=/head/; revision=142175
|
|
|
|
|
|
|
| |
MFC after: 1 week
Notes:
svn path=/head/; revision=142095
|
|
|
|
|
|
|
|
| |
Tested by: kuriyama
MFC after: 1 week
Notes:
svn path=/head/; revision=142093
|
|
|
|
| |
Notes:
svn path=/head/; revision=140420
|
|
|
|
|
|
|
| |
in <sys/cdefs.h> for compilers without support for inline.
Notes:
svn path=/head/; revision=131575
|
|
|
|
| |
Notes:
svn path=/head/; revision=131507
|
|
|
|
| |
Notes:
svn path=/head/; revision=131491
|
|
|
|
| |
Notes:
svn path=/head/; revision=131472
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
mbuma is an Mbuf & Cluster allocator built on top of a number of
extensions to the UMA framework, all included herein.
Extensions to UMA worth noting:
- Better layering between slab <-> zone caches; introduce
Keg structure which splits off slab cache away from the
zone structure and allows multiple zones to be stacked
on top of a single Keg (single type of slab cache);
perhaps we should look into defining a subset API on
top of the Keg for special use by malloc(9),
for example.
- UMA_ZONE_REFCNT zones can now be added, and reference
counters automagically allocated for them within the end
of the associated slab structures. uma_find_refcnt()
does a kextract to fetch the slab struct reference from
the underlying page, and lookup the corresponding refcnt.
mbuma things worth noting:
- integrates mbuf & cluster allocations with extended UMA
and provides caches for commonly-allocated items; defines
several zones (two primary, one secondary) and two kegs.
- change up certain code paths that always used to do:
m_get() + m_clget() to instead just use m_getcl() and
try to take advantage of the newly defined secondary
Packet zone.
- netstat(1) and systat(1) quickly hacked up to do basic
stat reporting but additional stats work needs to be
done once some other details within UMA have been taken
care of and it becomes clearer to how stats will work
within the modified framework.
From the user perspective, one implication is that the
NMBCLUSTERS compile-time option is no longer used. The
maximum number of clusters is still capped off according
to maxusers, but it can be made unlimited by setting
the kern.ipc.nmbclusters boot-time tunable to zero.
Work should be done to write an appropriate sysctl
handler allowing dynamic tuning of kern.ipc.nmbclusters
at runtime.
Additional things worth noting/known issues (READ):
- One report of 'ips' (ServeRAID) driver acting really
slow in conjunction with mbuma. Need more data.
Latest report is that ips is equally sucking with
and without mbuma.
- Giant leak in NFS code sometimes occurs, can't
reproduce but currently analyzing; brueffer is
able to reproduce but THIS IS NOT an mbuma-specific
problem and currently occurs even WITHOUT mbuma.
- Issues in network locking: there is at least one
code path in the rip code where one or more locks
are acquired and we end up in m_prepend() with
M_WAITOK, which causes WITNESS to whine from within
UMA. Current temporary solution: force all UMA
allocations to be M_NOWAIT from within UMA for now
to avoid deadlocks unless WITNESS is defined and we
can determine with certainty that we're not holding
any locks when we're M_WAITOK.
- I've seen at least one weird socketbuffer empty-but-
mbuf-still-attached panic. I don't believe this
to be related to mbuma but please keep your eyes
open, turn on debugging, and capture crash dumps.
This change removes more code than it adds.
A paper is available detailing the change and considering
various performance issues, it was presented at BSDCan2004:
http://www.unixdaemons.com/~bmilekic/netbuf_bmilekic.pdf
Please read the paper for Future Work and implementation
details, as well as credits.
Testing and Debugging:
rwatson,
brueffer,
Ketrien I. Saihr-Kesenchedra,
...
Reviewed by: Lots of people (for different parts)
Notes:
svn path=/head/; revision=129906
|
|
|
|
|
|
|
|
|
| |
depending on namespace pollution in <sys/user.h>.
Reduced nearby include messes.
Notes:
svn path=/head/; revision=128230
|
|
|
|
|
|
|
|
|
|
|
|
| |
1) Avoid shadowing index.
2) Constness.
3) Missing prototype for ifcmd.
4) Missing include of string.h.
5) Avoid shadowing error function.
6) ANSI definition for main.
Notes:
svn path=/head/; revision=126775
|
|
|
|
| |
Notes:
svn path=/head/; revision=126229
|
|
|
|
|
|
|
|
|
| |
<netinet/tcp_var.h>'s prerequisites. Prerequistes should not grow for
userland headers, and <netinet/tcp_var.h> is unfortunately still needed
in userland.
Notes:
svn path=/head/; revision=126227
|
|
|
|
| |
Notes:
svn path=/head/; revision=125431
|
|
|
|
| |
Notes:
svn path=/head/; revision=123800
|
|
|
|
|
|
|
|
|
|
|
| |
where MB/s and tps statistics would always be zero, presumably because
they were being averaged out over the time between now and when the
system booted instead of a few seconds.
PR: 58683
Notes:
svn path=/head/; revision=121836
|
|
|
|
|
|
|
| |
Pointed out by: several.
Notes:
svn path=/head/; revision=121485
|
|
|
|
|
|
|
|
| |
'kilo' or 'mega' with appropriate suffix instead of filling the field
with stars.
Notes:
svn path=/head/; revision=121291
|
|
|
|
|
|
|
| |
MFC after: 2 weeks
Notes:
svn path=/head/; revision=118318
|
|
|
|
| |
Notes:
svn path=/head/; revision=113282
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Kernel:
Change statistics to use the *uptime() timescale (ie: relative to
boottime) rather than the UTC aligned timescale. This makes the
device statistics code oblivious to clock steps.
Change timestamps to bintime format, they are cheaper.
Remove the "busy_count", and replace it with two counter fields:
"start_count" and "end_count", which are updated in the down and
up paths respectively. This removes the locking constraint on
devstat.
Add a timestamp argument to devstat_start_transaction(), this will
normally be a timestamp set by the *_bio() function in bp->bio_t0.
Use this field to calculate duration of I/O operations.
Add two timestamp arguments to devstat_end_transaction(), one is
the current time, a NULL pointer means "take timestamp yourself",
the other is the timestamp of when this transaction started (see
above).
Change calculation of busy_time to operate on "the salami principle":
Only when we are idle, which we can determine by the start+end
counts being identical, do we update the "busy_from" field in the
down path. In the up path we accumulate the timeslice in busy_time
and update busy_from.
Change the byte_* and num_* fields into two arrays: bytes[] and
operations[].
Userland:
Change the misleading "busy_time" name to be called "snap_time" and
make the time long double since that is what most users need anyway,
fill it using clock_gettime(CLOCK_MONOTONIC) to put it on the same
timescale as the kernel fields.
Change devstat_compute_etime() to operate on struct bintime.
Remove the version 2 legacy interface: the change to bintime makes
compatibility far too expensive.
Fix a bug in systat's "vm" page where boot relative busy times would
be bogus.
Bump __FreeBSD_version to 500107
Review & Collaboration by: ken
Notes:
svn path=/head/; revision=112288
|
|
|
|
| |
Notes:
svn path=/head/; revision=111447
|
|
|
|
| |
Notes:
svn path=/head/; revision=111007
|
|
|
|
| |
Notes:
svn path=/head/; revision=111002
|
|
|
|
|
|
|
|
|
|
| |
(the patch in the PR was stale).
PR: kern/5689
Submitted by: Hiten Pandya <hiten@unixdaemons.com>
Notes:
svn path=/head/; revision=109097
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
ifstat Display the network traffic going through active interfaces
on the system. Idle interfaces will not be displayed until
they receive some traffic.
For each interface being displayed, the current, peak and
total statistics are displayed for incoming and outgoing
traffic. By default, the ifstat display will automatically
scale the units being used so that they are in a human-read-
able format. The scaling units used for the current and peak
traffic columns can be altered by the scale command.
Submitted by: Trent Nelson <trent@arpa.com>
Notes:
svn path=/head/; revision=108684
|
|
|
|
|
|
|
|
|
| |
properly open it again next time.
Submitted by: Trent Nelson <trent@arpa.com>
Notes:
svn path=/head/; revision=108683
|
|
|
|
|
|
|
| |
Approved by: markm
Notes:
svn path=/head/; revision=108454
|
|
|
|
| |
Notes:
svn path=/head/; revision=108317
|
|
|
|
| |
Notes:
svn path=/head/; revision=105812
|
|
|
|
| |
Notes:
svn path=/head/; revision=105807
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
non-default but reasonable values of hz this member overflowed,
breaking NFS over UDP.
Also, as long as I'm plowing up struct sockbuf ... Change certain
members from u_long/long to u_int/int in order to reduce wasted
space on 64-bit machines. This change was requested by Andrew
Gallatin.
Netstat and systat need to be rebuilt. I am incrementing
__FreeBSD_version in case any ports need to change.
Notes:
svn path=/head/; revision=100591
|
|
|
|
|
|
|
|
|
| |
it. There's really no reason to explicitly mention it here.
Suggested by: Mark Valentine <mark@thuvia.demon.co.uk>
Notes:
svn path=/head/; revision=100025
|
|
|
|
|
|
|
|
| |
PR: docs/40489
Submitted by: Dave McCammon <davemac11@yahoo.com>
Notes:
svn path=/head/; revision=100010
|
|
|
|
| |
Notes:
svn path=/head/; revision=97970
|
|
|
|
|
|
|
|
| |
PR: docs/37757
Submitted by: Hiten Pandya <hiten@uk.FreeBSD.org>
Notes:
svn path=/head/; revision=96247
|
|
|
|
| |
Notes:
svn path=/head/; revision=95124
|
|
|
|
|
|
|
|
| |
to a char *.
Fix up vendor ID.
Notes:
svn path=/head/; revision=94610
|
|
|
|
| |
Notes:
svn path=/head/; revision=93058
|
|
|
|
| |
Notes:
svn path=/head/; revision=92922
|
|
|
|
| |
Notes:
svn path=/head/; revision=90416
|
|
|
|
|
|
|
| |
with namelists. use __FBSDID().
Notes:
svn path=/head/; revision=87715
|
|
|
|
|
|
|
| |
This allows us to see the irq number when device names ate too long.
Notes:
svn path=/head/; revision=87172
|
|
|
|
|
|
|
|
| |
Spotted by: David Wolfskill
Forgotten by: me
Notes:
svn path=/head/; revision=86784
|
|
|
|
| |
Notes:
svn path=/head/; revision=84768
|
|
|
|
|
|
|
| |
This isn't true nowadays.
Notes:
svn path=/head/; revision=84722
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
when I changed the allocator bits. This implements per-CPU mbtypes
stats by keeping net number of decrements/increments of a given mbtype
per-CPU and then summing all of the per-CPU mbtypes to produce the total
net number of allocated mbufs of the given mbtype.
Counters are carefully balanced to avoid/prevent underflows/overflows.
mbtypes stats are re-enabled with the idea that we may occasionally
(although very rarely) observe slight inconsistencies in the stat
reporting. Most of the time, we should be fine, though.
Also make appropriate modifications to netstat(1) and systat(1) to do
the necessary reporting.
Submitted by: Jiangyi Liu <jyliu@163.net>
Notes:
svn path=/head/; revision=84153
|
|
|
|
|
|
|
| |
Submitted by: "Sergey A. Osokin" <osa@freebsd.org.ru>
Notes:
svn path=/head/; revision=83131
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
were indices in a dense array. The cpuids are a sparse set and treat
them as such, setting up containers only for CPUs activated during
mb_init().
- Fix netstat(1) and systat(1) to treat the per-CPU stats area as a sparse
map, in accordance with the above.
This allows us to properly boot with certain CPUs disactivated. However, if
we later decide to re-activate said CPUs, we will barf until we decide to
implement CPU spinon/spinoff callback hooks to allow for said CPUs' per-CPU
containers to get configured on their activation.
Reported by: mjacob
Partially (sys/ diffs) Submitted by: mjacob
Notes:
svn path=/head/; revision=80399
|
|
|
|
| |
Notes:
svn path=/head/; revision=79755
|