Re: PID 11 using 400% CPU

2011-07-05 Thread Manish Jain

   Hello Dan,
   I was having multiple problems with my x86 installation, apart from
   the disc spinning continuously. Despite tuning many sysctl parameters,
   X clients would not open for non-root users ("max number of clients
   reached"); for root, they would open, but after about 30 minutes of
   playing xboard (gnuchess), the computer would simply shut down
   (without even a proper shut down sequence; worse that DOS BSOD - power
   off in a flash); while up, the speed and performance of the system was
   abysmal.
   I therefore yesterday downloaded the iso for amd64, which is the
   architecture of my system. I am going to install it and try it out
   over the weekend. Hope things will be better this time around.
   Thanks for all your suggestions and advice though.
   Regards
   Manish Jain
   [1]invalid.poin...@gmail.com
   On 05-Jul-11 19:50, Dan Nelson wrote:

In the last episode (Jul 05), manish jain said:

On 30 June 2011 10:26, Dan Nelson [2] wrote:

In the last episode (Jun 30), Manish Jain said:

   I have a strange problem with my 8.1 box. After booting, the hard
   disk goes into a full-speed never-ending spin.

To see what disk I/O is being done, try running "ktrace -dip 0 ; sleep
10 ; ktrace -C", to capture all syscalls done on the entire system (pid
0 plus children) for 10 seconds, then run "kdump -m64 | less" to view
the results.  Look for read or write calls.

It looks like ppp is doing a lot of read and write operations, which keeps
the disk spinning.  How do I set this right ?  Is there something wrong
with my ppp.conf (see below) ?

I bet that if you ran fstat or lsof on the ppp process, all the writes are
actually to your serial device or a tun device, not to disk.  ppp is
unlikely to cause much disk I/O.  You'll have to filter out the ppp process
and check your kdump output again.

References

   1. mailto:invalid.poin...@gmail.com
   2. mailto:dnel...@allantgroup.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: PID 11 using 400% CPU

2011-07-05 Thread Dan Nelson
In the last episode (Jul 05), manish jain said:
> On 30 June 2011 10:26, Dan Nelson  wrote:
> > In the last episode (Jun 30), Manish Jain said:
> > >
> > >I have a strange problem with my 8.1 box. After booting, the hard
> > >disk goes into a full-speed never-ending spin.
> >
> > To see what disk I/O is being done, try running "ktrace -dip 0 ; sleep
> > 10 ; ktrace -C", to capture all syscalls done on the entire system (pid
> > 0 plus children) for 10 seconds, then run "kdump -m64 | less" to view
> > the results.  Look for read or write calls.
>
> It looks like ppp is doing a lot of read and write operations, which keeps
> the disk spinning.  How do I set this right ?  Is there something wrong
> with my ppp.conf (see below) ?

I bet that if you ran fstat or lsof on the ppp process, all the writes are
actually to your serial device or a tun device, not to disk.  ppp is
unlikely to cause much disk I/O.  You'll have to filter out the ppp process
and check your kdump output again.

-- 
Dan Nelson
dnel...@allantgroup.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: PID 11 using 400% CPU

2011-07-05 Thread C. P. Ghost
On Tue, Jul 5, 2011 at 6:27 AM, manish jain  wrote:
> Hello Dan,
>
> It looks like ppp is doing a lot of read and write operations, which keeps
> the disk spinning. How do I set this right ? Is there something wrong with
> my ppp.conf (see below) ?
>
> ppp.conf :
>
> default:
>  set log Phase Chat LCP IPCP CCP tun command

Maybe reduce the amount of logging? But look at the logs
before turning logging off: maybe there's something wrong
with your setup, perhaps you have a flaky line etc...?

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: PID 11 using 400% CPU

2011-07-04 Thread manish jain
Hello Dan,

It looks like ppp is doing a lot of read and write operations, which keeps
the disk spinning. How do I set this right ? Is there something wrong with
my ppp.conf (see below) ?

ppp.conf :

default:
 set log Phase Chat LCP IPCP CCP tun command
 allow users bourne
# ident user-ppp VERSION (built COMPILATIONDATE)
 set device /dev/cuaU0.0
 set speed 115200
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
 \"\" AT OK-AT-OK AT&FE0V1X1&D2&C1S0=0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
 set timeout 180 # 3 minute idle timer (the default)
 enable dns # request DNS info (for resolv.conf)

huawei:
 set phone "#777"
 set login
 set authname "internet"
 set authkey ""
 set timeout 180
 disable ipv6cp
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 add default HISADDR
 accept CHAP


On 30 June 2011 10:26, Dan Nelson  wrote:

