Ubuntu :: Get IO Time From /proc/diskstats?

Oct 28, 2010

I want to know how much time the computer is performing IO read/write during a time interval, so that i can compute the percentage of time spending on IO. I look at /proc/diskstats, and notice that there are these fields:

Field 1 -- # of reads issued
Field 2 -- # of reads merged, field 6 -- # of writes merged
Field 3 -- # of sectors read
Field 4 -- # of milliseconds spent reading

[Code].....

How can this happen? I thought the maximum value of the read and write time should not exceed the total time. Am I doing something wrong? Are there any other methods to get the disk IO time?

View 1 Replies


ADVERTISEMENT

Programming :: Read Time Of /proc/net/tcp6 File

Dec 8, 2010

I am trying to read the /proc/net/tcp6 file of a huge server (chat server) for monitoring the tcp6 connection states.

My server's tcp6 file has more than 26000 lines. For monitoring the server connections, my monitoring tool has to read the /proc/net/tcp6 file quickly in a regular interval (5 secs) and process. Presently it takes minimum 6-7 seconds for reading the whole file.

My tool can able to read the normal file (26,000 lines) less than 1 second, but it is not possible to read the same size of proc file.

I have 2 questions:

1) Why proc file takes more read time than normal file?

2) Is there any way to read the /proc/net/tcp6 file more quickly?

View 2 Replies View Related

Fedora Installation :: An Error Occurred Mounting Device Proc As /proc: Mount Failed

Jul 6, 2010

I've got the F13 LiveCD that I was able to boot and use using the "nomodeset" boot option. From the desktop I'm trying to perform an Install to Hard Drive. I've read the Install from LiveCD post regarding the creation of a /boot partition and a / root partition. I've tried creating them without the LVM group and with. But every time I appempt to install I get...

An error occurred mounting device proc as /proc: mount failed: (9, None). This is a fatal error and the install cannot continue.

Hardware is a Sager 8887 (P4, 3.06HT, 60GB HDD, Radeon 9000 graphics adapter)

View 7 Replies View Related

Ubuntu :: Create /proc/bus/usb In 10.10

Dec 18, 2010

I am trying to use eciadsl in ubuntu 10.10 in order to connect my Prolink H9601 USB ADSL modem(Conexant based) to the internet.eciadsl worked to some extent in ubuntu 9.10 but in ubuntu 10.10 it returns [EciAdsl 1/5] Setting up USB support...

I presume this is because ubuntu 10.10 does not mount USB device filesytem (usbfs) in /proc/bus/usb folder and i can't manually create this folder therefore making it impossible to mount usbfs manually into this folder.

View 3 Replies View Related

Ubuntu Networking :: Permissions For Proc Files?

Jul 30, 2010

i want to change permissions for /proc/sys/net/ipv4/ip_forward and permission denied.when i want to delete it , operation not permitted.i know it is dynamically created file . but i want to chenge its permittion to read-only or delete it

View 2 Replies View Related

Ubuntu :: Change Permissions To Open /proc/1 Thru All/fd At Once?

Jan 11, 2011

How do I change permissions to open /proc/1 thru all/fd at once? In my case, that would be 1 thru 3357

View 5 Replies View Related

Ubuntu Installation :: /proc/sys/vm/vdso_enabled Missing On 10.04 LTS?

Feb 25, 2011

I have a rather ancient build environment where I switch into using chroot. The script looks like this:

Code:
echo 0 > /proc/sys/vm/vdso_enabled
echo 4096 > /proc/sys/vm/mmap_min_addr
chroot `pwd` /usr/bin/env -i
HOME=/root TERM="$TERM" PS1='[CR]u:w$ '

[Code]....

View 1 Replies View Related

Ubuntu :: Getting /proc/mounts Error After Moving To 2.6.32

Mar 9, 2010

I recently installed a newer kernel to get the open source driver for my ATI card, but am now getting the following error between booting and logging in: Warning: unable to find suitable fs in /proc/mounts. Is it mounted? After doing some research I can see it has something to do with apparmor. My questions are:

1. Can I somehow get rid of this error message? Or rather, is there a solution for this problem?
2. If not, as seems to be the case, is my system safe and secure? Will I face any issues by ignoring this error?

View 2 Replies View Related

General :: Difference Between /proc And /sys?

Jun 10, 2010

the difference between /proc and /sys? Also, When enabling public-key authentication using SSH, what file on the remote machine must be modified and how?

View 1 Replies View Related

Ubuntu :: Cat /proc/cpuinfo Displaying Wrong Info

Feb 17, 2010

I recently built a new computer. For CPU, I am using AMD Athlon II X2 @ 2.8GHz... However, when I do cat /proc/cpuinfo, I get the following:

processor : 0
vendor_id : AuthenticAMD
cpu family : 16
model : 6
model name : AMD Athlon(tm) II X2 240 Processor
stepping : 2
cpu MHz : 800.000
cache size : 1024 KB

