<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libstand/write.c, branch release/11.1.0</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>MFC r309369,310850,310853:</title>
<updated>2017-02-06T22:03:07+00:00</updated>
<author>
<name>Toomas Soome</name>
<email>tsoome@FreeBSD.org</email>
</author>
<published>2017-02-06T22:03:07+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=f8a52fbaab43fa6efef92297886bd0d898320de7'/>
<id>f8a52fbaab43fa6efef92297886bd0d898320de7</id>
<content type='text'>
libstand: dosfs cstyle cleanup for return keyword.
dosfs support in libstand is broken since r298230

PR:		214423
Submitted by:	Mikhail Kupchik
Reported by:	Mikhail Kupchik
Approved by:	imp (mentor)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
libstand: dosfs cstyle cleanup for return keyword.
dosfs support in libstand is broken since r298230

PR:		214423
Submitted by:	Mikhail Kupchik
Reported by:	Mikhail Kupchik
Approved by:	imp (mentor)
</pre>
</div>
</content>
</entry>
<entry>
<title>A new implementation of the loader block cache</title>
<updated>2016-04-18T23:09:22+00:00</updated>
<author>
<name>Allan Jude</name>
<email>allanjude@FreeBSD.org</email>
</author>
<published>2016-04-18T23:09:22+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=87ed2b7f5a213578bd523c9f2ec217934167319a'/>
<id>87ed2b7f5a213578bd523c9f2ec217934167319a</id>
<content type='text'>
The block cache implementation in loader has proven to be almost useless, and in worst case even slowing down the disk reads due to insufficient cache size and extra memory copy.
Also the current cache implementation does not cache reads from CDs, or work with zfs built on top of multiple disks.
Instead of an LRU, this code uses a simple hash (O(1) read from cache), and instead of a single global cache, a separate cache per block device.
The cache also implements limited read-ahead to increase performance.
To simplify read ahead management, the read ahead will not wrap over bcache end, so in worst case, single block physical read will be performed to fill the last block in bcache.

Booting from a virtual CD over IPMI:
0ms latency, before: 27 second, after: 7 seconds
60ms latency, before: over 12 minutes, after: under 5 minutes.

Submitted by:	Toomas Soome &lt;tsoome@me.com&gt;
Reviewed by:	delphij (previous version), emaste (previous version)
Relnotes:	yes
Differential Revision:	https://reviews.freebsd.org/D4713
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The block cache implementation in loader has proven to be almost useless, and in worst case even slowing down the disk reads due to insufficient cache size and extra memory copy.
Also the current cache implementation does not cache reads from CDs, or work with zfs built on top of multiple disks.
Instead of an LRU, this code uses a simple hash (O(1) read from cache), and instead of a single global cache, a separate cache per block device.
The cache also implements limited read-ahead to increase performance.
To simplify read ahead management, the read ahead will not wrap over bcache end, so in worst case, single block physical read will be performed to fill the last block in bcache.

Booting from a virtual CD over IPMI:
0ms latency, before: 27 second, after: 7 seconds
60ms latency, before: over 12 minutes, after: under 5 minutes.

Submitted by:	Toomas Soome &lt;tsoome@me.com&gt;
Reviewed by:	delphij (previous version), emaste (previous version)
Relnotes:	yes
Differential Revision:	https://reviews.freebsd.org/D4713
</pre>
</div>
</content>
</entry>
<entry>
<title>Add a divisor parameter to twiddle() so that callers can request that output</title>
<updated>2014-12-22T20:42:36+00:00</updated>
<author>
<name>Ian Lepore</name>
<email>ian@FreeBSD.org</email>
</author>
<published>2014-12-22T20:42:36+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=7668336c8e14f9960ba8954449adc72847c9c187'/>
<id>7668336c8e14f9960ba8954449adc72847c9c187</id>
<content type='text'>
only happen on every Nth call.  Update the existing twiddle() calls done in
various IO loops to roughly reflect the relative IO sizes.  That is, tftp
and nfs call twiddle() on every 1K block, ufs on every filesystem block,
so the network calls now use a much larger divisor than disk IO calls.

Also add a new twiddle_divisor() function that allows an application to set
a global divisor that is applied on top of the per-call divisors.  Nothing
calls this yet, but loader(8) will be using it to further throttle the
cursor for slow serial consoles.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
only happen on every Nth call.  Update the existing twiddle() calls done in
various IO loops to roughly reflect the relative IO sizes.  That is, tftp
and nfs call twiddle() on every 1K block, ufs on every filesystem block,
so the network calls now use a much larger divisor than disk IO calls.

Also add a new twiddle_divisor() function that allows an application to set
a global divisor that is applied on top of the per-call divisors.  Nothing
calls this yet, but loader(8) will be using it to further throttle the
cursor for slow serial consoles.
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove California Regent's clause 3, per letter</title>
<updated>2007-01-09T01:02:06+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2007-01-09T01:02:06+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=ee7093a6400feef3d8a99579f28577817d70f6ad'/>
<id>ee7093a6400feef3d8a99579f28577817d70f6ad</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove 'register' keyword.</title>
<updated>2002-03-21T23:39:28+00:00</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2002-03-21T23:39:28+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=be04b6d19037a418b377ed2e33c02086cefa2b60'/>
<id>be04b6d19037a418b377ed2e33c02086cefa2b60</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Back out my 'fix', resid is different for strategy than for write</title>
<updated>2001-11-30T06:24:34+00:00</updated>
<author>
<name>Alfred Perlstein</name>
<email>alfred@FreeBSD.org</email>
</author>
<published>2001-11-30T06:24:34+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=25993d3a47ade5e7bd5d3318df81eefd2b0763f0'/>
<id>25993d3a47ade5e7bd5d3318df81eefd2b0763f0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Make the same fix for writes to RAW objects.</title>
<updated>2001-11-30T05:59:47+00:00</updated>
<author>
<name>Alfred Perlstein</name>
<email>alfred@FreeBSD.org</email>
</author>
<published>2001-11-30T05:59:47+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=58cbb073075c846abbd1a4ca9736fba79bd924c0'/>
<id>58cbb073075c846abbd1a4ca9736fba79bd924c0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>write should return the number of bytes written, not 0 on success.</title>
<updated>2001-11-30T05:54:30+00:00</updated>
<author>
<name>Alfred Perlstein</name>
<email>alfred@FreeBSD.org</email>
</author>
<published>2001-11-30T05:54:30+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=fd19a949b49aefa355e422840d932ed6eed4433d'/>
<id>fd19a949b49aefa355e422840d932ed6eed4433d</id>
<content type='text'>
Submitted by: Jonathan Mini &lt;mini@haikugeek.com&gt;
PR: kern/32350
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Submitted by: Jonathan Mini &lt;mini@haikugeek.com&gt;
PR: kern/32350
</pre>
</div>
</content>
</entry>
<entry>
<title>Add __FBSDID()s to libstand</title>
<updated>2001-09-30T22:28:01+00:00</updated>
<author>
<name>Matthew Dillon</name>
<email>dillon@FreeBSD.org</email>
</author>
<published>2001-09-30T22:28:01+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=e74b6a84ce2dd9e091aabfbaca4d692983662c0d'/>
<id>e74b6a84ce2dd9e091aabfbaca4d692983662c0d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>This is libstand; a support library for standalone executables (eg. bootstrap</title>
<updated>1998-08-20T08:19:55+00:00</updated>
<author>
<name>Mike Smith</name>
<email>msmith@FreeBSD.org</email>
</author>
<published>1998-08-20T08:19:55+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=6b4f575cb13a8eaf7f248ef7d2fc3c457e864af8'/>
<id>6b4f575cb13a8eaf7f248ef7d2fc3c457e864af8</id>
<content type='text'>
modules).
Obtained from: NetBSD, with some architectural changes and many additions.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
modules).
Obtained from: NetBSD, with some architectural changes and many additions.
</pre>
</div>
</content>
</entry>
</feed>
