[packages/smem] - initial - nice tool for reporting of memory usage

zawadaa zawadaa at pld-linux.org
Wed Mar 4 11:54:54 CET 2015


commit edfe075c8d85cf9ad84361ea8b62b7b1a31a2912
Author: Andrzej Zawadzki <zawadaa at pld-linux.org>
Date:   Wed Mar 4 11:52:13 2015 +0100

    - initial
    - nice tool for reporting of memory usage

 smem.spec | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)
---
diff --git a/smem.spec b/smem.spec
new file mode 100644
index 0000000..c57f119
--- /dev/null
+++ b/smem.spec
@@ -0,0 +1,53 @@
+Summary:	Report application memory usage in a meaningful way
+Name:		smem
+Version:	1.4
+Release:	1
+License:	GPL v2+
+Group:		Applications/System
+URL:		http://www.selenic.com/smem/
+Source0:	http://www.selenic.com/smem/download/%{name}-%{version}.tar.gz
+# Source0-md5:	fe79435c3930389bfdb560255c802162
+Requires:	kernel >= 2.6.27
+BuildRequires:  rpm-pythonprov
+BuildRequires:  rpmbuild(macros) >= 1.219
+Requires:       python >= 1:2.7
+Requires:       python-modules >= 1:2.7
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+smem is a tool that can give numerous reports on memory usage on Linux
+systems. Unlike existing tools, smem can report proportional set size
+(PSS), which is a more meaningful representation of the amount of
+memory used by libraries and applications in a virtual memory system.
+
+Because large portions of physical memory are typically shared among
+multiple applications, the standard measure of memory usage known as
+resident set size (RSS) will significantly overestimate memory usage.
+PSS instead measures each application's "fair share" of each shared
+area to give a realistic measure.
+
+%prep
+%setup -q
+
+%build
+%{__make} smemcap \
+        CC="%{__cc}" \
+        CPU_OPTS="%{rpmcflags}" \
+        LDFLAGS="%{rpmldflags}"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man8}
+install smem $RPM_BUILD_ROOT%{_bindir}
+install smemcap $RPM_BUILD_ROOT%{_bindir}
+install smem.8 $RPM_BUILD_ROOT%{_mandir}/man8
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc COPYING
+%attr(755,root,root) %{_bindir}/smem
+%attr(755,root,root) %{_bindir}/smemcap
+%{_mandir}/man8/smem.8*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/smem.git/commitdiff/edfe075c8d85cf9ad84361ea8b62b7b1a31a2912



More information about the pld-cvs-commit mailing list