and same thing for processor: 1 Notice that for cpu MHz, it says 800.000. However, that is not correct... Shouldn't it say 2800? Is this a bug? Am I looking at this wrong?

View 2 Replies View Related

Ubuntu Servers :: Proc Folder Is Filling Up Filesystem?

Mar 1, 2010

My filesystem is almost full and the problem is in the proc folder.What does that folder contain and can I delete something from it?

View 1 Replies View Related

Ubuntu :: Bash: /proc/sys/vm/drop_caches: Permission Denied

Aug 10, 2010

I've been using Digikam and it's a huge blow to my system memory. Even after quitting I still feel my computer to be slightly slower. I tried running the commands from [URL] but I get this instead

bash: /proc/sys/vm/drop_caches: Permission denied

View 4 Replies View Related

Ubuntu :: Initramfs - Fail To Mount /dev, /sys And /proc In /root

Sep 3, 2010

Uploaded with ImageShack.us

Here was I get on my screen.

I don't know why this is happened. But before I rebooted, I could not see any content on Windows like update or shut-down (if I tried to install something and it asked for confirmation, that window was blank. Or before I shut down, I had to push enter, since that windows was blank.)

I don't think I installed anything and computer was working just fine before.

I don't want to reinstall everything again.

View 5 Replies View Related

Ubuntu :: Change Permissions On A File In /proc/sys/fs/inotify?

Sep 16, 2010

Trying to change permissions on a file in /proc/sys/fs/inotify. The command syntax are:

Code:
sudo chmod u+w max_user_watches
and the result is:

