- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- Re: 'su' is too slow
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2004 05:27 PM
тАО11-15-2004 05:27 PM
'su' is too slow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2004 06:27 PM
тАО11-15-2004 06:27 PM
Re: 'su' is too slow
If that's the case, check the script to see what it is doing.
You could also check with "ps" from another terminal to see what's going on, e.g. has "su" already started a shell. Determine that which is the "hung" process. If you know that, you could make a stack trace of the process to see what it is doing, e.g.:
dbx -k /vmunix /dev/mem
(dbx) set $pid=
(dbx) t
(dbx) quit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2004 06:52 PM
тАО11-15-2004 06:52 PM
Re: 'su' is too slow
increase the swap space.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2004 07:05 PM
тАО11-15-2004 07:05 PM
Re: 'su' is too slow
USER PID %CPU %MEM VSZ RSS TTY S STARTED TIME COMMAND
oracle 888012 25.9 0.0 2.45M 320K pts/6 R + 15:52:39 0:01.19 -ksh (ks
h)
The %CPU is 25.9.
When 'su - oracle' complete,and the prompt appears,I use 'ps auxwww' again:
USER PID %CPU %MEM VSZ RSS TTY S STARTED TIME COMMAND
oracle 888012 0.0 0.0 2.48M 352K pts/6 S + 15:52:39 0:01.19 -ksh (ks
h)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-16-2004 03:10 AM
тАО11-16-2004 03:10 AM
Re: 'su' is too slow
Possible profiles depending on the shell could be:
$HOME/.profile
$HOME/.kshrc
$HOME/.cshrc
$HOME/.login
and so on...
Erich.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-16-2004 06:48 PM
тАО11-16-2004 06:48 PM
Re: 'su' is too slow
I use dbx when the 'su - oracle' hangs:
#dbx -k /vmunix /dev/mem
dbx version 5.1
Type 'help' for help.
stopped at [thread_block:3230 ,0xfffffc00002eb200] Source not available
warning: Files compiled -g3: parameter values probably wrong
(dbx) set $pid=899974
(dbx) t
> 0 thread_block() ["../../../../src/kernel/kern/sched_prim.c":3230, 0xfffffc0]
(dbx) quit
What does it mean?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-16-2004 07:20 PM
тАО11-16-2004 07:20 PM
Re: 'su' is too slow
could you post .profile?
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-16-2004 07:41 PM
тАО11-16-2004 07:41 PM
Re: 'su' is too slow
ps -f
set -x
This will trace the .profile statements and processes to stdout and send the output too.
Erich.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-16-2004 07:53 PM
тАО11-16-2004 07:53 PM
Re: 'su' is too slow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2004 12:37 AM
тАО11-17-2004 12:37 AM
Re: 'su' is too slow
If you had, did you notice at which point in the profile it happened, or was it before getting the trace output ?
How can the performance of su depend on oracle:
I have seen you are using a cluster. Is filesystem /oracle served by the same member as /qb (check with cfsmgr command).
Oracle makes the /oracle filesystem busy.
The system starts swapping if running oracle or makes the CPU's busy (check with vmstat - see "cpu" and "pout").
You are using NIS and oracle makes the network busy.
What is su doing (not a complete list):
Checking the calling user and the "called" user against /etc/passwd and /etc/group, reads the file /etc/sia/matrix.conf, reads the file /etc/nsswitch.conf, changing the uid and gid, writing logfiles (f. e. sialog)
spawning the shell (ksh in your case). ksh is executing /etc/profile and $HOME/profile.
Erich.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2004 12:45 PM
тАО11-17-2004 12:45 PM
Re: 'su' is too slow
2.I use vmstat when su from root to oracle and the output of "cpu" is from 0 to 50 and "pout" is 0 all long.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2004 05:43 PM
тАО11-17-2004 05:43 PM