Shannon Fiume
2006-Feb-28 23:18 UTC
[dtrace-discuss] checking resource tunings for a global zone
Hi, How can I use dtrace to check how resources are or aren''t assigned values? I''ve set some resource controls in /etc/project added via projadd, but some of the settings are not being set. What''s weird is that I ran the same commands a few weeks ago, and it set the paramaters just fine. I then removed them since I was just testing. Now after adding them today, process.max-msg-messages isn''t updated with the new settings. What providers should I look at with dtrace to see why the settings aren''t takeing affect? I''m specifically looking at process.max-msg-messages, process.max-msg-qbytes, and project.max-shm-memory on solaris 10 u1. Or is this something I should hunt down with mdb? Thanks in advance, ~~sa This message posted from opensolaris.org
Jonathan Adams
2006-Feb-28 23:24 UTC
[dtrace-discuss] checking resource tunings for a global zone
On Tue, Feb 28, 2006 at 03:18:25PM -0800, Shannon Fiume wrote:> Hi,> How can I use dtrace to check how resources are or aren''t assigned > values? I''ve set some resource controls in /etc/project added > via projadd, but some of the settings are not being set. What''s > weird is that I ran the same commands a few weeks ago, and it set > the paramaters just fine. I then removed them since I was just > testing. Now after adding them today, process.max-msg-messages isn''t > updated with the new settings.Are you either logging out and back in, or starting a new task using newtask -p project? If not, what does: % newtask -p project sleep 100 & % prctl $\! output? Cheers, - jonathan -- Jonathan Adams, Solaris Kernel Development
Shannon Fiume
2006-Feb-28 23:43 UTC
[dtrace-discuss] checking resource tunings for a global zone
I''m doing this the lazy way, as in setting the project resources to my user, and rebooting. I''ll try that... huh, imagine that, newtask worked just fine. placer% newtask -p user.test sleep 100 & [1] 998 and placer% prctl 998 process: 998: sleep 100 NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT process.max-port-events privileged 65.5K - deny - system 2.15G max deny - process.max-msg-messages privileged 64.0K - deny - system 4.29G max deny - process.max-msg-qbytes privileged 64.0KB - deny - system 4.00GB max deny - ... But why can''t I get the new setting on just any process by my user? (Or for this forum, what tools can I use in dtrace to debug this?) placer% [1] + Done newtask -p user.test sleep 100 placer% prctl $$ process: 913: -csh NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT ... process.max-msg-messages privileged 8.19K - deny - system 4.29G max deny - process.max-msg-qbytes privileged 64.0KB - deny - system 4.00GB max deny - ... And here''s the line in /etc/project user.test:115::myuser::process.max-msg-messages=(priv,64000,deny);process.max-msg-qbytes=(pr iv,65536,deny) Thanks, ~~sa ----- Original Message ----- From: Jonathan Adams <Jonathan.Adams at Sun.COM> Date: Tuesday, February 28, 2006 3:24 pm Subject: Re: [dtrace-discuss] checking resource tunings for a global zone> On Tue, Feb 28, 2006 at 03:18:25PM -0800, Shannon Fiume wrote: > > Hi, > > > How can I use dtrace to check how resources are or aren''t assigned > > values? I''ve set some resource controls in /etc/project added > > via projadd, but some of the settings are not being set. What''s > > weird is that I ran the same commands a few weeks ago, and it set > > the paramaters just fine. I then removed them since I was just > > testing. Now after adding them today, process.max-msg-messages isn''t > > updated with the new settings. > > Are you either logging out and back in, or starting a new task using > newtask -p project? If not, what does: > > % newtask -p project sleep 100 & > % prctl $\! > > output? > > Cheers, > - jonathan > > -- > Jonathan Adams, Solaris Kernel Development >
Jonathan Adams
2006-Feb-28 23:47 UTC
[dtrace-discuss] checking resource tunings for a global zone
On Tue, Feb 28, 2006 at 03:43:42PM -0800, Shannon Fiume wrote:> I''m doing this the lazy way, as in setting the project resources to my user, and rebooting. > > I''ll try that... huh, imagine that, newtask worked just fine.Are you sure you''re getting assigned the appropriate project? When logged in as test, what does: ps -o project -p $$ output? - jonathan> But why can''t I get the new setting on just any process by my > user? (Or for this forum, what tools can I use in dtrace to debug > this?)Since this looks like more of a setup problem than a dynamic problem, dtrace isn''t necessarily your best bet. Cheers, - jonathan> ----- Original Message ----- > From: Jonathan Adams <Jonathan.Adams at Sun.COM> > Date: Tuesday, February 28, 2006 3:24 pm > Subject: Re: [dtrace-discuss] checking resource tunings for a global zone > > > On Tue, Feb 28, 2006 at 03:18:25PM -0800, Shannon Fiume wrote: > > > Hi, > > > > > How can I use dtrace to check how resources are or aren''t assigned > > > values? I''ve set some resource controls in /etc/project added > > > via projadd, but some of the settings are not being set. What''s > > > weird is that I ran the same commands a few weeks ago, and it set > > > the paramaters just fine. I then removed them since I was just > > > testing. Now after adding them today, process.max-msg-messages isn''t > > > updated with the new settings. > > > > Are you either logging out and back in, or starting a new task using > > newtask -p project? If not, what does: > > > > % newtask -p project sleep 100 & > > % prctl $\! > > > > output? > > > > Cheers, > > - jonathan > > > > -- > > Jonathan Adams, Solaris Kernel Development > >-- Jonathan Adams, Solaris Kernel Development
Shannon Fiume
2006-Mar-01 00:06 UTC
[dtrace-discuss] checking resource tunings for a global zone
Yes, my user is also apart of the group staff which has no settings defined before my custom entry. I remember now, when I was testing the settings I had my own project where I removed the settings for group.staff. placer% ps -o project -p $$ PROJECT group.staff Sorry for the post. Thanks, ~~sa ----- Original Message ----- From: Jonathan Adams <Jonathan.Adams at Sun.COM> Date: Tuesday, February 28, 2006 3:47 pm Subject: Re: [dtrace-discuss] checking resource tunings for a global zone> On Tue, Feb 28, 2006 at 03:43:42PM -0800, Shannon Fiume wrote: > > I''m doing this the lazy way, as in setting the project resources > to my user, and rebooting. > > > > I''ll try that... huh, imagine that, newtask worked just fine. > > Are you sure you''re getting assigned the appropriate project? When > loggedin as test, what does: > > ps -o project -p $$ > > output? > > - jonathan > > > But why can''t I get the new setting on just any process by my > > user? (Or for this forum, what tools can I use in dtrace to debug > > this?) > > Since this looks like more of a setup problem than a dynamic > problem, dtrace > isn''t necessarily your best bet. > > Cheers, > - jonathan > > > ----- Original Message ----- > > From: Jonathan Adams <Jonathan.Adams at Sun.COM> > > Date: Tuesday, February 28, 2006 3:24 pm > > Subject: Re: [dtrace-discuss] checking resource tunings for a > global zone > > > > > On Tue, Feb 28, 2006 at 03:18:25PM -0800, Shannon Fiume wrote: > > > > Hi, > > > > > > > How can I use dtrace to check how resources are or aren''t > assigned> > > values? I''ve set some resource controls in > /etc/project added > > > > via projadd, but some of the settings are not being set. What''s > > > > weird is that I ran the same commands a few weeks ago, and it > set> > > the paramaters just fine. I then removed them since I was > just> > > testing. Now after adding them today, process.max-msg- > messages isn''t > > > > updated with the new settings. > > > > > > Are you either logging out and back in, or starting a new task > using> > newtask -p project? If not, what does: > > > > > > % newtask -p project sleep 100 & > > > % prctl $\! > > > > > > output? > > > > > > Cheers, > > > - jonathan > > > > > > -- > > > Jonathan Adams, Solaris Kernel Development > > > > > -- > Jonathan Adams, Solaris Kernel Development >