Code:
chmod: changing permissions of `max_user_watches': Operation not permitted Also tried to change it when logged in as root, same results. Parent directory permissions are dr-xr-xr-x, and are the same up the chain. Tried to change the directory permissions to u+w, that didn't work either. FWIW, /proc is part of the / partition, and it has ~600MB free space.

View 9 Replies View Related

General :: Change Permission To /proc/net/ip_conntrack On Ubuntu Server 9.10

Mar 28, 2010

I have a script that needs to extract certain information form the /proc/net/ip_conntrack file once in a while. I do not wish to run this script as the root user.

Default permissions for the file is:

I can change it with:

But that does not stick after a reboot. Is there some configuration file for file-permissions in the /proc directory in Ubuntu Server 9.10? Or do I just have to stick a chmod line in some startup script?

View 1 Replies View Related

Ubuntu :: Obtain The User That Owns The Process From /proc/process_id?

May 29, 2010

How can I obtain the user that owns the process from /proc/process_id? Is it the Uid in /proc/process_id/status ? If so why are there 4 values there?

View 2 Replies View Related

Ubuntu :: Remove Mouse Feature In /proc/bus/input/devices

Jan 7, 2011

ubuntu 10.10

I have a remote control (imon --> Harmony) that acts like a mouse. My goal is to remove that feature. Iam using lirc with Linux input layer (/dev/input/eventX) because Imon driver doesn't work at all. To get Linux input layer to work you need to choose the imon device.

Code:
cat /proc/bus/input/devices
Code:
I: Bus=0003 Vendor=15c2 Product=ffdc Version=0000
N: Name="iMON Remote (15c2:ffdc)"
P: Phys=usb-0000:00:12.1-2/input0

[Code].....

View 9 Replies View Related

Debian :: Procbususb Is Already Mounted On / Proc / Bus / Usb

Sep 25, 2010

I'm getting these Message during Lenny startup:
Code:
mount : according to mtab, procbususb is already mounted on /proc/bus/usb failed.What's wrong and howto solve this problem?

View 2 Replies View Related

General :: Duplicate Ids In /proc/locks

Mar 30, 2010

Red Hat Enterprise Linux Server release 5.4 (Tikanga) 2.6.18-164.11.1.el5xen (Xen release for virtualisation)

I'm trying to track down a problem with a utility that used to work and now hangs indefinitely. Since its hanging, I suspected a locking problem, and went to have a look for the process ids in /proc/locks; I get:

148: FLOCK ADVISORY WRITE 30279 ca:21:49153 0 EOF
148: -> FLOCK ADVISORY READ 30282 ca:21:49153 0 EOF

Now as near as I can tell this shouldn't be my problem, since the two ADVISORY locks - one READ and one WRITE - shouldn't conflict with one another. But I'd like to understand it all the same. I haven't been able to find any kind of definitive guide for the format of /proc/locks entries, but what I did find in the manuals specifically states:

"Each lock has its own line which starts with a unique number. "

Which is obviously not true; both of my lines start with the same number. Also, since most search engines don't seem to play nicely with symbols, I can't find any reference to what the "->" means.

View 3 Replies View Related

General :: How To CPU Usage Of Process From / Proc?

Jul 15, 2011

I am currently writing a JAVA script to monitor certain unix processes through JConsole. Upon having lots of trouble with runtime.exec, i decided to bypass the top/ps command call and just get the information straight from /proc/*pid*/whatever.Now i can pull back any information from any of the files I want, and the current way i determine the CPU usage of a process is as follows:

Add the UTime and STime of that process from /proc/pid/stat then divide my pidCpu by UTime + STime + NTime from /proc/stat, then multiply that by 100, should give me the % cpu usage a process is using, right?Theory being if I get the jiffies assigned to my process, I can divide that by the total jiffies the cpu assigns. However, my results seem to vary from the ones gathered from top and ps. What am I doing wrong?

View 3 Replies View Related

General :: How To Remove /proc/sys/fs/binfmt_misc

Aug 8, 2010

unknow filesystem in my computer./proc/sys/fs/binfmt_miscPlease help me for remove this filesystem.How i do remove this filesystem?OS : ubuntu 10.04

View 2 Replies View Related

Ubuntu :: New User Crash Boot Up - Missing Modules (cat/proc/madules;is/dev)

Jan 5, 2011

new user and have had a crash boot up and get the following: missing modules (cat/proc/madules;is/dev) Alert! /dev/disk/by-uuid/13bf007d-3bab-48et-b91a-babe68ab3223 does not exist

View 9 Replies View Related

Ubuntu :: /etc/mtab And /proc/mounts Do Not Show Tune2fs Mount Option

May 23, 2011

I just discovered that you can automount an ext4 filesystem with acl enabled by running "tune2fs -o acl". (I knew about tune2fs but did not dare to use it until now). However, the acl mount option does not show up in /etc/mtab and /proc/mounts. Can I ignore this, or is there a way of telling the system about the actual mount options?

Edit: I can do "tune2fs -l <device> | grep acl | awk '{print $4}'" and if that isn't empty I can update /etc/mtab with "mount -f -o remount,acl <device>", but like the udev rule I previously messed with this seems lumberingly unelegant to me.

View 2 Replies View Related

Debian :: Grep Stops At /proc/kcore?

Jun 22, 2010

I want to know what's going on here. I'm used to find files in my Debian box usingfind / -type f -print0 | xargs -0 grep -l "foo"but it's been a while since this type of search simply stops at the /proc/kcore directory. I know it has something to do with memory. Is this normal?

View 1 Replies View Related

General :: Alternative To /proc/bus/usb/devices For Use In A Terminal?

Aug 24, 2011

/proc/bus/usb/devices should not be used anymore (and can't be mounted anymore on Ubuntu 11.04) But what is an alternative to it, for use in a terminal? I could easily grep that output to look for a certain device, but I'm lost in all the /sys/ entries...

View 1 Replies View Related

General :: Determine Socket From /proc/cpuinfo?

Jan 13, 2010

Is there a simple way to determine the CPU socket from the output of /proc/cpuinfo. Determining the type of processor is simple enough, but the processor I have (Celeron) has two different possible sockets. The output of /proc/cpuinfo is:

processor : 0
vendor_id : GenuineIntel
cpu family : 15

[Code]...

I've looked on the Intel processor finder web site with appropriate filters, but the stepping values do not appear to match anything.

View 1 Replies View Related

Networking :: Record Tx/Rx Bw In A Program - Without Using Tools From /proc/net/

Feb 22, 2011

I need to record Tx/Rx bw in my c program at defined intervals. I am aware that there a bunch of available tools but I need a minimal version with only Tx/Rx bw with no other details. I have tried the tool bwm-ng which mostly serves my purpose but either it runs continuously in the console or saves result in html file. It does not have any options to save the result in txt file which could have been easy to parse.

Is there any other simple way to record Tx/Rx bw in a program?(without using tools from /proc/net/ or any) I am using Mandriva Linux 2.6.31.5.

View 2 Replies View Related

Programming :: Way To Make Proc Filesystem Writable?

Jul 22, 2010

is there a way to make the /proc filesystem writeable? With aufs or unionfs i can't join the /proc filesystem with a writable directory directly. But i think it should work by using one of this file systems.If i try to join two dirs write-proc and virtual-proc Code: mount -v -t aufs -o dirs=/tmp/write-proc/:/tmp/virtual-proc/ none /tmp/joined-proc/ and afterwards make a bind mount /proc to virtual-proc Code: mount --bind /proc /tmp/virtual-proc/ i can't see any change in /tmp/joined-proc.

View 2 Replies View Related

General :: Interpretation Of /proc/pid/sched Output?

Jan 6, 2011

in understanding the output of /proc/pid/shed

se.exec_start : 0.000000
se.vruntime : 26974.800748
se.sum_exec_runtime : 198.280320

[code]...

View 1 Replies View Related

Networking :: Scripts Does Not Match Ifconfig Or /proc/net

Dec 16, 2010

Bugzilla # 224662 & 9
Red Hat 5.2

a) /etc/sysconfig/network-scripts displays only eth0 and lo0. However, /proc/net/dev and ifconfig INCORRECTLY display :

[Code]....

b) the _tmp NIC is reported in the above Bugzilla report and I'm looking for a patch.

c) Why is the kernel continuing to make NICS for eth1, 2 and sit0?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved