mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Shane Shrybman <shrybman@sympatico.ca>
To: linux-kernel <linux-kernel@vger.kernel.org>
Subject: 2.6.0-test3-mm1 interactivity feedback and script
Date: 10 Aug 2003 11:56:56 -0400	[thread overview]
Message-ID: <1060531015.7233.12.camel@mars.goatskin.org> (raw)

Hi,

I took WLI's suggestion and put together a little script that attempts
to gather some pertinent stats, (profile, vmstat, top), regarding
interactivity of the system.

I did a quick run that consists of refreshing a fat web page in mozilla
while playing a movie with mplayer. The movie still stutters slightly
during this test.

The results of the ten second run are here:

http://zeke.yi.org/linux/2.6.0-test3-mm1-prof/

And the script used was this:

#!/bin/sh

# Linux interactivity profiler script
# requires profile=2 (or 1?) as a kernel boot param
# Script takes optional number of iterations
# param., default is 10 iterations

# reset the profiler
readprofile -r

KERN=$(uname -r)
OUT_DIR=/root/profs

[ -w ${OUT_DIR} ] || OUT_DIR=$(pwd)

if [ -z $1 ]; then
        ITS=10
else
        ITS=$1
fi

# Collect vmstat output
vmstat 1 ${ITS}|cat -n > ${OUT_DIR}/${KERN}-vmstat &

# Collect top output
top b d1 n${ITS} > ${OUT_DIR}/${KERN}-top &

n=1
# Collect profile
while [ ${n} -le ${ITS} ]; do

        readprofile -n -m /boot/System.map-${KERN} \
        | sort -nr -k 3,3 > ${OUT_DIR}/${KERN}-prof.${n}

        n=$(( ${n} + 1 ))

        sleep 1
done

And is available here:

http://zeke.yi.org/linux/prof3

Regards,

Shane


                 reply	other threads:[~2003-08-10 15:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1060531015.7233.12.camel@mars.goatskin.org \
    --to=shrybman@sympatico.ca \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®