From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5E8BB158041 for ; Wed, 8 Sep 2021 12:24:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B684CE0923; Wed, 8 Sep 2021 12:24:31 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 49DFCE0923 for ; Wed, 8 Sep 2021 12:24:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 52D97342AC1 for ; Wed, 8 Sep 2021 12:24:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D20183B for ; Wed, 8 Sep 2021 12:24:27 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1631103843.d2a560187c928c06c16fb88387957f4c241c0cae.arthurzam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/iotop-c/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-process/iotop-c/Manifest sys-process/iotop-c/iotop-c-1.18.ebuild sys-process/iotop-c/iotop-c-9999.ebuild sys-process/iotop-c/metadata.xml X-VCS-Directories: sys-process/iotop-c/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: d2a560187c928c06c16fb88387957f4c241c0cae X-VCS-Branch: master Date: Wed, 8 Sep 2021 12:24:27 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ffb45f96-bc6d-4662-9cc4-a793c2f84a82 X-Archives-Hash: 2ea1695e1fb2f78cbb2f59acf95ed8fe commit: d2a560187c928c06c16fb88387957f4c241c0cae Author: Arthur Zamarin gentoo org> AuthorDate: Wed Sep 8 12:22:50 2021 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Wed Sep 8 12:24:03 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2a56018 sys-process/iotop-c: initial import (from ::guru) Signed-off-by: Arthur Zamarin gentoo.org> sys-process/iotop-c/Manifest | 1 + sys-process/iotop-c/iotop-c-1.18.ebuild | 36 +++++++++++++++++++++++++++++++++ sys-process/iotop-c/iotop-c-9999.ebuild | 34 +++++++++++++++++++++++++++++++ sys-process/iotop-c/metadata.xml | 18 +++++++++++++++++ 4 files changed, 89 insertions(+) diff --git a/sys-process/iotop-c/Manifest b/sys-process/iotop-c/Manifest new file mode 100644 index 00000000000..4c6717c0a8c --- /dev/null +++ b/sys-process/iotop-c/Manifest @@ -0,0 +1 @@ +DIST iotop-c-1.18.tar.gz 114838 BLAKE2B 8b3e13d00de4a5cd385a2d441d84bb27cc1d03a27012163b9628285c31176698bf840951e39199abef11b2d3c0413d500d6e7699f32a3b542360a1333307d00e SHA512 f0affbfdb106eb36078e7994860155f52d47878017f47e64d69aa7c04cc29756ca516a6634fd19d6d39c931100b9a0e93e07ca2f4d14c18014dc1c4f477907ea diff --git a/sys-process/iotop-c/iotop-c-1.18.ebuild b/sys-process/iotop-c/iotop-c-1.18.ebuild new file mode 100644 index 00000000000..b6d52c5d05f --- /dev/null +++ b/sys-process/iotop-c/iotop-c-1.18.ebuild @@ -0,0 +1,36 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit fcaps linux-info toolchain-funcs + +DESCRIPTION="top utility for IO (C port)" +HOMEPAGE="https://github.com/Tomas-M/iotop" +SRC_URI="https://github.com/Tomas-M/iotop/archive/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/iotop-${PV}" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="sys-libs/ncurses:= + !sys-process/iotop" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +CONFIG_CHECK="~TASK_IO_ACCOUNTING ~TASK_DELAY_ACCT ~TASKSTATS ~VM_EVENT_COUNTERS" + +FILECAPS=( + cap_net_admin=eip usr/bin/iotop +) + +src_compile() { + emake V=1 CC="$(tc-getCC)" PKG_CONFIG="$(tc-getPKG_CONFIG)" NO_FLTO=1 +} + +src_install() { + dobin iotop + dodoc README.md + doman iotop.8 +} diff --git a/sys-process/iotop-c/iotop-c-9999.ebuild b/sys-process/iotop-c/iotop-c-9999.ebuild new file mode 100644 index 00000000000..b05952298d1 --- /dev/null +++ b/sys-process/iotop-c/iotop-c-9999.ebuild @@ -0,0 +1,34 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +EGIT_REPO_URI="https://github.com/Tomas-M/iotop" +inherit fcaps git-r3 linux-info toolchain-funcs + +DESCRIPTION="top utility for IO (C port)" +HOMEPAGE="https://github.com/Tomas-M/iotop" + +LICENSE="GPL-2+" +SLOT="0" + +RDEPEND="sys-libs/ncurses:= + !sys-process/iotop" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +CONFIG_CHECK="~TASK_IO_ACCOUNTING ~TASK_DELAY_ACCT ~TASKSTATS ~VM_EVENT_COUNTERS" + +FILECAPS=( + cap_net_admin=eip usr/bin/iotop +) + +src_compile() { + emake V=1 CC="$(tc-getCC)" PKG_CONFIG="$(tc-getPKG_CONFIG)" NO_FLTO=1 +} + +src_install() { + dobin iotop + dodoc README.md + doman iotop.8 +} diff --git a/sys-process/iotop-c/metadata.xml b/sys-process/iotop-c/metadata.xml new file mode 100644 index 00000000000..e99460ff502 --- /dev/null +++ b/sys-process/iotop-c/metadata.xml @@ -0,0 +1,18 @@ + + + + + arthurzam@gentoo.org + Arthur Zamarin + + +Your Linux server is too slow or load is too high? One of the possible causes of such symptoms may be high IO (input/output) waiting time, which basically means that some of your processes need to read or write to a hard drive while it is too slow and not ready yet, serving data for some other processes. + +Common practice is to use iostat -x in order to find out which block device (hard drive) is slow, but such information is not always much helpful. It could help you much more if you knew which process reads or writes the most data from your slow disk, so you could possibly renice it using ionice or even kill it. + +IOTop will identify processes, which use high amount of input/output requests on your machine. It is similar to the well known top utility, but instead of showing you what consumes CPU the most, it lists processes by their IO consumption. Inspired by iotop python script from Guillaume Chazarain, but rewritten to C by Vyacheslav Trushkin so it now runs without python at all. + + + Tomas-M/iotop + +