LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-02-2013, 06:16 AM   #16
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513

One thing I ran across in googling was that csh v 6.17 was actually a symbolic link to tcsh.

http://comments.gmane.org/gmane.linu...ase.rhel6/1525

which indicates that csh isn't handling exit codes properly (bug #784510). This could cause tcsh to process things it shouldn't.

Last edited by jpollard; 08-02-2013 at 06:17 AM. Reason: typo
 
Old 08-02-2013, 07:45 AM   #17
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
csh probably somewhere has an unsleeping loop that waits for a condition or an event. You can try building and installing a new version of it (csh or tcsh) but make sure it doesn't break your system.

Last edited by konsolebox; 08-02-2013 at 07:47 AM. Reason: a condition or
 
Old 08-02-2013, 09:10 AM   #18
Silvanlinux
LQ Newbie
 
Registered: Jul 2013
Posts: 14

Original Poster
Rep: Reputation: Disabled
I am currently trying to find the error in the scripts. What I am doing is, I am printing timestamps into a log file which then gives me clues which script does eat up so much CPU (and taking 10 seconds for it).

**** code im inserting into various scripts
echo "`date` begin .cshrc" <</tmp/test.log

The output tells me that the following after having logged in at 15:22:25

Fri Aug 2 15:22:25 CEST 2013 begin etc/csh.login
Fri Aug 2 15:22:25 CEST 2013 end etc/csh.login
Fri Aug 2 15:22:25 CEST 2013 begin.cshrc
Fri Aug 2 15:22:25 CEST 2013 end.cshrc

-> this means that the script that has problems is executed after .cshrc

I have tried to google for "linux user login scripts" but had little luck, can anyone tell me which scripts are called after .cshrc??
 
Old 08-02-2013, 09:15 AM   #19
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
There can be a .tcshrc... which includes .cshrc

It is also possible, though unlikely, that something is running in the background.

Last edited by jpollard; 08-02-2013 at 09:16 AM.
 
Old 08-02-2013, 09:20 AM   #20
Silvanlinux
LQ Newbie
 
Registered: Jul 2013
Posts: 14

Original Poster
Rep: Reputation: Disabled
The .tcshrc file only includes the following:

[root@lin133 ~]# locate .tcshrc
/root/.tcshrc
[root@lin133 ~]# cat /root/.tcshrc
# .tcshrc

# User specific aliases and functions

alias rm 'rm -i'
alias cp 'cp -i'
alias mv 'mv -i'

set prompt='[%n@%m %c]# '
 
Old 08-02-2013, 10:29 AM   #21
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
If it's not in the scripts then it could be csh itself like how I described it earlier.
 
Old 08-05-2013, 02:19 AM   #22
Silvanlinux
LQ Newbie
 
Registered: Jul 2013
Posts: 14

Original Poster
Rep: Reputation: Disabled
Ok. Before I try to "reinstall" csh, do you know which scripts run after .cshrc (in the home directory) when a user logs in?
 
Old 08-05-2013, 02:52 AM   #23
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
I don't know much about csh sorry. But I think it's well detailed in the Startup and Shutdown section of tcsh's manual.
 
Old 08-05-2013, 03:03 AM   #24
Silvanlinux
LQ Newbie
 
Registered: Jul 2013
Posts: 14

Original Poster
Rep: Reputation: Disabled
So clearing the history file did it. Now the login works quick and cpu is at 1.7%.
I figure the history file was huge. I wonder why that is not the case on my other server that is still running centos 5.5
I have checked in bashrc in both servers and there is no comment that would limit the history file size.
 
Old 08-05-2013, 03:37 AM   #25
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
Well good thing you found the solution already. Please mark the thread as solved.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
does high CPU load suggest any problem with the CPU? newbiesforever Linux - General 4 08-02-2013 10:40 AM
[SOLVED] High CPU load, but low CPU usage (high idle CPU) baffy Linux - Newbie 5 03-13-2013 09:24 AM
apache high cpu load on high traffic awww Linux - Newbie 9 10-04-2011 02:22 PM
High load and high cpu kernel usage enid Linux - Server 8 09-30-2010 03:33 AM
high cpu usage in my linux server dinakumar12 Linux - Server 10 08-06-2010 08:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration