Home | History | Annotate | Download | only in dump
History log of /src/sbin/dump/rcache.c
RevisionDateAuthorComments
 1.25  24-Aug-2015  bouyer Default the read block size (-k default value) to kern.maxphys (usually
64k these days). This gives a noticable performance boost on large filesystems.
 1.24  15-Jun-2013  christos branches: 1.24.6;
handle new lfs split
 1.23  27-Jan-2010  spz branches: 1.23.6; 1.23.8; 1.23.12;
range-check what we assign to int cachebufs from calculations with
uint64_t usermem. This only becomes relevant if you have several TB of RAM.
Promoting cachebufs to uint64_t is not necessary as it gets limited to
(currently) 512 anyway.

fixes the last issue of PR: 19852
 1.22  28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.21  13-Sep-2003  simonb branches: 1.21.32; 1.21.34;
Use HW_USERMEM64 to fetch the amount of memory available.
 1.20  19-Apr-2003  tls The sysctl returning the amount of memory in the system returns "int",
which is silly. Luckily, it really does return the correct result if
interpreted as an unsigned int. This change lets dump work on 32-bit
systems that have more than 2GB of RAM.
 1.19  06-Feb-2003  enami No need to print same error message twice in the same line.
 1.18  06-Feb-2003  enami Check lseek error correctly (i.e., use == -1 rather than < 0).
 1.17  04-Feb-2003  enami Fix typo I've introduced while cleaning up for commit.
 1.16  04-Feb-2003  enami - Fix daddr_t print format inside ifdef DIAGNOSTIC.
- Start scan cache entry just filled, rather than starting from top.
 1.15  04-Feb-2003  enami Convert `nblksread' to in terms of device block size. This restores
originally intended behaviour (see tech-userlevel archive around 1999 March).
 1.14  04-Feb-2003  enami Cosmetic changes.
 1.13  03-Feb-2003  hannken Merge "struct cheader" and "struct cdesc" into an union.
No more alignment problems if the alignment of these two differs.

Approved by: Manuel Bouyer <bouyer@netbsd.org>
 1.12  24-Jan-2003  fvdl Bump daddr_t to 64 bits. Replace it with int32_t in all places where
it was used on-disk, so that on-disk formats remain the same.
Remove ufs_daddr_t and ufs_lbn_t for the time being.
 1.11  19-Feb-2002  lukem branches: 1.11.2;
rcsid
 1.10  23-Dec-2001  lukem nuke trailing whitespace
 1.9  22-Dec-2001  lukem When using the read cache in bread(), ensure that the current (sub)block
isn't past the end of the file system.

Should fix the "spins forever but doing nothing" bug that dump
would occasionally have.
 1.8  22-Dec-2001  lukem - use correct type for minTime in findlru() (size_t instead of int)
- clean up whitespace
 1.7  22-Dec-2001  lukem In rawread(), add back a check to ensure that dump doesn't try to read
past EOM and fail with "short read error". This check was part of
traverse.c::bread(), and was removed when that function was migrated
to rcache.c::rawread() as part of the "read cache" functionality.

This should fix the problem with dump barfing on "short read" when "-r 0",
but I'm still debugging the problem where dump gets to a point and
"does nothing" when the read cache is being used.
 1.6  27-May-2001  lukem knf to ansi
 1.5  11-Oct-2000  briggs Fix format warnings
 1.4  01-Oct-1999  perseant branches: 1.4.6;
Working version of aborted dump{,_lfs} join.
 1.3  30-Sep-1999  perseant Back out changes made on the 29th, not at all the changes I intended to commit.
(I don't know how I did it though ... I'll figure it out tonight.)
I'll reapply this, in a working form, this evening.
 1.2  29-Sep-1999  perseant Adapt dump(8) to use filestore-independent (but still ufs-specific)
replacements for NINDIR, fsbtodb, etc. Create dump_lfs by adding a few
LFS-filestore-specific routines. As described in PR#8317.
 1.1  23-Mar-1999  bouyer branches: 1.1.2; 1.1.4;
Implement a read cache, as announced on tech-userlevel. Default is 32k
read buffer size, 512 buffer or 15% of the user memory. Can be changed
with the -k and -s options.
 1.1.4.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.1.2.1  11-Oct-2000  he Pull up revision 1.5 (requested by he):
Format string cleanup.
 1.4.6.2  16-Jan-2002  he Pull up revisions 1.7-1.10 (via patch, requested by bouyer):
Various fixes:
o Fix error if first tape is write-protected; fixes PR#4754 and PR#6098
o Make error codes conform to manual page
o Use \a to make noise
o Fix estimated number of tapes for huge dumps to cartridges
o Use <sys/queue.h> SLIST_* macros instead of homegrown variants
o Do not exit if unable to read/create /etc/dumpdates
o Support output (tape) device returning ENOSPC for end-of-media on write
o Don't dump core if SIGINFO is received before 1 second has elapsed
o Only process SIGINFO in currently active child
o Ensure current (sub)block isn't past end of file system -- fixes
"spins forever but does nothing" bug.
o Some other minor fixes (types, whitespace, KNF, unifdef sunos, ...)
 1.4.6.1  18-Oct-2000  tv Pullup sbin string format fixes [is].
See "cvs log" for explicit revision numbers per file, from sommerfeld.
 1.11.2.1  16-Jun-2003  grant Pull up revision 1.20 (requested by rafal in ticket #1272):

The sysctl returning the amount of memory in the system returns "int",
which is silly. Luckily, it really does return the correct result if
interpreted as an unsigned int. This change lets dump work on 32-bit
systems that have more than 2GB of RAM.
 1.21.34.1  18-May-2008  yamt sync with head.
 1.21.32.1  02-Jun-2008  mjf Sync with HEAD.
 1.23.12.1  23-Jun-2013  tls resync from head
 1.23.8.1  08-Mar-2016  snj Pull up following revision(s) (requested by bouyer in ticket #1331):
sbin/dump/dump.8: revision 1.67 via patch
sbin/dump/main.c: revision 1.72
sbin/dump/rcache.c: revision 1.25
Default the read block size (-k default value) to kern.maxphys (usually
64k these days). This gives a noticable performance boost on large filesystems.
 1.23.6.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.24.6.1  06-Nov-2015  riz Pull up following revision(s) (requested by bouyer in ticket #990):
sbin/dump/rcache.c: revision 1.25
sbin/dump/dump.8: revision 1.67
sbin/dump/main.c: revision 1.72
Default the read block size (-k default value) to kern.maxphys (usually
64k these days). This gives a noticable performance boost on large filesystems.

RSS XML Feed