From 22a04b03a87c9b63d7404c8e6d4a9f4150722f79 Mon Sep 17 00:00:00 2001 From: Sebastien GODARD Date: Fri, 12 Jan 2018 11:56:29 +0100 Subject: [PATCH] sysstat-11.7.1 sysstat version 11.7.1 final packaging. lsm and spec files updated. Changelog added. NOTE: Stable versions (11.2.14 [EOL], 11.4.8 and 11.6.2) also exist and will be available for download from my web site: http://pagesperso-orange.fr/sebastien.godard/ The stable versions include only the bug fixes added in sysstat 11.7.1 but not the new features. Version 11.7.1 includes major changes concerning sar's binary data file format and how sar works. Among them: * A binary data file should take much less space on disk thanks to new optimizations on how values are stowed in memory. The space saved is estimated at least at 25% compared to previous format. * Structures are no longer statically allocated, meaning that the system can now register as many new devices (disks, network interfaces, etc.) as needed and you will find all of them saved in your saXX data file (provided that you have selected the corresponding activities to collect). Previous version could lead to some devices being ignored and going unnoticed if no free structures were left. * Sar (and sadf) will now be able to read a binary data file whatever its endianness is: Both big-endian and little-endian files can be read by the same sar or sadf executable. * More flexibility has been added to sar's binary data file format. I cannot promise that the format won't change again in the future but it should now be possible to add new metrics or activities without making the format unreadable by older sar versions (starting with version 11.7.1). Older versions will be able to read newer formats but will display only the metrics they currently know. Version 11.7.1 is a development version. As such, it is still NOT ready for use in production. Yet I would really like to have it tested by the maximum number of users and get feedback! :-) NOTE: The function provided by sadf (option -c) to convert an old data file to the up-to-date format has been temporarily inhibited. This function will be working again in next sysstat version (11.7.2). Signed-off-by: Sebastien GODARD --- CHANGES | 56 +++++++++++++++++++++++++++++++ sysstat-11.7.1.lsm | 39 ++++++++++++++++++++++ sysstat-11.7.1.spec | 81 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 176 insertions(+) create mode 100644 sysstat-11.7.1.lsm create mode 100644 sysstat-11.7.1.spec diff --git a/CHANGES b/CHANGES index 5aebb27..e5604d4 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,61 @@ Changes: +2018/01/12: Version 11.7.1 - Sebastien Godard (sysstat orange.fr) + * sar/sadc: New binary data file format, which is now more flexible + and takes much less space on disk. + * sar/sadc: Dynamic structures allocation for all devices registered + by the system. + * sar/sadf: Support for big-endian/little-endian format for binary + data files. + * sar/sadc: Use 64-bit time values in binary data files. + * sar/sadc: Update statistics structures to keep with current kernels. + * sar/sadc: Update binary file's header data to deal with patchlevel + and sublevel version numbers greater than 15. + * sadc: Save HZ value in data file header. + * sar/sadc: Don't assume CPU statistics are always saved in binary + data files. + * sar/sadf: Don't display offline CPU. + * sadf: Conversion function (option -c) temporarily inhibited. + It will work again with next sysstat version (11.7.2). + * sar: The option used to display a help message is now "--help". + * sar: Add new option -h to make sar's output easier to read by a + human. This option moves device names (disks, network interfaces) + at the end of the line. This option also sets options -p (pretty- + print) and --human. + * sadf: RAW: Display number of items for each activity. + * sadf: Make option -H display all the activities present in file, + whether known or unknown. + * All commands now use only /proc/uptime to compute system uptime. + Also use a time interval expressed in seconds, not in jiffies. + * Makefile: Fix dependencies between files. + * Makefile: Remove old references to nfsiostat command. + * [Robert Luberda]: Fix sadc crash when really long lines are + read from /etc/mtab [11.6.1] [11.4.7] [11.2.13]. + * [JoungKyun Kim]: NLS updated: Add Korean translation [11.6.1]. + * [Christian Ehrhardt]: Fix 00 byte after values when --human is + not set [11.6.1]. + * Fix invalid token in "iostat -y" JSON output [11.6.1]. + * Workaround for offline CPU coming back online [11.6.2] [11.4.8] + [11.2.14]. + * sadf: Fix CSV output for TTY statistics [11.6.2] [11.4.8] + [11.2.14]. + * sadf: Remove duplicate % sign displayed in ppc mode [11.6.2]. + * SVG: Display time as xx:00 instead of xxH when "oneday" option + is used [11.6.2] [11.4.8]. + * sar: Use ULLONG_MAX/2 to check if network device counters have + overflown [11.6.2] [11.4.8] [11.2.14]. + * Remove SCCSID strings in executable files to allow reproducible + build [11.6.1] [11.4.7] [11.2.13]. + * Remove unused parameters passed to functions [11.6.1] [11.4.7] + [11.2.13]. + * sadf: Don't use f_count2() function pointer [11.6.1] [11.4.7] + [11.2.13]. + * [Lukas Zapletal]: Update comment of SA_DIR in sysconfig file [11.6.1] + [11.4.7] [11.2.13]. + * NLS: Various translations updated. + * Various cosmetic fixes, typo fixes and documentation enhancements + in source code. + 2017/08/14: Version 11.6.0 - Sebastien Godard (sysstat orange.fr) * pidstat: Add new option (-e) which can be used to pass a program to execute and make pidstat monitor it. diff --git a/sysstat-11.7.1.lsm b/sysstat-11.7.1.lsm new file mode 100644 index 0000000..244b289 --- /dev/null +++ b/sysstat-11.7.1.lsm @@ -0,0 +1,39 @@ +Begin4 +Title: sysstat - the sar, sadf, mpstat, iostat, tapestat, pidstat and cifsiostat commands for Linux +Version: 11.7.1 +Entered-date: 2018-01-12 +Description: The sysstat package contains the sar, sadf, mpstat, iostat, tapestat, + pidstat, cifsiostat and sa tools for Linux. + The sar command collects and reports system activity + information. + The information collected by sar can be saved in a file + in a binary format for future inspection. + The statistics reported by sar concern I/O transfer rates, + paging activity, process-related activities, interrupts, + network activity, memory and swap space utilization, CPU + utilization, kernel activities and TTY statistics, among + others. Both UP and SMP machines are fully supported. + The sadf command is used to display data collected by sar in various + formats (XML, database-friendly, etc.) and to draw graphs (SVG). + The mpstat command reports global and per-processor statistics. + The iostat command reports CPU utilization and I/O statistics + for disks. + The tapestat command reports statistics for tape drives connected + to the system. + The pidstat command reports statistics for Linux tasks (processes). + The cifsiostat command reports I/O statistics for CIFS filesystems. + NB: Send bugs, patches, suggestions and/or questions to + (sysstat [at] orange.fr). + URL: http://pagesperso-orange.fr/sebastien.godard/ +Keywords: system administration, system monitoring, sar, sadf, iostat, mpstat, tapestat, pidstat, system accounting, performance, tuning +Author: sysstat@NOSPAM.orange.fr (Sebastien Godard) +Maintained-by: sysstat@NOSPAM.orange.fr (Sebastien Godard) +Primary-site: http://pagesperso-orange.fr/sebastien.godard/ + 613kiB sysstat-11.6.0.tar.gz + 526kiB sysstat-11.6.0.tar.bz2 + 466kiB sysstat-11.6.0.tar.xz + 622kiB sysstat-11.6.0-1.src.rpm + 365kiB sysstat-11.6.0-1.x86_64.rpm +Alternate-site: +Copying-policy: GPL +End diff --git a/sysstat-11.7.1.spec b/sysstat-11.7.1.spec new file mode 100644 index 0000000..9241f09 --- /dev/null +++ b/sysstat-11.7.1.spec @@ -0,0 +1,81 @@ +Summary: SAR, SADF, MPSTAT, IOSTAT, TAPESTAT, PIDSTAT and CIFSIOSTAT for Linux +Name: sysstat +Version: 11.7.1 +Release: 1 +License: GPL +Group: Applications/System +Source0: %{name}-%{version}.tar.gz +URL: http://pagesperso-orange.fr/sebastien.godard/ +Packager: Sebastien Godard +BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(id -u -n) +Requires: gettext + +%description +The sysstat package contains the sar, sadf, mpstat, iostat, tapestat, +pidstat, cifsiostat and sa tools for Linux. +The sar command collects and reports system activity information. +The information collected by sar can be saved in a file in a binary +format for future inspection. The statistics reported by sar concern +I/O transfer rates, paging activity, process-related activities, +interrupts, network activity, memory and swap space utilization, CPU +utilization, kernel activities and TTY statistics, among others. Both +UP and SMP machines are fully supported. +The sadf command may be used to display data collected by sar in +various formats (CSV, XML, etc.) and to draw graphs (SVG). +The iostat command reports CPU utilization and I/O statistics for disks. +The tapestat command reports statistics for tapes connected to the system. +The mpstat command reports global and per-processor statistics. +The pidstat command reports statistics for Linux tasks (processes). +The cifsiostat command reports I/O statistics for CIFS filesystems. + +%prep +%setup + +%build +# To include cron installation, add options --enable-install-cron and --enable-copy-only +./configure --prefix=%{_prefix} \ + --disable-file-attr \ + sa_lib_dir=%{_libdir}/sa \ + --mandir=%{_mandir} \ + DESTDIR=$RPM_BUILD_ROOT +make + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT/var/log/sa + +make install + +mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d +install -m 755 sysstat $RPM_BUILD_ROOT/etc/rc.d/init.d/sysstat +mkdir -p $RPM_BUILD_ROOT/etc/sysconfig +install -m 644 sysstat.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/sysstat +install -m 644 sysstat.ioconf $RPM_BUILD_ROOT/etc/sysconfig/sysstat.ioconf +mkdir -p $RPM_BUILD_ROOT/etc/cron.d +install -m 644 cron/sysstat.crond.sample $RPM_BUILD_ROOT/etc/cron.d/sysstat +mkdir -p $RPM_BUILD_ROOT/etc/rc2.d +cd $RPM_BUILD_ROOT/etc/rc2.d && ln -sf ../init.d/sysstat S01sysstat +mkdir -p $RPM_BUILD_ROOT/etc/rc3.d +cd $RPM_BUILD_ROOT/etc/rc3.d && ln -sf ../init.d/sysstat S01sysstat +mkdir -p $RPM_BUILD_ROOT/etc/rc5.d +cd $RPM_BUILD_ROOT/etc/rc5.d && ln -sf ../init.d/sysstat S01sysstat + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc %{_datadir}/doc/sysstat-%{version}/* +%attr(755,root,root) %{_bindir}/* +%attr(755,root,root) %{_libdir}/sa/* +%attr(644,root,root) %{_mandir}/man*/* +%attr(644,root,root) %{_datadir}/locale/*/LC_MESSAGES/sysstat.mo +%attr(755,root,root) %dir /var/log/sa +%attr(755,root,root) /etc/rc.d/init.d/sysstat +%attr(644,root,root) /etc/sysconfig/sysstat +%attr(644,root,root) /etc/sysconfig/sysstat.ioconf +/etc/rc2.d/S01sysstat +/etc/rc3.d/S01sysstat +/etc/rc5.d/S01sysstat +%config(noreplace) %attr(0644,root,root) /etc/cron.d/sysstat + -- 2.40.0