Commit Graph

117977 Commits

Author SHA1 Message Date
rwatson
5bea52cfc5 Merge main.c:1.80, mbuf.c:1.45, netstat.h:1.46 from HEAD to RELENG_6:
Modify netstat -mb to use libmemstat when accessing a core dump or live
  kernel memory and not using sysctl.  Previously, libmemstat was used
  only for the live kernel via sysctl paths.

  This results in netstat output becoming both more consistent between
  core dumps and the live kernel, and also more information in the core
  dump case than previously (i.e., mbuf cache information).

  Statistics relating to sfbufs still rely on a kvm descriptor as they
  are not currently exposed via libmemstat.  netstat -m operating on a
  core is still unable to print certain sfbuf stats available on the live
  kernel.
2005-11-20 00:38:06 +00:00
alc
7c1f2732db MFC
Begin and end the initialization of pvzone in pmap_init().
  Previously, pvzone's initialization was split between pmap_init() and
  pmap_init2().  This split initialization was the underlying cause of
  some UMA panics during initialization.  Specifically, if the UMA boot
  pages was exhausted before the pvzone was fully initialized, then UMA,
  through no fault of its own, would use an inappropriate back-end
  allocator leading to a panic.  (Previously, as a workaround, we have
  increased the UMA boot pages.)  Fortunately, there is no longer any
  reason that pvzone's initialization cannot be completed in
  pmap_init().

  Eliminate a check for whether pv_entry_high_water has been initialized
  or not from get_pv_entry().  Since pvzone's initialization is
  completed in pmap_init(), this check is no longer needed.

  Use cnt.v_page_count, the actual count of available physical pages,
  instead of vm_page_array_size to compute the maximum number of pv
  entries.

  Introduce the vm.pmap.pv_entries tunable on alpha and ia64.

  Eliminate some unnecessary white space.
2005-11-19 20:31:31 +00:00
hrs
462ced16cc New errata item:
ipfw.ko does not support IPv6 on 6.0R.
2005-11-19 19:20:56 +00:00
rwatson
e4d7a0932c Merge kdump.1:1.14 and kdump.c:1.28 from HEAD to RELENG_6:
Add "-s" argument to kdump to suppress the display of I/O data.
2005-11-19 11:55:50 +00:00
ume
c1f4a10f42 MFC 1.48: don't match packets other than IPv4 against divert rule.
divert supports only IPv4.
2005-11-19 06:06:59 +00:00
alc
6b204eeefe MFC revision 1.517
When support for 2MB/4MB pages was added in revision 1.148 an error was
  made in pmap_protect(): The pmap's resident count should not be reduced
  unless mappings are removed.

  The errant change to the pmap's resident count could result in a later
  pmap_remove() failing to remove any mappings if the errant change has set
  the pmap's resident count to zero.

MFC revision 1.518
  Decouple the unrefing of a page table page from the removal of a pv entry.
  In other words, change pmap_remove_entry() such that it no longer unrefs
  the page table page.  Now, it only removes the pv entry.

MFC revision 1.519
  Eliminate unneeded diagnostic code.

MFC revision 1.520
  Eliminate unneeded diagnostic code.

  Eliminate an unused #include.  (Kernel stack allocation and deallocation
  long ago migrated to the machine-independent code.)

MFC revision 1.521
  Simplify the page table page reference counting by pmap_enter()'s change of
  mapping case.

  Eliminate a stale comment from pmap_enter().

MFC revision 1.522
  Correct a performance bug in revision 1.462.  The effect of the bug is to
  execute the outer loop in procedures such as pmap_protect() many more times
  than necessary.

MFC revision 1.523
  Introduce pmap_pml4e_to_pdpe() and pmap_pdpe_to_pde() and use them to avoid
  recomputation of the pml4e and pdpe in pmap_copy(), pmap_protect(), and
  pmap_remove().

MFC revision 1.524
  Change pmap_extract() and pmap_extract_and_hold() to use PG_FRAME rather
  than ~PDRMASK to extract the physical address of a superpage from a PDE.
  The use of ~PDRMASK is problematic if the PDE has PG_NX set.  Specifically,
  the PG_NX bit will be included in the physical address if ~PDRMASK is used.

MFC revision 1.525
  Pass the PDE from pmap_remove() to pmap_remove_page() so that the latter
  procedure doesn't have to recompute it.

