From: Elizabeth Flanagan <redacted>
tmpfs/encryptfs/ramfs have no entry in /proc/diskstats. This modifies
buildstats to not collect diskio statistics when we encounter a case where
the os.major/os.minor is not represented with an entry in /proc/diskstats.
Longer term solution to this is to:
- Identify all fs types that don't have representation in /proc/diskstats
- Gather meaningful iostats of these fs types if possible.
The following changes since commit 4a951e0433a99cd985515843f0a48fadc7050aca:
Fix HOMEPAGE values in libzypp and sat-solver .bb files (2011-11-01 18:28:19 +0000)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib eflanagan/diskio_bug1700
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=eflanagan/diskio_bug1700
Elizabeth Flanagan (1):
[Yocto Bug 1700] Fix for buildstats on tmpfs
meta/classes/buildstats.bbclass | 37 ++++++++++++++++++++++++++-----------
1 files changed, 26 insertions(+), 11 deletions(-)
From: Elizabeth Flanagan <redacted>
tmpfs/encryptfs/(and most likely, but not confirmed)ramfs TMPDIRs
cause diskstats to choke. No device entry ends up in /proc/diskstats
for these fs types, which ends up causing the failure.
The short term solution is to exclude these fs types from diskstat
collection. Longer term we will want to see if we can collect
meaningful diskio for each of these, and other, use cases, but for
this cleans up Bug 1700.
Signed-off-by: Elizabeth Flanagan <redacted>
---
meta/classes/buildstats.bbclass | 37 ++++++++++++++++++++++++++-----------
1 files changed, 26 insertions(+), 11 deletions(-)
@@ -48,13 +48,24 @@ def set_device(e): # something like stick DL_DIR on a different partition and this would # throw stats gathering off. The same goes with SSTATE_DIR. However, let's # get the basics in here and work on the cornercases later. + # A note. /proc/diskstats does not contain info on encryptfs, tmpfs, etc.+ # If we end up hitting one of these fs, we'll just skip diskstats collection. ############################################################################ device=os.stat(tmpdir) majordev=os.major(device.st_dev) minordev=os.minor(device.st_dev)+ ############################################################################+ # Bug 1700: + # Because tmpfs/encryptfs/ramfs etc inserts no entry in /proc/diskstats+ # we set rdev to NoLogicalDevice and search for it later. If we find NLD+ # we do not collect diskstats as the method to collect meaningful statistics+ # for these fs types requires a bit more research. + ############################################################################ for line in open("/proc/diskstats", "r"): if majordev == int(line.split()[0]) and minordev == int(line.split()[1]): rdev=line.split()[2]+ else:+ rdev="NoLogicalDevice" file = open(bb.data.getVar('DEVFILE', e.data, True), "w") file.write(rdev) file.close()
@@ -133,10 +144,11 @@ def write_task_data(status, logfile, dev, e): # For the best information, running things with BB_TOTAL_THREADS = "1" # would return accurate per task results. ############################################################################- diskdata = get_diskdata("__diskdata_task", dev, e.data)- if diskdata:- for key in sorted(diskdata.iterkeys()):- file.write(key + ": " + diskdata[key] + "\n")+ if dev != "NoLogicalDevice":+ diskdata = get_diskdata("__diskdata_task", dev, e.data)+ if diskdata:+ for key in sorted(diskdata.iterkeys()):+ file.write(key + ": " + diskdata[key] + "\n") if status is "passed": file.write("Status: PASSED \n") else:
From: Elizabeth Flanagan<redacted>
tmpfs/encryptfs/(and most likely, but not confirmed)ramfs TMPDIRs
cause diskstats to choke. No device entry ends up in /proc/diskstats
for these fs types, which ends up causing the failure.
The short term solution is to exclude these fs types from diskstat
collection. Longer term we will want to see if we can collect
meaningful diskio for each of these, and other, use cases, but for
this cleans up Bug 1700.
Signed-off-by: Elizabeth Flanagan<redacted>
---
meta/classes/buildstats.bbclass | 37 ++++++++++++++++++++++++++-----------
1 files changed, 26 insertions(+), 11 deletions(-)
@@ -48,13 +48,24 @@ def set_device(e): # something like stick DL_DIR on a different partition and this would # throw stats gathering off. The same goes with SSTATE_DIR. However, let's # get the basics in here and work on the cornercases later.+ # A note. /proc/diskstats does not contain info on encryptfs, tmpfs, etc.+ # If we end up hitting one of these fs, we'll just skip diskstats collection. ############################################################################ device=os.stat(tmpdir) majordev=os.major(device.st_dev) minordev=os.minor(device.st_dev)+ ############################################################################+ # Bug 1700:+ # Because tmpfs/encryptfs/ramfs etc inserts no entry in /proc/diskstats+ # we set rdev to NoLogicalDevice and search for it later. If we find NLD+ # we do not collect diskstats as the method to collect meaningful statistics+ # for these fs types requires a bit more research.+ ############################################################################ for line in open("/proc/diskstats", "r"): if majordev == int(line.split()[0]) and minordev == int(line.split()[1]): rdev=line.split()[2]+ else:+ rdev="NoLogicalDevice" file = open(bb.data.getVar('DEVFILE', e.data, True), "w") file.write(rdev) file.close()
@@ -133,10 +144,11 @@ def write_task_data(status, logfile, dev, e): # For the best information, running things with BB_TOTAL_THREADS = "1" # would return accurate per task results. ############################################################################- diskdata = get_diskdata("__diskdata_task", dev, e.data)- if diskdata:- for key in sorted(diskdata.iterkeys()):- file.write(key + ": " + diskdata[key] + "\n")+ if dev != "NoLogicalDevice":+ diskdata = get_diskdata("__diskdata_task", dev, e.data)+ if diskdata:+ for key in sorted(diskdata.iterkeys()):+ file.write(key + ": " + diskdata[key] + "\n") if status is "passed": file.write("Status: PASSED \n") else:
From: Elizabeth Flanagan <redacted>
tmpfs/encryptfs/ramfs have no entry in /proc/diskstats. This modifies
buildstats to not collect diskio statistics when we encounter a case where
the os.major/os.minor is not represented with an entry in /proc/diskstats.
A similar issue exists for building on a btrfs partition.
I posted a message on Oct 28 concerning buildstats on btrfs volumes.
The problem there is, that btrfs's stat() reports fake device ids that
cannot be found in /proc/diskstats.
Longer term solution to this is to:
- Identify all fs types that don't have representation in /proc/diskstats
- Gather meaningful iostats of these fs types if possible.
The following changes since commit 4a951e0433a99cd985515843f0a48fadc7050aca:
Fix HOMEPAGE values in libzypp and sat-solver .bb files (2011-11-01 18:28:19 +0000)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib eflanagan/diskio_bug1700
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=eflanagan/diskio_bug1700
Elizabeth Flanagan (1):
[Yocto Bug 1700] Fix for buildstats on tmpfs
meta/classes/buildstats.bbclass | 37 ++++++++++++++++++++++++++-----------
1 files changed, 26 insertions(+), 11 deletions(-)
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
--
DI Wolfram Stering
(Entwicklung)
HALE electronic GmbH
Eugen-Müller-Straße 18, 5020 Salzburg, Austria
Tel: +43 (662) 439011 550
Fax: +43 (662) 439011 9
http://www.hale.at/
Firmenbuchnummer: FN 66801m HG Salzburg
--
Scanned by MailScanner.
From: Richard Purdie <hidden> Date: 2011-11-08 14:19:00
On Tue, 2011-11-08 at 11:15 +0100, Wolfram Stering wrote:
On 11/02/2011 07:41 AM, Beth Flanagan wrote:
quoted
From: Elizabeth Flanagan <redacted>
tmpfs/encryptfs/ramfs have no entry in /proc/diskstats. This modifies
buildstats to not collect diskio statistics when we encounter a case where
the os.major/os.minor is not represented with an entry in /proc/diskstats.
A similar issue exists for building on a btrfs partition.
I posted a message on Oct 28 concerning buildstats on btrfs volumes.
The problem there is, that btrfs's stat() reports fake device ids that
cannot be found in /proc/diskstats.
Did this patch help address that problem for you too?
Cheers,
Richard
On Tue, 2011-11-08 at 11:15 +0100, Wolfram Stering wrote:
quoted
On 11/02/2011 07:41 AM, Beth Flanagan wrote:
quoted
From: Elizabeth Flanagan <redacted>
tmpfs/encryptfs/ramfs have no entry in /proc/diskstats. This modifies
buildstats to not collect diskio statistics when we encounter a case where
the os.major/os.minor is not represented with an entry in /proc/diskstats.
A similar issue exists for building on a btrfs partition.
I posted a message on Oct 28 concerning buildstats on btrfs volumes.
The problem there is, that btrfs's stat() reports fake device ids that
cannot be found in /proc/diskstats.
Did this patch help address that problem for you too?
I'll be able to check that tomorrow and report back.
regards,
- wolfi
From: Flanagan, Elizabeth <hidden> Date: 2011-11-08 16:04:59
On Tue, Nov 8, 2011 at 7:53 AM, Wolfram Stering [off-list ref] wrote:
On 11/08/2011 03:12 PM, Richard Purdie wrote:
quoted
On Tue, 2011-11-08 at 11:15 +0100, Wolfram Stering wrote:
quoted
On 11/02/2011 07:41 AM, Beth Flanagan wrote:
quoted
From: Elizabeth Flanagan <redacted>
tmpfs/encryptfs/ramfs have no entry in /proc/diskstats. This modifies
buildstats to not collect diskio statistics when we encounter a case where
the os.major/os.minor is not represented with an entry in /proc/diskstats.
A similar issue exists for building on a btrfs partition.
I posted a message on Oct 28 concerning buildstats on btrfs volumes.
The problem there is, that btrfs's stat() reports fake device ids that
cannot be found in /proc/diskstats.
Did this patch help address that problem for you too?
I'll be able to check that tomorrow and report back.
It should as the patch will just disable diskio collection if it
cannot find a valid device id in /proc/diskstats. Let me know if it
doesn't and I'll rework it and resubmit.
-b
regards,
- wolfi
quoted
Cheers,
Richard
--
Wolfram Stering
(Entwicklung)
HALE electronic GmbH
Eugen-Müller-Straße 18, 5020 Salzburg, Austria
Tel: +43 (662) 439011 550
Fax: +43 (662) 439011 9
http://www.hale.at/
Firmenbuchnummer: FN 66801m HG Salzburg
--
Scanned by MailScanner.
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
--
Elizabeth Flanagan
Yocto Project
Build and Release
On 11/08/2011 04:57 PM, Flanagan, Elizabeth wrote:
On Tue, Nov 8, 2011 at 7:53 AM, Wolfram Stering [off-list ref] wrote:
quoted
On 11/08/2011 03:12 PM, Richard Purdie wrote:
quoted
On Tue, 2011-11-08 at 11:15 +0100, Wolfram Stering wrote:
quoted
On 11/02/2011 07:41 AM, Beth Flanagan wrote:
quoted
From: Elizabeth Flanagan <redacted>
tmpfs/encryptfs/ramfs have no entry in /proc/diskstats. This modifies
buildstats to not collect diskio statistics when we encounter a case where
the os.major/os.minor is not represented with an entry in /proc/diskstats.
A similar issue exists for building on a btrfs partition.
I posted a message on Oct 28 concerning buildstats on btrfs volumes.
The problem there is, that btrfs's stat() reports fake device ids that
cannot be found in /proc/diskstats.
Did this patch help address that problem for you too?
I'll be able to check that tomorrow and report back.
It should as the patch will just disable diskio collection if it
cannot find a valid device id in /proc/diskstats. Let me know if it
doesn't and I'll rework it and resubmit.
-b
Your patch fixes the buildstats issue for building on a btrfs volume as
well.
bitbake no longer hits the exception and diskstats are omitted.
Theoretically, this information would be available for btrfs, but it is
not discoverable
in the way buildstats currently collects the disk statistics. However,
this is a seaprate
issue, I think.
Thanks a lot for fixing this,
-wolfi
--
Wolfram Stering
(Entwicklung)
HALE electronic GmbH
Eugen-Müller-Straße 18, 5020 Salzburg, Austria
Tel: +43 (662) 439011 550
Fax: +43 (662) 439011 9
http://www.hale.at/
Firmenbuchnummer: FN 66801m HG Salzburg
--
Scanned by MailScanner.
Op 8 nov. 2011, om 16:57 heeft Flanagan, Elizabeth het volgende geschreven:
On Tue, Nov 8, 2011 at 7:53 AM, Wolfram Stering [off-list ref] wrote:
quoted
On 11/08/2011 03:12 PM, Richard Purdie wrote:
quoted
On Tue, 2011-11-08 at 11:15 +0100, Wolfram Stering wrote:
quoted
On 11/02/2011 07:41 AM, Beth Flanagan wrote:
quoted
From: Elizabeth Flanagan <redacted>
tmpfs/encryptfs/ramfs have no entry in /proc/diskstats. This modifies
buildstats to not collect diskio statistics when we encounter a case where
the os.major/os.minor is not represented with an entry in /proc/diskstats.
A similar issue exists for building on a btrfs partition.
I posted a message on Oct 28 concerning buildstats on btrfs volumes.
The problem there is, that btrfs's stat() reports fake device ids that
cannot be found in /proc/diskstats.
Did this patch help address that problem for you too?
I'll be able to check that tomorrow and report back.
It should as the patch will just disable diskio collection if it
cannot find a valid device id in /proc/diskstats. Let me know if it
doesn't and I'll rework it and resubmit.
Related question: what do you use to visualize the buildstats? I heard rumours about getting bootchart to support our format natively, is that the case? I will be needing pretty graphics for a report on the oe-core buildflow in a few weeks :)
regards,
Koen
From: Flanagan, Elizabeth <hidden> Date: 2011-11-09 18:18:39
On Wed, Nov 9, 2011 at 4:00 AM, Wolfram Stering [off-list ref] wrote:
On 11/08/2011 04:57 PM, Flanagan, Elizabeth wrote:
quoted
On Tue, Nov 8, 2011 at 7:53 AM, Wolfram Stering [off-list ref] wrote:
quoted
On 11/08/2011 03:12 PM, Richard Purdie wrote:
quoted
On Tue, 2011-11-08 at 11:15 +0100, Wolfram Stering wrote:
quoted
On 11/02/2011 07:41 AM, Beth Flanagan wrote:
quoted
From: Elizabeth Flanagan <redacted>
tmpfs/encryptfs/ramfs have no entry in /proc/diskstats. This modifies
buildstats to not collect diskio statistics when we encounter a case where
the os.major/os.minor is not represented with an entry in /proc/diskstats.
A similar issue exists for building on a btrfs partition.
I posted a message on Oct 28 concerning buildstats on btrfs volumes.
The problem there is, that btrfs's stat() reports fake device ids that
cannot be found in /proc/diskstats.
Did this patch help address that problem for you too?
I'll be able to check that tomorrow and report back.
It should as the patch will just disable diskio collection if it
cannot find a valid device id in /proc/diskstats. Let me know if it
doesn't and I'll rework it and resubmit.
-b
Your patch fixes the buildstats issue for building on a btrfs volume as
well.
bitbake no longer hits the exception and diskstats are omitted.
Theoretically, this information would be available for btrfs, but it is
not discoverable
in the way buildstats currently collects the disk statistics. However,
this is a seaprate
issue, I think.
Yes, and I'm open for suggestions on the best way to implement finding
disk io data for the myriad of filesystem types out there. :/ Or at
the very list a way to pull diskstats from a trimmed down list that
includes:
ext2/3/4
btrfs
tmpfs
encryptfs....
I'm not sure performance data is even collected for for non-block
devices. dstat and iostat as far as I can tell can't collect data for
tmpfs.
Ideas?
-b
--
Elizabeth Flanagan
Yocto Project
Build and Release
From: Flanagan, Elizabeth <hidden> Date: 2011-11-09 18:28:54
On Wed, Nov 9, 2011 at 4:13 AM, Koen Kooi [off-list ref] wrote:
Op 8 nov. 2011, om 16:57 heeft Flanagan, Elizabeth het volgende geschreven:
quoted
On Tue, Nov 8, 2011 at 7:53 AM, Wolfram Stering [off-list ref] wrote:
quoted
On 11/08/2011 03:12 PM, Richard Purdie wrote:
quoted
On Tue, 2011-11-08 at 11:15 +0100, Wolfram Stering wrote:
quoted
On 11/02/2011 07:41 AM, Beth Flanagan wrote:
quoted
From: Elizabeth Flanagan <redacted>
tmpfs/encryptfs/ramfs have no entry in /proc/diskstats. This modifies
buildstats to not collect diskio statistics when we encounter a case where
the os.major/os.minor is not represented with an entry in /proc/diskstats.
A similar issue exists for building on a btrfs partition.
I posted a message on Oct 28 concerning buildstats on btrfs volumes.
The problem there is, that btrfs's stat() reports fake device ids that
cannot be found in /proc/diskstats.
Did this patch help address that problem for you too?
I'll be able to check that tomorrow and report back.
It should as the patch will just disable diskio collection if it
cannot find a valid device id in /proc/diskstats. Let me know if it
doesn't and I'll rework it and resubmit.
Related question: what do you use to visualize the buildstats? I heard rumours about getting bootchart to support our format natively, is that the case? I will be needing pretty graphics for a report on the oe-core buildflow in a few weeks :)
regards,
Koen,
There is a patch to pybootchartgui that allows visualization. RP has
the patchset IIRC. I'm going to be working on buildstats
visualization soon and I'm leaning towards using jquery/flot to create
a way to allow end users to generate via browser some comparative
graphing of buildstats against different builds/statistics. This way I
can set it up for the AB to compare all the builds we're doing there
and end users can just use it through a browser either locally or via
a server.
-b