better docs on the aggregate functions
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1160 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1160 a5681a0c-68f1-0310-ab6d-d61299d08faa
added note on locale
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1159 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1159 a5681a0c-68f1-0310-ab6d-d61299d08faa
some more piechart removed
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1158 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1158 a5681a0c-68f1-0310-ab6d-d61299d08faa
make sure all ascii to float parsing uses LC_NUMERIC = C so that we do not stuble on locales confusing the , with a .
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1157 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1157 a5681a0c-68f1-0310-ab6d-d61299d08faa
* rrd_open: rrd_close does not purge file from cache
* rrd_open: new function rrd_dontneed for purging un-needed pages from core
* rrd_open: in linux at least only fadivse DONTNEED has the power to purge
pages from cache, so letst call madvise as well as fadvise
* rrd_create: uses open/write/close now, flushes file to disk and keeps only hot pages in core
* rrd_update: keeps only hot pages in core
* configure enables FADVISE even when mmap is in use
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1156 a5681a0c-68f1-0310-ab6d-d61299d08faa
* rrd_open: new function rrd_dontneed for purging un-needed pages from core
* rrd_open: in linux at least only fadivse DONTNEED has the power to purge
pages from cache, so letst call madvise as well as fadvise
* rrd_create: uses open/write/close now, flushes file to disk and keeps only hot pages in core
* rrd_update: keeps only hot pages in core
* configure enables FADVISE even when mmap is in use
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1156 a5681a0c-68f1-0310-ab6d-d61299d08faa
added comment on float cookie
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1155 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1155 a5681a0c-68f1-0310-ab6d-d61299d08faa
fix for fetch in ruby bindings and support for info added.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1154 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1154 a5681a0c-68f1-0310-ab6d-d61299d08faa
improve wording
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1149 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1149 a5681a0c-68f1-0310-ab6d-d61299d08faa
fix tcl build settup
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1148 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1148 a5681a0c-68f1-0310-ab6d-d61299d08faa
usr rrd_free for freeing the rrd structs ... vito caputo
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1146 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1146 a5681a0c-68f1-0310-ab6d-d61299d08faa
prevent potential segfaults on boxes where time_t is not long
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1141 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1141 a5681a0c-68f1-0310-ab6d-d61299d08faa
fix indentation
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1134 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1134 a5681a0c-68f1-0310-ab6d-d61299d08faa
Bernhard Fischer:
- move several static struct option out of loops and makes them
non-static
- moves some functions from old-style definitions into new-style
definitions
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1133 a5681a0c-68f1-0310-ab6d-d61299d08faa
- move several static struct option out of loops and makes them
non-static
- moves some functions from old-style definitions into new-style
definitions
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1133 a5681a0c-68f1-0310-ab6d-d61299d08faa
Bernhard is not Benrard
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1132 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1132 a5681a0c-68f1-0310-ab6d-d61299d08faa
notes on evans contribs
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1130 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1130 a5681a0c-68f1-0310-ab6d-d61299d08faa
rrdtool.spec from Jarod "redhat" Wilson
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1129 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1129 a5681a0c-68f1-0310-ab6d-d61299d08faa
updated contributors
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1127 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1127 a5681a0c-68f1-0310-ab6d-d61299d08faa
added note on TEXTALIGN
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1126 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1126 a5681a0c-68f1-0310-ab6d-d61299d08faa
There are two popular variants of the Holt-Winters forecasting method; RRDtool
supports the "additive" method, which means that seasonal variation is simply
added to the baseline. For our application, it would be more appropriate to use
the "multiplicative" Holt-Winters method, where seasonal variation is a
coefficient multiplied by the baseline. Quick example to illustrate the
difference: if the average doubles season-over-season, the additive method
would predict the delta between min and max to be constant, whereas the
multiplicative method would predict the delta to double as well.
Attached is a patch against trunk to support the multiplicative method. I've
done this with a new consolidation function, MHWPREDICT, which is essentially
interchangeable with HWPREDICT. There is a noticeable improvement in prediction
deviations for certain types of functions; the attachments show HWPREDICT and
MHWPREDICT predictions for a function with an x*sin(x) component.
Because HWPREDICT and MHWPREDICT differ only in their equations, I've factored
out their math into rrd_hw_math.c. The appropriate smoothing functions are
passed to the update functions in a container of function pointers, which are
called where appropriate. Thus the additive and multiplicative methods use the
same update functions, and the right equations are evaluated without having
flag checks everywhere. This approach, I think, makes the algorithms quite
clear, with minimal duplicate code.
I have moved update_hwpredict, update_seasonal, update_devpredict,
update_devseasonal, and update_failures into a separate file, rrd_hw_update.c,
with some slight refactoring related to rrd_hw_math.c. I ran some
regression tests against trunk to make sure I didn't break anything with
the existing HWPREDICT code.
MHWPREDICT uses the same deviation smoothing and failure detection algorithms
as HWPREDICT.
Some helpful references on the multiplicative Holt-Winters method:
http://www.it.iitb.ac.in/~praj/acads/seminar/04329008_ExponentialSmoothing.pdf
(a student's quick overview of additive vs. multiplicative HW)
http://ideas.repec.org/p/msh/ebswps/1999-1.html (paper on variations to the
multiplicative Holt-Winters, including variance calculations; FYI, my
implementation uses "Model 1")
My employer and the owner of this patch (IMVU, Inc.) is happy to license it
under the same terms as RRDtool, i.e. give it to the project.
-- Evan Miller emiller imvu.com
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1125 a5681a0c-68f1-0310-ab6d-d61299d08faa
supports the "additive" method, which means that seasonal variation is simply
added to the baseline. For our application, it would be more appropriate to use
the "multiplicative" Holt-Winters method, where seasonal variation is a
coefficient multiplied by the baseline. Quick example to illustrate the
difference: if the average doubles season-over-season, the additive method
would predict the delta between min and max to be constant, whereas the
multiplicative method would predict the delta to double as well.
Attached is a patch against trunk to support the multiplicative method. I've
done this with a new consolidation function, MHWPREDICT, which is essentially
interchangeable with HWPREDICT. There is a noticeable improvement in prediction
deviations for certain types of functions; the attachments show HWPREDICT and
MHWPREDICT predictions for a function with an x*sin(x) component.
Because HWPREDICT and MHWPREDICT differ only in their equations, I've factored
out their math into rrd_hw_math.c. The appropriate smoothing functions are
passed to the update functions in a container of function pointers, which are
called where appropriate. Thus the additive and multiplicative methods use the
same update functions, and the right equations are evaluated without having
flag checks everywhere. This approach, I think, makes the algorithms quite
clear, with minimal duplicate code.
I have moved update_hwpredict, update_seasonal, update_devpredict,
update_devseasonal, and update_failures into a separate file, rrd_hw_update.c,
with some slight refactoring related to rrd_hw_math.c. I ran some
regression tests against trunk to make sure I didn't break anything with
the existing HWPREDICT code.
MHWPREDICT uses the same deviation smoothing and failure detection algorithms
as HWPREDICT.
Some helpful references on the multiplicative Holt-Winters method:
http://www.it.iitb.ac.in/~praj/acads/seminar/04329008_ExponentialSmoothing.pdf
(a student's quick overview of additive vs. multiplicative HW)
http://ideas.repec.org/p/msh/ebswps/1999-1.html (paper on variations to the
multiplicative Holt-Winters, including variance calculations; FYI, my
implementation uses "Model 1")
My employer and the owner of this patch (IMVU, Inc.) is happy to license it
under the same terms as RRDtool, i.e. give it to the project.
-- Evan Miller emiller imvu.com
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1125 a5681a0c-68f1-0310-ab6d-d61299d08faa
oops missed to update the in memory output interface here
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1124 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1124 a5681a0c-68f1-0310-ab6d-d61299d08faa
added interface to get rendered image via a pointer to allocated memory ... Evan Miller emmiller gmail.com
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1123 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1123 a5681a0c-68f1-0310-ab6d-d61299d08faa
improve fontnaming
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1122 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1122 a5681a0c-68f1-0310-ab6d-d61299d08faa
fixed indentation
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1121 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1121 a5681a0c-68f1-0310-ab6d-d61299d08faa
added TEXTALIGN command to change the default text alignment
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1120 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1120 a5681a0c-68f1-0310-ab6d-d61299d08faa
fixed tcl includes
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1119 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1119 a5681a0c-68f1-0310-ab6d-d61299d08faa
17 years agobe more helpful when raising rb_eTypeError in string_arr string_arr_new(VALUE rb_stri...
be more helpful when raising rb_eTypeError in string_arr string_arr_new(VALUE rb_strings). This patch indicates which index is in error as well as the type you are erroneously passing. -- anonymous
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1118 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1118 a5681a0c-68f1-0310-ab6d-d61299d08faa
Bernhard Fischer:
- fix nulling the updvals
- cosmetic change to move the option struct out of the loop.
- need to operate on a copy of optarg
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1116 a5681a0c-68f1-0310-ab6d-d61299d08faa
- fix nulling the updvals
- cosmetic change to move the option struct out of the loop.
- need to operate on a copy of optarg
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1116 a5681a0c-68f1-0310-ab6d-d61299d08faa
added TRENDNAN function -- Timo Stripf
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1115 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1115 a5681a0c-68f1-0310-ab6d-d61299d08faa
allow output to stdout -- Timo Stripf
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1114 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1114 a5681a0c-68f1-0310-ab6d-d61299d08faa
added more news
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1113 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1113 a5681a0c-68f1-0310-ab6d-d61299d08faa
fixed indentation, added documentation note on gridfitting.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1112 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1112 a5681a0c-68f1-0310-ab6d-d61299d08faa
fix arrow locations
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1111 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1111 a5681a0c-68f1-0310-ab6d-d61299d08faa
disable gridfitting for vector formats
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1110 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1110 a5681a0c-68f1-0310-ab6d-d61299d08faa
make pdf output work
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1109 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1109 a5681a0c-68f1-0310-ab6d-d61299d08faa
added detail
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1108 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1108 a5681a0c-68f1-0310-ab6d-d61299d08faa
--font-render-mode is back, and there is also
--graph-render-mode now. It allows to enable
mono graphs that look strikingly like rrdtool 1.0.x
--tobi
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1107 a5681a0c-68f1-0310-ab6d-d61299d08faa
--graph-render-mode now. It allows to enable
mono graphs that look strikingly like rrdtool 1.0.x
--tobi
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1107 a5681a0c-68f1-0310-ab6d-d61299d08faa
Bernhard Fischer:
- NEWS mention the new file accessors
- rrd_update.c: remove unused some cruft
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1106 a5681a0c-68f1-0310-ab6d-d61299d08faa
- NEWS mention the new file accessors
- rrd_update.c: remove unused some cruft
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1106 a5681a0c-68f1-0310-ab6d-d61299d08faa
Bernhard Fischer:
- fix maintaining our file-pos when we have to wrap the rra_ptr in
update().
- no need to update the header-data a second time for the mmap case.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1105 a5681a0c-68f1-0310-ab6d-d61299d08faa
- fix maintaining our file-pos when we have to wrap the rra_ptr in
update().
- no need to update the header-data a second time for the mmap case.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1105 a5681a0c-68f1-0310-ab6d-d61299d08faa
updated news
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1104 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1104 a5681a0c-68f1-0310-ab6d-d61299d08faa
* added some documentation
* updated version number
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1103 a5681a0c-68f1-0310-ab6d-d61299d08faa
* updated version number
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1103 a5681a0c-68f1-0310-ab6d-d61299d08faa
switched graphics library from arts to cairo+pango
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1102 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1102 a5681a0c-68f1-0310-ab6d-d61299d08faa
Bernhard Fischer:
- new configure option --enable-static-programs
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1101 a5681a0c-68f1-0310-ab6d-d61299d08faa
- new configure option --enable-static-programs
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1101 a5681a0c-68f1-0310-ab6d-d61299d08faa
Bernhard:
- implement resize SHRINK for FD (mmap is to be done)
- indent
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1100 a5681a0c-68f1-0310-ab6d-d61299d08faa
- implement resize SHRINK for FD (mmap is to be done)
- indent
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1100 a5681a0c-68f1-0310-ab6d-d61299d08faa
--full-size-mode with and without --no-legend should work now -- Matthew Chambers
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1099 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1099 a5681a0c-68f1-0310-ab6d-d61299d08faa
Bernhard
- fill the file with DNAN and add the remaining data in after the fact ...
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1098 a5681a0c-68f1-0310-ab6d-d61299d08faa
- fill the file with DNAN and add the remaining data in after the fact ...
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1098 a5681a0c-68f1-0310-ab6d-d61299d08faa
Bernhard Fischer
- implement resize, growing part. truncation is to be done.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1097 a5681a0c-68f1-0310-ab6d-d61299d08faa
- implement resize, growing part. truncation is to be done.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1097 a5681a0c-68f1-0310-ab6d-d61299d08faa
Bernhard Fischer
- use 'z' length modifier when printing size_t
- add a cast to __rrd_read and document why it is there
- add RANDOM hint for the header
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1096 a5681a0c-68f1-0310-ab6d-d61299d08faa
- use 'z' length modifier when printing size_t
- add a cast to __rrd_read and document why it is there
- add RANDOM hint for the header
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1096 a5681a0c-68f1-0310-ab6d-d61299d08faa
Bernhard:
- plug tiny mem-leak in error path of rrd_close where freeing the
rrd_file was forgotten.
- improve two error messages
- use CHECK_MADVISE_OVERLAPS per default
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1095 a5681a0c-68f1-0310-ab6d-d61299d08faa
- plug tiny mem-leak in error path of rrd_close where freeing the
rrd_file was forgotten.
- improve two error messages
- use CHECK_MADVISE_OVERLAPS per default
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1095 a5681a0c-68f1-0310-ab6d-d61299d08faa
fix rrd_write -- Bernhard Fischer
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1094 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1094 a5681a0c-68f1-0310-ab6d-d61299d08faa
fix indenting ... again
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1093 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1093 a5681a0c-68f1-0310-ab6d-d61299d08faa
From Bernhard Fischer
- rrd_close(): call close on the file and use rrd_close consistently
- clean up some error paths. The fadvise error path is leaking memory (see XXX in these spots).
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1092 a5681a0c-68f1-0310-ab6d-d61299d08faa
- rrd_close(): call close on the file and use rrd_close consistently
- clean up some error paths. The fadvise error path is leaking memory (see XXX in these spots).
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1092 a5681a0c-68f1-0310-ab6d-d61299d08faa
switch for rrd_graph to specify the outer-size of the graph and not just the
size of the canvas: --full-size-mode -- matthew.chambers vanderbilt.edu
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1089 a5681a0c-68f1-0310-ab6d-d61299d08faa
size of the canvas: --full-size-mode -- matthew.chambers vanderbilt.edu
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1089 a5681a0c-68f1-0310-ab6d-d61299d08faa
More updates from Bernhard Fischer
- flag rrd_resize's old file with RRD_COPY
- cleanup error-handling pathes in rrd_update and fix a few typos in
comments
- rrd_close(): implement printing mincore results for the rrd if
DEBUG=2 was defined
- rrd_open(): madvise start addresses need to be page-aligned; implement
alternative path to the fine-grained (i.e. exact) madvise by flagging
just the first two pages as needed (see TWO_PAGES). Implement
alternative path that records the last madvise()ed area to avoid
redundant calls to madvise() on identical areas (due to
page-alignment constraints) -- see CHECK_MADVISE_OVERLAPS. Implement
path for USE_DIRECT_IO.
- configure: add check for O_DIRECT flag to open(2). Add option
--enable-direct-io. Add _GNU_SOURCE to CFLAGS to silence warnings
about chroot which is marked LEGACY since SUSv2 and is a non POSIX
extension. Make checks for posix_fadvise() dependant on
--disable-mmap, since we do not need fadvise for the mmap case.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1088 a5681a0c-68f1-0310-ab6d-d61299d08faa
- flag rrd_resize's old file with RRD_COPY
- cleanup error-handling pathes in rrd_update and fix a few typos in
comments
- rrd_close(): implement printing mincore results for the rrd if
DEBUG=2 was defined
- rrd_open(): madvise start addresses need to be page-aligned; implement
alternative path to the fine-grained (i.e. exact) madvise by flagging
just the first two pages as needed (see TWO_PAGES). Implement
alternative path that records the last madvise()ed area to avoid
redundant calls to madvise() on identical areas (due to
page-alignment constraints) -- see CHECK_MADVISE_OVERLAPS. Implement
path for USE_DIRECT_IO.
- configure: add check for O_DIRECT flag to open(2). Add option
--enable-direct-io. Add _GNU_SOURCE to CFLAGS to silence warnings
about chroot which is marked LEGACY since SUSv2 and is a non POSIX
extension. Make checks for posix_fadvise() dependant on
--disable-mmap, since we do not need fadvise for the mmap case.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1088 a5681a0c-68f1-0310-ab6d-d61299d08faa
tobis old cruft removal program ...
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1086 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1086 a5681a0c-68f1-0310-ab6d-d61299d08faa
updates from Bernhard Fischer rep dot nop gmail com
- add some more rrd_sterror calls to failure paths.
- make rrdtool updatev work like 1.2.23 (i.e. multiple values are still
broken, but at least updating a single value works; see
http://oss.oetiker.ch/rrdtool-trac/ticket/8)
- indent touched files.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1085 a5681a0c-68f1-0310-ab6d-d61299d08faa
- add some more rrd_sterror calls to failure paths.
- make rrdtool updatev work like 1.2.23 (i.e. multiple values are still
broken, but at least updating a single value works; see
http://oss.oetiker.ch/rrdtool-trac/ticket/8)
- indent touched files.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1085 a5681a0c-68f1-0310-ab6d-d61299d08faa
Updates from Bernhard Fischer rep dot nop gmail com
- fix typo in rrd_fetch where rrd_read result was checked against an
incorrect size.
- in rrd_fetch, drop rrd_head_size in favour of rrd_file->header_len
- in rrd_fetch, make the message "post fetch" unambiguous (now past vs.
post).
- change usage of param rdwr of rrd_open: allow for RRD_READONLY,
RRD_READWRITE, RRD_CREAT, RRD_READAHEAD; adjust callers accordingly:
+ rrd_resize needs CREAT
+ rrd_dump may want READAHEAD
- implement FD based I/O in rrd_open, rrd_read, rrd_write, rrd_seek.
- in rrd_update, unify write_RRA_row().
- sort | uniq the -T in .indent.pro (info_t was duplicated)
- add stub of an option to use O_DIRECT to the configury
- in Makefile.am, simplify the "indent" invocation of find:
My find may not support "-o" resp. "-or" nor braces.
Using -name "*.[ch]" works everywhere, AFAIK.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1084 a5681a0c-68f1-0310-ab6d-d61299d08faa
- fix typo in rrd_fetch where rrd_read result was checked against an
incorrect size.
- in rrd_fetch, drop rrd_head_size in favour of rrd_file->header_len
- in rrd_fetch, make the message "post fetch" unambiguous (now past vs.
post).
- change usage of param rdwr of rrd_open: allow for RRD_READONLY,
RRD_READWRITE, RRD_CREAT, RRD_READAHEAD; adjust callers accordingly:
+ rrd_resize needs CREAT
+ rrd_dump may want READAHEAD
- implement FD based I/O in rrd_open, rrd_read, rrd_write, rrd_seek.
- in rrd_update, unify write_RRA_row().
- sort | uniq the -T in .indent.pro (info_t was duplicated)
- add stub of an option to use O_DIRECT to the configury
- in Makefile.am, simplify the "indent" invocation of find:
My find may not support "-o" resp. "-or" nor braces.
Using -name "*.[ch]" works everywhere, AFAIK.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1084 a5681a0c-68f1-0310-ab6d-d61299d08faa
use proper preprocessor directives for the config-checks. -- tobi
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1083 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1083 a5681a0c-68f1-0310-ab6d-d61299d08faa
fixed version number for development
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1082 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1082 a5681a0c-68f1-0310-ab6d-d61299d08faa
indent all the rest of the code, and add some typedefs to indent.pro
there is now a indent makefile target
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1081 a5681a0c-68f1-0310-ab6d-d61299d08faa
there is now a indent makefile target
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1081 a5681a0c-68f1-0310-ab6d-d61299d08faa
removed superfluouse code
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1080 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1080 a5681a0c-68f1-0310-ab6d-d61299d08faa
added more indenting rules
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1079 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1079 a5681a0c-68f1-0310-ab6d-d61299d08faa
reindented everything according to .indent.pro
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1078 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1078 a5681a0c-68f1-0310-ab6d-d61299d08faa
profile must be in the source directory to work
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1077 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1077 a5681a0c-68f1-0310-ab6d-d61299d08faa
tabs be gone!
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1076 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1076 a5681a0c-68f1-0310-ab6d-d61299d08faa
17 years ago* progress in moving all the fileaccess over to a wrapper system that can do fd based...
* progress in moving all the fileaccess over to a wrapper system that can do fd based and mmap based fileaccess transparently ...
* small fixes left and right to improve code quality and stability.
-- Bernhard Fischer rep dot nop gmail com
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1075 a5681a0c-68f1-0310-ab6d-d61299d08faa
* small fixes left and right to improve code quality and stability.
-- Bernhard Fischer rep dot nop gmail com
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1075 a5681a0c-68f1-0310-ab6d-d61299d08faa
we are going to use indent from now on to keep code indenting consistent throughout the project
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1074 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1074 a5681a0c-68f1-0310-ab6d-d61299d08faa
new trunk based on current 1.2
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1073 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1073 a5681a0c-68f1-0310-ab6d-d61299d08faa
fixed spelling
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1071 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1071 a5681a0c-68f1-0310-ab6d-d61299d08faa
* better tests for madvise, fadvise and fdatasync
* fix inclusion of fcntl.h
* clenups for configure.ac -- Bernhard Fischer rep dot nop gmail com
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1070 a5681a0c-68f1-0310-ab6d-d61299d08faa
* fix inclusion of fcntl.h
* clenups for configure.ac -- Bernhard Fischer rep dot nop gmail com
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1070 a5681a0c-68f1-0310-ab6d-d61299d08faa
update defines according to manual pageentry
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1067 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1067 a5681a0c-68f1-0310-ab6d-d61299d08faa
added madvise MADV_RANDOM is rrd_update uses mmap
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1066 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1066 a5681a0c-68f1-0310-ab6d-d61299d08faa
* dropping in rrd_update is probably overkill since we may be dropping too much.
* in create we have to flush before dropping.
* read fcntl.h after defining the __USE_XOPEN2K
* fix drop code in fetch ...
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1065 a5681a0c-68f1-0310-ab6d-d61299d08faa
* in create we have to flush before dropping.
* read fcntl.h after defining the __USE_XOPEN2K
* fix drop code in fetch ...
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1065 a5681a0c-68f1-0310-ab6d-d61299d08faa
now the fadvise code actually compiles ... let the testing begin.
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1064 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1064 a5681a0c-68f1-0310-ab6d-d61299d08faa
new better ? performance test ... work in progress
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1063 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1063 a5681a0c-68f1-0310-ab6d-d61299d08faa
added posix_fadvise support (untested) ... this should help performance by
stopping read-ahead and droping buffer cache for all rrd data except the
file header portion. Newly created files are fdsynced to disk and released
from cache after creation, to soften the blow on buffer cache by creating
new rrds.
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1062 a5681a0c-68f1-0310-ab6d-d61299d08faa
stopping read-ahead and droping buffer cache for all rrd data except the
file header portion. Newly created files are fdsynced to disk and released
from cache after creation, to soften the blow on buffer cache by creating
new rrds.
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1062 a5681a0c-68f1-0310-ab6d-d61299d08faa
remove tabs and replace with 8 spaces
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1061 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1061 a5681a0c-68f1-0310-ab6d-d61299d08faa
use libdir instead of exec_prefix/lib ... maybe someone wants their libraries in another place
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1060 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1060 a5681a0c-68f1-0310-ab6d-d61299d08faa
yet another attempt to make the python build environment REALY cool
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1059 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1059 a5681a0c-68f1-0310-ab6d-d61299d08faa
17 years agomake sure the python extension gets the final resting place of the rrdlibrary compile...
make sure the python extension gets the final resting place of the rrdlibrary compiled in ...
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1057 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1057 a5681a0c-68f1-0310-ab6d-d61299d08faa
ruby complained about finding a previous copy of the rrdtool extension ... very odd thing actually ...
adding RUBYARCHDIR= seems to help ...
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1056 a5681a0c-68f1-0310-ab6d-d61299d08faa
adding RUBYARCHDIR= seems to help ...
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1056 a5681a0c-68f1-0310-ab6d-d61299d08faa
don't use round since it is c99 ... use floor(x+0.5) for positive numbers instead.
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1055 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1055 a5681a0c-68f1-0310-ab6d-d61299d08faa
print the name of the HW cf in debug mode -- Helge Oldach
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1054 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1054 a5681a0c-68f1-0310-ab6d-d61299d08faa
added some more rounding for int to float comparisons
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1053 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1053 a5681a0c-68f1-0310-ab6d-d61299d08faa
Testing an double and an integer for equality is bound to produce odd results on times. Don't do it! -- rrdtool@oldach.net
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1052 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1052 a5681a0c-68f1-0310-ab6d-d61299d08faa
prepare for the release of rrdtool-1.2.23
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1050 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1050 a5681a0c-68f1-0310-ab6d-d61299d08faa
fix python install for virgin systems
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1049 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1049 a5681a0c-68f1-0310-ab6d-d61299d08faa
prepare for the release of rrdtool-1.2.22
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1047 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1047 a5681a0c-68f1-0310-ab6d-d61299d08faa
fixed old urls in code
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1046 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1046 a5681a0c-68f1-0310-ab6d-d61299d08faa
fix python for staged installs
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1045 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1045 a5681a0c-68f1-0310-ab6d-d61299d08faa
fixed path to rrd_format.h in tcl bindings
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1044 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1044 a5681a0c-68f1-0310-ab6d-d61299d08faa
prepare for the release of rrdtool-1.2.21
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1042 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1042 a5681a0c-68f1-0310-ab6d-d61299d08faa
if the graph goes 'down' minval must be hanged instead
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1041 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1041 a5681a0c-68f1-0310-ab6d-d61299d08faa
prepare for the release of rrdtool-1.2.20
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1039 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1039 a5681a0c-68f1-0310-ab6d-d61299d08faa
updated win32 and netware Makefiles -- Guenter Knauf
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1038 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1038 a5681a0c-68f1-0310-ab6d-d61299d08faa
added some const casts
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1037 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1037 a5681a0c-68f1-0310-ab6d-d61299d08faa
added --alt-autoscale-min (see --alt-autoscale-max) -- Helge Oldach
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1036 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1036 a5681a0c-68f1-0310-ab6d-d61299d08faa
untabified rrd_graph.c
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1032 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1032 a5681a0c-68f1-0310-ab6d-d61299d08faa
use the shorthand for vidx ...
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1031 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1031 a5681a0c-68f1-0310-ab6d-d61299d08faa
the rrd_graph_check_vname function is not used anywhere in the code ...
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1030 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1030 a5681a0c-68f1-0310-ab6d-d61299d08faa
release font resources after thy have been used ... -- Travis Spencer
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1029 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1029 a5681a0c-68f1-0310-ab6d-d61299d08faa