MFC revision 1.526
  Remedy the following three problems:

  1. The amd64 pmap, unlike the i386 pmap, maintains a reference count
     for each page directory (PD) page.  However, in the transformation
     of the i386 pmap into the amd64 pmap, operations, such as
     pmap_copy() and pmap_object_init_pt(), that create 2MB "superpage"
     mappings by setting the PG_PS bit in a PD entry were not modified
     to adjust the underlying PD page's reference count.  Consequently,
     superpage mappings could disappear prematurely.

  2. pmap_object_init_pt() could crash or corrupt memory if either the
     virtual address range being mapped crosses a 1GB boundary in the
     virtual address space or nothing is mapped in the 1GB area.

  3. When pmap_allocpte() destroys a 2MB "superpage" mapping it does not
     reduce the pmap's resident count accordingly.  It should.  (This
     bug is inherited from i386.)

MFC revision 1.528
  Eliminate unnecessary TLB invalidations by pmap_enter().  Specifically,
  eliminate TLB invalidations when permissions are relaxed, such as when a
  read-only mapping is changed to a read/write mapping.  Additionally,
  eliminate TLB invalidations when bits that are ignored by the hardware,
  such as PG_W ("wired mapping"), are changed.
2005-11-19 05:06:32 +00:00
jhb
11cff0b05c Document the -32 flag and add it to usage(). 2005-11-18 19:47:41 +00:00
ume
40cbc7d159 MFC 1.55: The KAME's getipnodebyaddr() code honor the
MULTI_PTRS_ARE_ALIASES define also, but res_config.h was not
included into libc/net/name6.c.  So getipnodebyaddr() ignored
the multiple PTRs.
2005-11-18 02:32:32 +00:00
wilko
58962098da MFC:
No CAVEAT about EISA attachment given that there is no EISA support

Sort of submitted by: jhb
Forgotten in previous commit by: wilko
2005-11-17 21:07:39 +00:00
krion
b84a59c16c MFC: add.h:1.12, main.c:1.65, perform.c:1.78, pkg_add.1:1.67
date: 2005/11/12 11:45:01;  author: krion;  state: Exp;  lines: +9 -2
  Add -P flag, it does the same as the -p option, except that the
  given prefix is also used recursively for the dependency packages,
  if any.  If the -P flag appears after any -p flag on the
  command line, it overrides it's effect, causing pkg_add to use the
  given prefix recursively.

  PR:             bin/75742
  Submitted by:   Frerich Raabe <raabe AT kde DOT org>
2005-11-17 18:08:58 +00:00
brueffer
0fd1e43af4 MFC: rev. 1.5 by delphij
Mention that hptmv(4) actually works for the amd64 platform as well.
2005-11-17 16:26:31 +00:00
rwatson
c3f82714cb Merge kern_descrip.c:1.286, 1.287, 1.288 from HEAD to RELENG_6:
Add a DDB "show files" command to list the current open file list, some
  state about each open file, and identify the first process in the process
  table that references the file.  This is helpful in debugging leaks of
  file descriptors.

  Expand the set of details printed for each file descriptor to include
  it's garbage collection flags.  Reformat generally to make this fit and
  leave some room for future expansion.

  Add the f_msgcount field to the set of struct file fields printed in show
  files.
2005-11-17 13:11:36 +00:00
ru
99e82b0863 MFC: Document ${loader_logo} and ${beastie_disable}. 2005-11-17 06:59:53 +00:00
hrs
c4850424b0 New errata item:
if_bridge + packet filter = mbuf leak.
2005-11-17 03:34:47 +00:00
hrs
7719619d1e New errata item:
ipfw divert rule matches IPv6 packets and discards them.
2005-11-17 02:25:10 +00:00
peter
5499dea20e MFC: Label the apic timer interrupt as 'cpuN: timer' like on i386 2005-11-17 01:16:23 +00:00
davidxu
5c57743d24 MFC Revsion 1.50:
Update SIGTHR's comment.
MFC Revision 1.52:
	Define SIGLWP.
2005-11-16 12:44:10 +00:00
ru
3b474f83c7 MFC: Bring /dev/speaker support to amd64. 2005-11-16 10:50:12 +00:00
ru
b8108a4f96 MFC: 1.56: Make IFP2NG() usable as lvalue. 2005-11-16 10:33:53 +00:00
ru
539591f019 MFC: Use sparse initializers for "struct domain" and "struct protosw". 2005-11-16 10:31:23 +00:00
thompsa
f012cfe982 MFC: Sync bridge code up with HEAD
- plug mbuf and refcnt leak
 - make funtions static