> In the last episode (Jun 30), Manish Jain said:
> >
> >Hello All,
> >I have a strange problem with my 8.1 box. After booting, the hard disk
> >goes into a full-speed never-ending spin.
>
> To see what disk I/O is being done, try running "ktrace -dip 0 ; sleep 10 ;
> ktrace -C", to capture all syscalls done on the entire system (pid 0 plus
> children) for 10 seconds, then run "kdump -m64 | less" to view the results.
> Look for read or write calls.
>
> > 'ps waux' always shows pid
> >11 as taking 400% CPU utilization :
> >/root # ps -up 11
> >USER   PID %CPU %MEM   VSZ   RSS  TT  STAT STARTED  TIME COMMAND
> >root11 400.0  0.0 032  ??  RL7:22PM 166:35.46 [idle]
> >I have tried multiple tweaks to resolve this - all to no effect. The
>
> As for this, what's to resolve?  The idle process is a placeholder with one
> thread per CPU that accounts for time the CPU isn't doing any work.  If you
> want to reduce it's "CPU use", run other CPU-intensive processes :)  BTW,
> Windows has the same thing if you look at task manager; it's called "System
> Idle Process" there.
>
> --
>Dan Nelson
>dnel...@allantgroup.com
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: PID 11 using 400% CPU

2011-06-29 Thread Dan Nelson
In the last episode (Jun 30), Manish Jain said:
> 
>Hello All,
>I have a strange problem with my 8.1 box. After booting, the hard disk
>goes into a full-speed never-ending spin. 

To see what disk I/O is being done, try running "ktrace -dip 0 ; sleep 10 ;
ktrace -C", to capture all syscalls done on the entire system (pid 0 plus
children) for 10 seconds, then run "kdump -m64 | less" to view the results. 
Look for read or write calls.

> 'ps waux' always shows pid
>11 as taking 400% CPU utilization :
>/root # ps -up 11
>USER   PID %CPU %MEM   VSZ   RSS  TT  STAT STARTED  TIME COMMAND
>root11 400.0  0.0 032  ??  RL7:22PM 166:35.46 [idle]
>I have tried multiple tweaks to resolve this - all to no effect. The

As for this, what's to resolve?  The idle process is a placeholder with one
thread per CPU that accounts for time the CPU isn't doing any work.  If you
want to reduce it's "CPU use", run other CPU-intensive processes :)  BTW,
Windows has the same thing if you look at task manager; it's called "System
Idle Process" there.

-- 
Dan Nelson
dnel...@allantgroup.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: PID 11 using 400% CPU

2011-06-29 Thread Robert Bonomi
> From owner-freebsd-questi...@freebsd.org  Wed Jun 29 23:07:59 2011
> Date: Thu, 30 Jun 2011 09:37:11 +0530
> From: Manish Jain 
> To: freebsd-questions@freebsd.org
> Subject: PID 11 using 400% CPU
>
>
>Hello All,
>I have a strange problem with my 8.1 box. After booting, the hard disk
>goes into a full-speed never-ending spin. 'ps waux' always shows pid
>11 as taking 400% CPU utilization :
>/root # ps -up 11
>USER   PID %CPU %MEM   VSZ   RSS  TT  STAT STARTED  TIME COMMAND
>root11 400.0  0.0 032  ??  RL7:22PM 166:35.46 [idle]
>I have tried multiple tweaks to resolve this - all to no effect. The
>only thing that seems out of place is that polkitd seems to be
>missing. (I have no idea why this is the case). /etc/rc.conf states
>polkitd_enable="YES".
>This happens even in single-user mode, which I used to try to fix any
>filesystem errors with 'fsck -fy' : there were none.
>My system has only 2 partitions : ad8s2a (/) and ad8s2b (swap).
>Any pointers to what might the problem be ? Thanks in advance.

The problem is that you have twin dual-core CPUs or a single 4-core CPU.
The solution is to substitute a single single-core CPU.

This will bring the _system_idle_process_ utilization down to 100% when the 
system is _not_ doing anything else.

OR, you can compile the following C program:


  #include 
  int main( int argc, char** argv)
  {
 while (1);
 exit(0);
  }

and run, say, 8 copies of it in background.  this will reduce the cpu
utilization of PID 11 to roughly 0%.

The fact that the disk is running is absolutely normal.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


PID 11 using 400% CPU

2011-06-29 Thread Manish Jain

   Hello All,
   I have a strange problem with my 8.1 box. After booting, the hard disk
   goes into a full-speed never-ending spin. 'ps waux' always shows pid
   11 as taking 400% CPU utilization :
   /root # ps -up 11
   USER   PID %CPU %MEM   VSZ   RSS  TT  STAT STARTED  TIME COMMAND
   root11 400.0  0.0 032  ??  RL7:22PM 166:35.46 [idle]
   I have tried multiple tweaks to resolve this - all to no effect. The
   only thing that seems out of place is that polkitd seems to be
   missing. (I have no idea why this is the case). /etc/rc.conf states
   polkitd_enable="YES".
   This happens even in single-user mode, which I used to try to fix any
   filesystem errors with 'fsck -fy' : there were none.
   My system has only 2 partitions : ad8s2a (/) and ad8s2b (swap).
   Any pointers to what might the problem be ? Thanks in advance.
   Regards
   Manish Jain
   [1]invalid.poin...@gmail.com

References

   1. mailto:invalid.poin...@gmail.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"