summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_kern.c
Commit message (Collapse)AuthorAgeFilesLines
* Make various random things staticphk2005-02-101-2/+2
|
* Stop explicitly touching td_base_pri outside of the scheduler and simplyjhb2004-12-301-4/+11
| | | | | set a thread's priority via sched_prio() when that is the desired action. The schedulers will start managing td_base_pri internally shortly.
* Make kern.geom.debugflags sysctl tunable from /boot/loader.conf.pjd2004-09-131-0/+1
| | | | | | It will help to debug problems when booting. Approved by: phk
* don't call sbuf_clear() right after sbuf_new(), it is not necessary.phk2004-02-101-3/+0
|
* Sleep on "-" in our normal state to simplify debugging.phk2003-06-181-1/+3
|
* Use __FBSDID().obrien2003-06-111-2/+3
| | | | Approved by: phk
* Fix some easy, global, lint warnings. In most cases, this meansmarkm2003-04-301-1/+1
| | | | | making some local variables static. In a couple of cases, this means removing an unused variable.
* Introduce a g_waitfor_event() function which posts an event and waits forphk2003-04-231-12/+3
| | | | it to be run (or cancelled) and use this instead of home-rolled versions.
* More of the event stuff can now be private to geom_event.cphk2003-04-231-2/+0
|
* Rename g_call_me() to g_post_event(), and give it a flagphk2003-04-231-3/+3
| | | | argument to determine if we can M_WAITOK in malloc.
* Move the shutdown eventhandler stuff to a more logical place.phk2003-04-231-0/+11
|
* Change events to have an array of "void *" references, and give thephk2003-04-021-3/+3
| | | | | | | | | | | event posting functions varargs to fill these. Attribute g_call_me() to appropriate g_geom's where necessary. Add a flag argument to g_call_me() methods which will be used to signal cancellation of events in the future. This commit should be a no-op.
* Turn /dev/geom.ctl from a GEOM class into a plain character device driverphk2003-03-241-0/+1
| | | | instead, it will never see a disk-I/O transaction, so this is a lot simpler.
* Retire the GEOM private statistics code and use devstat instead.phk2003-03-181-4/+0
|
* Implement a bio-taskqueue to reduce number of context switches inphk2003-02-111-10/+0
| | | | | | | | | | | | | | | | | | | | disk I/O processing. The intent is that the disk driver in its hardware interrupt routine will simply schedule the bio on the task queue with a routine to finish off whatever needs done. The g_up thread will then schedule this routine, the likely outcome of which is a biodone() which queues the bio on g_up's regular queue where it will be picked up and processed. Compared to the using the regular taskqueue, this saves one contextswitch. Change our scheduling of the g_up and g_down queues to be water-tight, at the cost of breaking the userland regression test-shims. Input and ideas from: scottl
* Remove another printf which does not say anything we didn't already know.phk2003-02-111-1/+0
|
* Update the statistics collection code to track busy time instead ofphk2003-02-091-1/+1
| | | | | | | | | | idle time. Statistics now default to "on" and can be turned off with sysctl kern.geom.collectstats=0 Performance impact of statistics collection is on the order of 800 nsec per consumer/provider set on a 700MHz Athlon.
* Move the g_stat struct to its own .h file, we will export it to other code.phk2003-02-081-0/+2
| | | | | | | | | | | | | | | | | | Insted of embedding a struct g_stat in consumers and providers, merely include a pointer. Remove a couple of <sys/time.h> includes now unneeded. Add a special allocator for struct g_stat. This allocator will allocate entire pages and hand out g_stat functions from there. The "id" field indicates free/used status. Add "/dev/geom.stats" device driver whic exports the pages from the allocator to userland with mmap(2) in read-only mode. This mmap(2) interface should be considered a non-public interface and the functions in libgeom (not yet committed) should be used to access the statistics data.
* Commit the correct copy of the g_stat structure.phk2003-02-071-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add debug.sizeof.g_stat sysctl. Set the id field of the g_stat when we create consumers and providers. Remove biocount from consumer, we will use the counters in the g_stat structure instead. Replace one field which will need to be atomically manipulated with two fields which will not (stat.nop and stat.nend). Change add companion field to bio_children: bio_inbed for the exact same reason. Don't output the biocount in the confdot output. Fix KASSERT in g_io_request(). Add sysctl kern.geom.collectstats defaulting to off. Collect the following raw statistics conditioned on this sysctl: for each consumer and provider { total number of operations started. total number of operations completed. time last operation completed. sum of idle-time. for each of BIO_READ, BIO_WRITE and BIO_DELETE { number of operations completed. number of bytes completed. number of ENOMEM errors. number of other errors. sum of transaction time. } } API for getting hold of these statistics data not included yet.
* Fix some sleep strings to make more sense.phk2003-02-071-3/+3
|
* Remove the "ascii" attribute from the sysctls so that "sysctl -a" willphk2002-12-271-3/+3
| | | | skip them.
* Use a mutex assert to document our locking circumstances.phk2002-12-261-0/+3
|
* Fix a cut&past-o.phk2002-12-011-1/+1
| | | | | Spotted by: yar Approved by: re (blanket)
* Add the remaning part of the new libdisk interaction.phk2002-10-281-2/+23
| | | | | | | WARNING: This is not a published interface, it is a stopgap measure for WARNING: libdisk so we can get 5.0-R out of the door. Sponsored by: DARPA & NAI Labs
* Reduce the GEOM verbosity under bootverbose to something more sufferable.phk2002-10-251-2/+0
| | | | | | | This is not quite the set of information I would want, but the tree where I have the "correct" version is messed up with conflicts. Sponsored by: DARPA & NAI Labs.
* No need to specify CTLTYPE_INT when we use SYSCTL_INT.phk2002-10-201-7/+7
|
* Be consistent and return the NUL at the end of kern.geom.conf{xml,dot}.phk2002-10-171-2/+2
| | | | Spotted by: sam
* Properly isolate the locking domains of sysctl from the topology lockphk2002-10-041-17/+25
| | | | | | for the sysctls which report the configuration. Sponsored by: DARPA & NAI Labs.
* Move GEOM's sysctls under kern.geom.phk2002-10-021-9/+11
| | | | Sponsored by: DARPA & NAI Labs.
* Zero the local-variable mutexes before we call mtx_init() on them,phk2002-09-281-0/+2
| | | | | | | failing to do this may lead mtx_init() to belive they have already been initialized. Detected by: Marc Recht <marc@informatik.uni-bremen.de>
* Style, whitespace and lint fixes.phk2002-09-281-4/+5
| | | | Sponsored by: DARPA & NAI Labs.
* Make the UP/DOWN threads hold on to their own private mutex while doingphk2002-09-271-2/+26
| | | | | | | | | | work. This prevents people from sleeping in the UP/DOWN I/O path by mistake or design (doing so almost invariably result in deadlocks since it stalls all I/O processing in the given direction. Sponsored by: DARPA & NAI Labs.
* Various no-ops:phk2002-09-271-6/+0
| | | | | | | | | | | Add a __unused. Make the 2byte decoder functions return 16 bits for the benefits of picky lints. No need to grab giant around a tsleep() when we have a timeout. Sponsored by: DARPA & NAI Labs.
* Don't use the static thread.. it is going away.julian2002-06-291-2/+2
|
* Eliminate some thread pointers which do not make sense anymore.phk2002-03-261-3/+2
| | | | | Split private parts of geom.h into geom_int.h. The latter should never be included in class implemtations.
* Cave in to tradition and rename "methods" to "classes".phk2002-03-261-2/+2
|
* First commit of the GEOM subsystem to make it easier for people tophk2002-03-111-0/+192
test and play with this. This is not yet production quality and should be run only on dedicated test boxes. For people who want to develop transformations for GEOM there exist a set of shims to run geom in userland (ask phk@freebsd.org). Reports of all kinds to: phk@freebsd.org Please include in report: dmesg sysctl debug.geomdot sysctl debug.geomconf Known significant limitations: no kernel dump facility. ioctls severely restricted. Sponsored by: DARPA, NAI Labs
OpenPOWER on IntegriCloud