2005-11-16 10:17:15 +00:00
ru
693f92adc9 MFC: 1.34: Simplify setting the link-level address. 2005-11-16 10:14:25 +00:00
ru
f8684a4759 MFC: All recent fixes. 2005-11-16 10:13:34 +00:00
ru
f130d9a1f5 MFC: 1.55: Restore part of the code mistakenly dropped in rev. 1.25. 2005-11-16 10:09:51 +00:00
ru
af77f484ad MFC: Use variable-sized arrays where appropriate. 2005-11-16 10:08:02 +00:00
ru
b079fad903 MFC: 1.88: Use ${S} to pass ${SYSDIR} to ports. 2005-11-16 10:03:02 +00:00
ru
40f4fd56fd MFC: 1.5: Make the cookie constant name canonical. 2005-11-16 10:01:27 +00:00
ru
c50a4c6900 MFC: 1.1059: Remove duplicate entry. 2005-11-16 09:44:56 +00:00
ru
111bd917a5 MFC: Sort ath_rate_* entries. Mark ath_rate_sample as the desired algorithm. 2005-11-16 08:59:51 +00:00
ru
a10d5c6389 MFC: 1.196: Get rid of duplicate -I's in CFLAGS. 2005-11-16 08:54:29 +00:00
ru
a1d2a652a7 MFC: 1.459: Sorting. 2005-11-16 08:50:59 +00:00
ru
c474afb088 MFC: 1.203: Remove a stale comment. 2005-11-16 08:49:22 +00:00
ru
874822537e MFC: 1.194: Fix genassym.o dependencies. 2005-11-16 08:46:14 +00:00
ru
bcaa70d1b6 MFC: 1.30: The default fill byte is 0xf6, not 0xf5. 2005-11-16 08:36:10 +00:00
ru
f3970f4969 MFC: 1.10: Remove now redundant NO_SHARED. 2005-11-16 08:35:22 +00:00
ru
2f38f8203d MFC: 1.7: Style. 2005-11-16 08:33:02 +00:00
ru
2712a972a2 MFC: 1.337: Sort SUBDIR. 2005-11-16 08:31:52 +00:00
ru
583f9a601a MFC: 1.64: Align output. 2005-11-16 08:27:46 +00:00
ru
0ef54f4dd7 MFC: 1.110: Fix .include <> to match documented behavior. 2005-11-16 08:25:19 +00:00
ru
1ff72f5fa5 MFC: 1.12: Style. 2005-11-16 08:21:06 +00:00
rwatson
d937e2486d Merge Makefile:1.5 from HEAD to RELENG_6:
Add symlinks for kvm access methods for memstat(3).
2005-11-16 08:20:44 +00:00
ru
c3ffbc2fe2 MFC: 1.3: Fix vgrind(1) indexing. 2005-11-16 08:19:26 +00:00
ru
1e61b1bd2d MFC: 1.21: Document NGM_KSOCKET_ACCEPT ("accept") control message. 2005-11-16 08:14:27 +00:00
ru
bb0804bf44 MFC: 1.3: Drop redundant include. 2005-11-16 08:13:22 +00:00
rwatson
6b9e4e50dc Merge kern_descrip.c:1.284 from HEAD to RELENG_6:
In closef(), remove the assumption that there is a thread associated
  with the file descriptor.  When a file descriptor is closed as a result
  of garbage collecting a UNIX domain socket, the file descriptor will
  not have any associated thread, so the logic to identify advisory locks
  held by that thread is not appropriate.  Check the thread for NULL to
  avoid this scenario.  Expand an existing comment to say a bit more about
  this.
2005-11-16 08:12:11 +00:00
ru
2b05328a55 MFC: 1.87: Drop outdated check. 2005-11-16 08:12:03 +00:00
rwatson
6cb3455d08 Merge kern_ktrace.c:1.102, ktrace.h:1.30 from HEAD to RELENG_6:
Replace ktr_buffer pointer in struct ktr_header with a ktr_unused
  intptr_t.  The buffer length needs to be written to disk as part
  of the trace log, but the kernel pointer for the buffer does not.
  Add a new ktr_buffer pointer to the kernel-only ktrace request
  structure to hold that pointer.  This frees up an integer in the
  ktrace record format that can be used to hold the threadid,
  although older ktrace files will have a garbage ktr_buffer field
  (or more accurately, a kernel pointer value).

  Space requested by:     davidxu
2005-11-16 08:11:06 +00:00
ru
6117baacde MFC: 1.8: Fix malloc size. 2005-11-16 08:08:48 +00:00
ru
5ea8a2c406 MFC: 1.26: err() -> errx() where appropriate. 2005-11-16 08:08:07 +00:00
ru
5d8ba22e49 MFC: Simplified markup. 2005-11-16 08:06:23 +00:00