Solaris 10: openssh not under project resource management?

From: Lee, Raymond (Raymond.Lee@qwest.com)
Date: Tue Jul 24 2007 - 11:21:47 EDT


I'm running Solaris 10, and openssh seems to be impervious to project
resource management. Here's what I have:

------------------------------------------------------------------------
-------

{oraserver}# uname -a
SunOS arl-fratm-stats 5.10 Generic_125100-10 sun4u sparc
SUNW,Sun-Fire-V445
{oraserver}# cat /etc/release
                       Solaris 10 11/06 s10s_u3wos_10 SPARC
           Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
                        Use is subject to license terms.
                           Assembled 14 November 2006
{oraserver}# projadd user.oracle
{oraserver}# projmod -s -K "project.max-sem-ids=(priv,100,deny)"
user.oracle
{oraserver}# projmod -s -K "process.max-sem-nsems=(priv,256,deny)"
user.oracle
{oraserver}# projmod -s -K "project.max-shm-memory=(priv,4gb,deny)"
user.oracle
{oraserver}# projmod -s -K "project.max-shm-ids=(priv,100,deny)"
user.oracle

{oraserver}# svcadm disable svc:/network/ssh:default
{oraserver}# /etc/rc3.d/S89sshd start
{oraserver}# ps -ef | grep sshd
    root 12400 1 0 11:08:55 ? 0:00 /usr/local/sbin/sshd

{oraserver}# /usr/local/bin/ssh -V
OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007

{oraserver}# svcs | grep ssh
legacy_run Jul_20 lrc:/etc/rc3_d/S89sshd

------------------------------------------------------------------------
-------

Then when I ssh into the box as the oracle user and do a prstat -J, I
don't see the user.oracle project. To get the user.oracle project to
show up, I have to do 'su - oracle' or 'login oracle'.

------------------------------------------------------------------------
-------

{remotebox}# ssh oracle@oraserver

{oraserver}# prstat -J
--- <snip> ---
PROJID NPROC SIZE RSS MEMORY TIME CPU PROJECT

     0 45 598M 348M 4.3% 0:27:46 0.1% system

     1 9 41M 19M 0.2% 0:00:00 0.0% user.root

     3 7 13M 9824K 0.1% 0:00:05 0.0% default

{oracle@oraserver}$ su - oracle

{oraserver}# prstat -J
--- <snip> ---
PROJID NPROC SIZE RSS MEMORY TIME CPU PROJECT

     0 45 598M 348M 4.3% 0:27:46 0.0% system

     1 9 41M 19M 0.2% 0:00:00 0.0% user.root

   100 1 1448K 1144K 0.0% 0:00:00 0.0% user.oracle

     3 7 13M 9824K 0.1% 0:00:05 0.0% default

------------------------------------------------------------------------
-------

However, if I stop openssh and use Sun's ssh instead, the user.oracle
project shows up in prstat right after I ssh into the box as the oracle
user:

------------------------------------------------------------------------
-------

{oraserver}# /etc/rc3.d/S89sshd stop
{oraserver}# svcadm enable svc:/network/ssh:default
{oraserver}# ps -ef|grep sshd
    root 12413 1 0 11:10:18 ? 0:00 /usr/lib/ssh/sshd

{remotebox}# ssh oracle@oraserver

{oraserver}# prstat -J
--- <snip> ---
PROJID NPROC SIZE RSS MEMORY TIME CPU PROJECT

     0 46 602M 350M 4.3% 0:27:55 0.2% system

   100 4 23M 12M 0.1% 0:00:00 0.1% user.oracle

     3 7 13M 9824K 0.1% 0:00:05 0.0% default

------------------------------------------------------------------------
-------

So my question is, is this a bug? If not, then how do I get openssh
under project resource management?

Thanks,
Ray

This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly
prohibited and may be unlawful. If you have received this communication
in error, please immediately notify the sender by reply e-mail and destroy
all copies of the communication and any attachments.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:42:09 EDT