summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Mark ng_h4(4) as not MPSAFE and disconnect it from the build for now.emax2007-07-102-2/+3
| | | | Approved by: re (rwatson)
* Fix commit mail retrieval when using message-id.flz2007-07-101-8/+4
| | | | | Submitted by: novel Approved by: re (hrs)
* Don't use almost perfectly pessimal cluster allocation. Allocationbde2007-07-102-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of the the first cluster in a file (and, if the allocation cannot be continued contiguously, for subsequent clusters in a file) was randomized in an attempt to leave space for contiguous allocation of subsequent clusters in each file when there are multiple writers. This reduced internal fragmentation by a few percent, but it increased external fragmentation by up to a few thousand percent. Use simple sequential allocation instead. Actually maintain the fsinfo sequence index for this. The read and write of this index from/to disk still have many non-critical bugs, but we now write an index that has something to do with our allocations instead of being modified garbage. If there is no fsinfo on the disk, then we maintain the index internally and don't go near the bugs for writing it. Allocating the first free cluster gives a layout that is almost as good (better in some cases), but takes too much CPU if the FAT is large and the first free cluster is not near the beginning. The effect of this change for untar and tar of a slightly reduced copy of /usr/src on a new file system was: Before (msdosfs 4K-clusters): untar: 459.57 real untar from cached file (actually a pipe) tar: 342.50 real tar from uncached tree to /dev/zero Before (ffs2 soft updates 4K-blocks 4K-frags) untar: 39.18 real tar: 29.94 real Before (ffs2 soft updates 16K-blocks 2K-frags) untar: 31.35 real tar: 18.30 real After (msdosfs 4K-clusters): untar 54.83 real tar 16.18 real All of these times can be improved further. With multiple concurrent writers or readers (especially readers), the improvement is smaller, but I couldn't find any case where it is negative. 342 seconds for tarring up about 342 MB on a ~47MB/S partition is just hard to unimprove on. (This operation would take about 7.3 seconds with reasonably localized allocation and perfect read-ahead.) However, for active file systems, 342 seconds is closer to normal than the 16+ seconds above or the 11 seconds with other changes (best I've measured -- won easily by msdosfs!). E.g., my active /usr/src on ffs1 is quite old and fragmented, so reading to prepare for the above benchmark takes about 6 times longer than reading back the fresh copies of it. Approved by: re (kensmith)
* Forced commit to say that the previous changeset was:delphij2007-07-100-0/+0
| | | | | Submitted by: YAMAMOTO Shigeru <shigeru iij ad jp> Approved by: re (rwatson, implicit)
* Add sed(1) to cross tools. We do want newly built version duringdelphij2007-07-101-0/+1
| | | | | | buildworld. Approved by: re (rwatson)
* Further cleanup of UDPv4:rwatson2007-07-102-98/+96
| | | | | | | | | | | | | | - Move udp_sendspace and udp_recvspace global variables and associated sysctls to the top of the file where most other such things are present. - Rename static variable 'blackhole' to 'udp_blackhole' and unstaticize so that we can add blackhole support for UDPv6 using the same MIB variable. - Move udp_append() above udp_input() to match the function order in udp6_usrreq.c. Approved by: re (kensmith)
* Fixing the mount_smbfs(8) hanging by utilising the destroy_dev_sched() KPI.avatar2007-07-101-1/+3
| | | | | | | | | | | Relevant threads: http://lists.freebsd.org/pipermail/freebsd-current/2007-June/074329.html Reviewed by: kib, bp (slightly different version) Tested by: Yuri Pankov <yuri.pankov at gmail dot com>, Jiawei Ye <leafy7382 at gmail dot com> Approved by: re (kensmith)
* Get rid of a couple of Coverity found sign comparison errors.mjacob2007-07-101-3/+3
| | | | | Approved by: re (Ken) MFC after: 3 days
* Be more conservative- turn off fast posting and RIO for 22XX cards.mjacob2007-07-101-7/+2
| | | | | Approved by: re (ken) MFC after: 3 days
* MFp4 122896kmacy2007-07-103-42/+78
| | | | | | | | | | - reduce cpu usage by as much as 25% (40% -> 30) by doing txq reclaim more efficiently - use mtx_trylock when trying to grab the lock to avoid spinning during long encap loop - add per-txq reclaim task - if mbufs were successfully re-claimed try another pass - track txq overruns with sysctl Approved by: re (blanket)
* Cast the arguments to atomic_*_ptr() when mapping it to atomic_*_32()marcel2007-07-101-3/+8
| | | | | | This is a minimal fix. Approved by: re (kensmith)
* Fix alignment of context switch traces.jhb2007-07-101-1/+1
| | | | | MFC after: 1 week Approved by: re (rwatson: "I like simple patches.")
* Missed in last commit: add usb task for rue to use for its ticks.imp2007-07-091-0/+1
| | | | Approved by: re (bmah)
* - Add codec id for Realtek ALC268.ariff2007-07-092-18/+57
| | | | | | | | | | | | | | | | - Add controller id for Intel 82801I (ICH9). PR: kern/114399 Submitted by: Michael Fuckner <michael@fuckner.net> - MSI support. Disable by default due to various issues with too many broken hardwares. MSI can be enabled through device.hints(5) or kenv(8) by setting "hint.pcm.%d.msi=1". Partially submitted by: kevlo YAMAMOTO Taku <taku@tackymt.homeip.net> Tested by: joel, kevlo, YAMAMOTO Taku Approved by: re (hrs) MFC after: 3 days
* Fix stream suspend/resume activity due to its states beingariff2007-07-091-12/+27
| | | | | | clobbered by pcm channel start/stop trigger operation. Approved by: re (hrs)
* General style, white space, and comment cleanup; move to ANSI Crwatson2007-07-093-101/+73
| | | | | | | | | | | | | | prototypes, don't use register, etc. Synchronize structure and layout to the IPv4 versions of these functions to a greater extent, making visual comparison easier. Remove now stale or incorrect comments. Enable full lock assertions, and correct one exception handling case where the wrong label was jumped to. Tested by: bz Approved by: re (bmah)
* When all the other drivers were converted to scheduling a taskqueue toimp2007-07-091-0/+18
| | | | | | | | | | do the heavy lifting of the 'mii_tick' function, rue was left behind. Implement this in a naive way. Reports from the field show this makes the driver functional with some locking issues, as opposed to an instant panic. Those will be addressed in a later version of the driver. Approved by: re@ (bmah)
* update for 0.5.8 importsam2007-07-095-78/+90
| | | | Approved by: re (hrs)
* resolve conflictssam2007-07-096-2007/+3346
| | | | Approved by: re (hrs)
* This commit was generated by cvs2svn to compensate for changes in r171322,sam2007-07-09151-4299/+28919
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import of hostapd 0.5.8sam2007-07-09159-6309/+32275
| |
* | fixup mcast handling in bpf program; this enables forthcoming supportsam2007-07-091-4/+12
| | | | | | | | | | | | | | for 802.1x over wired interfaces Submitted by: Jouke Witteveen Approved by: re (hrs)
* | New release notes: sed(1) case-insensitive matching, setenv(3)bmah2007-07-091-2/+14
| | | | | | | | | | | | | | | | | | | | API change. Modified release notes: Clarify architectures for nfe(4) note and mention that it replaces nve(4) in i386/amd64 GENERIC [1]. Suggested by: Michael Plass [1] Approved by: re (implicitly)
* | updates for 802.11-related parameterssam2007-07-091-10/+198
| | | | | | | | | | Reviewed by: thompsa Approved by: re (hrs)
* | Fix duplicates that crept in at the last minute :-(.imp2007-07-091-2/+1
| | | | | | | | | | Noticed by: Ian Freislich Approved by: re@ (blanket)
* | Fix a regression in IPv4 multicast join path (IP_ADD_MEMBERSHIP).bms2007-07-091-11/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the in_mcast.c code, if an interface for an IPv4 multicast join was not specified, and a route did not exist for the specified group in the unicast forwarding tables, the join would be rejected with the error EADDRNOTAVAIL. This change restores the old behaviour whereby if no interface is specified, and no route exists for the group destination, the IPv4 address list is walked to find a non-loopback, multicast-capable interface to satisfy the join request. This should resolve problems with starting multicast services during system boot or when a default forwarding entry does not exist. Approved by: re (rwatson)
* | Correct a reference-counting mistake in the ZFS code which led to abnormaldfr2007-07-094-6/+2
| | | | | | | | | | | | | | memory usage and pessimal cache performance. Reviewed by: pjd Approved by: re (rwatson)
* | document the call to wakeup after a task has been run...jmg2007-07-091-0/+6
| | | | | | | | | | Approved by: re (hrs) MFC after: 3 days
* | Further diff reduction against the proposed merged usbdevs: Add a fewimp2007-07-091-21/+37
| | | | | | | | | | | | | | | | more vendors, use slightly more standardized names. No md5 chagnes for !USBVERBOSE kernels Approved by: re@ (blanket)
* | More vendors from the merged list.imp2007-07-091-10/+71
| | | | | | | | | | | | | | | | | | | | Sort NETGEAR list per convention. Swap QUALCOMM and QUALCOMM2. Add a few vendor products. no md5 changes with this file (except when USBVERBOSE is enabled) Approved by: re@ (blanket)
* | dma_tag is a static structure. Testing for it being a NULL pointermarcel2007-07-091-1/+1
| | | | | | | | | | | | | | doesn't make sense. Rewrite to what was intended. Correctly warned about by: GCC Approved by: re (bmah)
* | Fix typo.yongari2007-07-091-1/+1
| | | | | | | | | | Reported by: Danny Braniss <danny at cs dot huji dot ac dot il> Approved by: re (bmah)
* | Eliminate the special case handling of OBJT_DEVICE objects inalc2007-07-081-10/+0
| | | | | | | | | | | | | | | | | | | | vm_fault_additional_pages() that was introduced in revision 1.47. Then as now, it is unnecessary because dev_pager_haspage() returns zero for both the number of pages to read ahead and read behind, producing the same exact behavior by vm_fault_additional_pages() as the special case handling. Approved by: re (rwatson)
* | NULL_LDT_BASE is used in !SMP kernels too and set_user_ldt() is notattilio2007-07-081-4/+2
| | | | | | | | | | | | | | | | | | properly called. Address these two issues. Reported by: Tinderbox Tested by: le Approved by: jeff (mentor) Approved by: re
* | MFp4:delphij2007-07-084-67/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Plug memory leak. - Respect underlying vnode's properties rather than assuming that the user want root:wheel + 0755. Useful for using tmpfs(5) for /tmp. - Use roundup2 and howmany macros instead of rolling our own version. - Try to fix fsx -W -R foo case. - Instead of blindly zeroing a page, determine whether we need a pagein order to prevent data corruption. - Fix several bugs reported by Coverity. Submitted by: Mingyan Guo <guomingyan gmail com>, Howard Su, delphij Coverity ID: CID 2550, 2551, 2552, 2557 Approved by: re (tmpfs blanket)
* | Fix a bug of retrieving configuration ROM.simokawa2007-07-081-2/+2
| | | | | | | | | | | | | | | | | | | | - Handle directories and leaves other than unit directories and text leaves correctly. - Now we can retrieve CROM of iSight correctly. Approved by: re (hrs) Tested by: flz MFC after: 3 days
* | Now that we have a function that can be called from a cdevsw close()njl2007-07-071-9/+1
| | | | | | | | | | | | entry point, use it. Approved by: re
* | Actual code shows several problems in ia32 LDT handling:attilio2007-07-072-34/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - When a LDT entry changes, the old one is freed while it is still referenced by gdt and ldtr. This can lead to disruptive behaviours in particular on SMP machines. - When a LDT entry changes, it is assumed that the only one entity sharing the same LDT are threads in the same proc. It doesn't take in account edge cases where two processes share the same VM (rfork'ed ones, for example). This patch addresses these two problems and addictionally it fixes the usage of refcount switching back it to the old manually-grown refcount (since in this case would be faster). Diagnosed by: tegge Tested by: pho (a former version) Reviewed by: kib Approved by: jeff (mentor) Approved by: re
* | Fix installworld: /usr/bin/printf isn't available then,kientzle2007-07-071-1/+3
| | | | | | | | | | | | | | so use awk's printf for the formatting here instead. Pointy hat: Yours Truly Approved by: re
* | Minor UDPv4 cleanup: capitalize comment, move statistics update after mbufrwatson2007-07-071-3/+3
| | | | | | | | | | | | | | free to be consistent with other error handling, and release socket buffer lock before freeing mbufs and statistics updates rather than after. Approved by: re (kensmith)
* | When a cached page is reactivated in vm_fault(), update the counter thatalc2007-07-061-8/+10
| | | | | | | | | | | | | | | | | | | | tracks the total number of reactivated pages. (We have not been counting reactivations by vm_fault() since revision 1.46.) Correct a comment in vm_fault_additional_pages(). Approved by: re (kensmith) MFC after: 1 week
* | Trivial differences with the proposed merged BSD usbdevs file mergedimp2007-07-061-95/+94
| | | | | | | | | | | | | | | | | | in. These are exclusively in the name of the company for this round. No new devices have been added, but the MITEL entry has been eliminated because nothing uses it. You won't see any difference unless you have USBVERBOSE defined for the kernel. Approved by: re@ (blanket)
* | uhub already does the printing and naming of a device, so don't do itimp2007-07-061-5/+1
| | | | | | | | | | | | again here for compat drivers. Approved by: re@ (blanket)
* | Add a test case for sed(1) regression - we should not ignore casedelphij2007-07-062-0/+5
| | | | | | | | | | | | when not being asked to do so. Approved by: re (hrs)
* | Before doing compile_re() which needs a parameter to identifydelphij2007-07-061-4/+4
| | | | | | | | | | | | | | | | | | | | | | whether we should ignore case, determine the flag by calling compile_flags() first. Also, make sure that we obtain an initialized cmd->u.s buffer before processing further. We may want to refine this solution later, but for now, make the changes in order to unbreak world build after a sed(1) with rev. 1.29 of compile.c is installed. Approved by: re (hrs)
* | Forced commit to document a cast correction needed to getkientzle2007-07-060-0/+0
| | | | | | | | | | | | | | clean compiles using either old or new API. I should have just committed this one-line fix separately. Apologies. Approved by: re (Ken Smith)
* | Make test suite work with libarchive 1.3.1: Take advantage ofkientzle2007-07-0617-25/+289
| | | | | | | | | | | | | | | | | | | | | | | | | | ARCHIVE_VERSION_STAMP to selectively disable tests that don't apply to that version; new "skipping()" function reports skipped tests; modify final summary to report component test failures and skips. Note: I don't currently intend to MFC the test suite itself; anyone interested should just checkout and use this version of the test suite, which should work for any library version. Approved by: re (Ken Smith, blanket)
* | New "version stamp" simplifies determining the exact versionkientzle2007-07-064-23/+70
| | | | | | | | | | | | | | | | of libarchive being used. I've been taking advantage of this with a recent round of updates to libarchive_test so that it can test older and newer versions of the library. Approved by: re (Ken Smith)
* | Fix a typo that prevented the quad symbols from being exporteddeischen2007-07-061-1/+1
| | | | | | | | | | | | | | (s/SYM_MAP/SYM_MAPS/). Reported by: kan Approved by: re@ (Ken Smith)
* | Fix some problems with lock_profiling in sx locks:attilio2007-07-063-23/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Adjust lock_profiling stubs semantic in the hard functions in order to be more accurate and trustable - Disable shared paths for lock_profiling. Actually, lock_profiling has a subtle race which makes results caming from shared paths not completely trustable. A macro stub (LOCK_PROFILING_SHARED) can be actually used for re-enabling this paths, but is currently intended for developing use only. - Use homogeneous names for automatic variables in hard functions regarding lock_profiling - Style fixes - Add a CTASSERT for some flags building Discussed with: kmacy, kris Approved by: jeff (mentor) Approved by: re
OpenPOWER on IntegriCloud