Getrct(): resource control value sequence (use of RCTL_FIRST and RCTL_NEXT)
% uname -a
SunOS snt5010 5.10 Generic_127111-11 sun4v sparc SUNW,SPARC-Enterprise-T5220
From Sun Documentation:
The getrctl() function provides a mechanism for iterating through all*
of the established values on a resource control. The iteration is
primed by calling getrctl() with old_blk set to NULL, a valid resource
control block pointer in new_blk, and specifying RCTL_FIRST in the
flags argument. Once a resource control block has been obtained,
repeated calls to getrctl() with RCTL_NEXT in the flags argument and
the obtained control in the old_blk argument will return the next
resource control block in the sequence. The iteration reports the end
of the sequence by failing and setting errno to ENOENT.
My question is concerning "all of the established values on a resource control".
Why not "*_the only value_ of a resource control*"? Why several?
For instance, there may be several values for project.max-shm-memory.
What does that mean? Which value should one use (if they are different)?
Alex Vinokur
Edited by: Alex-Vinokur on Nov 18, 2008 9:25 PM
% uname -a
SunOS snt5010 5.10 Generic_127111-11 sun4v sparc SUNW,SPARC-Enterprise-T5220
From Sun Documentation:
The getrctl() function provides a mechanism for iterating through all*
of the established values on a resource control. The iteration is
primed by calling getrctl() with old_blk set to NULL, a valid resource
control block pointer in new_blk, and specifying RCTL_FIRST in the
flags argument. Once a resource control block has been obtained,
repeated calls to getrctl() with RCTL_NEXT in the flags argument and
the obtained control in the old_blk argument will return the next
resource control block in the sequence. The iteration reports the end
of the sequence by failing and setting errno to ENOENT.
My question is concerning "all of the established values on a resource control".
Why not "*_the only value_ of a resource control*"? Why several?
For instance, there may be several values for project.max-shm-memory.
What does that mean? Which value should one use (if they are different)?
Alex Vinokur
Edited by: Alex-Vinokur on Nov 18, 2008 9:25 PM
Similar Messages
-
Controlling dc motor using PCI-7342 and MID-7652
Hi,
I am trying to control an electric linear actuator driven by a 24V dc motor (no encoder). The feedback is coming from an integrated analog linear potentiometer (+10v to -10V). I am using the automatic analog feedback vi and created my desired feedback profile. I began with a Kp value of 9, all other gains set to zero for now. The problem is that there is a constant offset of approx. 8V between the desired profile and the actual feedback from the linear pot. I have ADC 1 configured as -10 V to +10 V. I am not sure if its a wiring problem or there is something that needs to be configured in measurement & automation, axis 1. I am new to motion control so bear with me.
ThanksHi there,
Where are you measuring this 8V difference? Is it the difference between the servo output of the MID-7652 and the analog feedback input to the 7652 analog input channels?
If you try changing the PID constants in your control loop, does this 8V difference remain the same?
Way S.
NI UK Applications Engineer -
When utilizing Solaris 10 Resource Control, should one use "user.root", "user.oracle" or "oracle" for the project identifier? Does it really make a difference?
For example,
I. projadd -U oracle -K "project.max-shm-memory=(priv,2048MB,deny)" user.oracle
II. projadd -U oracle -K "project.max-shm-memory=(priv,2048MB,deny)" user.root
III. projadd -U oracle -K "project.max-shm-memory=(priv,2048MB,deny)" oracle
I realize the Oracle Install documentation indicates "user.root", but I've seen other indications of either "user.oracle" or "oracle".thanks buddy. I was in this same tricky situation. and ur post solved my prblem.
Is this a bug with solaris 10.
Later i discovered.. on Oracle documentation that.. there r sum parameters that needed to be taken care while pre-installation of Oracle binaries.
Here is the excerpts.
The Oracle installer recognizes kernel parameters set using this method, but it is now deprecated in favour of resource control projects, explained below.
As the root user, issue the following command.
projadd oracle
Append the following line to the "/etc/user_attr" file.
oracle::::project=oracle
If you've performed a default installation, it is likely that the only kernel parameter you need to alter is "max-shm-memory". To check the current value issue the following command.
# prctl -n project.max-shm-memory -i project oracle
project: 100: oracle
NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT
project.max-shm-memory
privileged 254MB - deny
system 16.0EB max deny
To reset this value, make sure at least one session is logged in as the oracle user, then from the root user issue the following commands.
# prctl -n project.max-shm-memory -v 4gb -r -i project oracle
# projmod -s -K "project.max-shm-memory=(priv,4gb,deny)" oracle
The first dynamically resets the value, while the second makes changes to the "/etc/project" file so the value is persistent between reboots.
# cat /etc/project
system:0::::
user.root:1::::
noproject:2::::
default:3::::
group.staff:10::::
oracle:100::::project.max-shm-memory=(priv,4294967296,deny)
The Oracle installer seems incapable of recognising kernel parameter set using resource control projects, but if you ignore the warnings the installation completes successfully.Even this method works.
Regards
Monu Koshy -
What is the resource control corresponding to each kernel parameter
Hi
I am trying to prepare (i.e. tune) a Solaris 10 instance for an Oracle 10g install using a Solaris 10 project.
I am new to using Solaris 10 project resource controls so I might get some of this totally wrong.
I know all of the "old" kernel parameter names: what each represents and its' required value and I know some of the corresponding resource controls but not all of them.
That is I do not know the resource control corresponding to each and all of the kernel parameters.
e.g. I know:
semsys:seminfo_semmsl == process.max-sem-nsems == The maximum number of sempahores that can be in one semaphore set
shmsys:shminfo_shmmax == project.max-shm-memory == The maximum size(in bytes) of a single shared memory segment
shmsys:shminfo_shmmni == project.max-shm-ids == The number of shared memory identifiers
But I do not know, for example, what resource control corresponds to:
semsys:seminfo_semmns == The number of semaphores in the system
Is there a list somewhere of the resource control corresponding to each of the kernel parameters ?
I know I can set some kernel parameters in /etc/system but that should only be used for system - wide kernel parameters, right ?
I know there are project, process, task and zone classes of resource controls.
Can a resource control of any and all of these types be set in a project ?
Are zone resource controls equivalent to system-wide resource controls ?
Are there corresponding resource controls to all kernel parameters e.g. such as noexec_user_stack ?
I have set noexec_user_stack in /etc/system.
And finally - just to be sure - using a project makes the resource control values permanent, right ?
Thanks
Brett.Hi;
Please check below which could be helpful for your issue:
Kernel setup for Solaris 10 using project files [ID 429191.1]
Regard
Helios -
Default Input Control Values in WebI doc on Open
Is there a way to select default Input Control values for a WebI document on Open ? I have a WebI document/report with no prompts in the query (as I don't want to restrict the data available on refresh) with input controls on Year and Month. The report is scheduled to refresh data each night. This is a standard public report that many users open as Read Only through an Opendoc URL hyperlink to the latest instance. I would like to always set the input control values to the current year and month so that the most current data is displayed on the report by default when it is opened as this is what the majority of users will want to see on the report.
I know that prompts can be used for the data filter but we do not want the data refreshed for each user as it is scheduled to refresh nightly and we want them to be able to change the input controls to view other years/months without requiring a refresh as these past months data is not dynamic.
Thanks, FaithI meant the following:
When you are in the report editing mode at the top right corner of WebI window you can find the "Show/Hide report filter toolbar" button. After activation this feature you'll be able to drag your variables over the pane that appears.
If you are using input controls you can create new input controls based on this variables instead of controls based on Date, Month and Year dimensions and set the "Today", "Current month" or "Current year" as theirs default values. -
Error in Invoke Node-Set Control Value
I've a trouble with a VI: the error cluster warns ERR(7) when I try to pass the output of the "FLATTEN TO STRING" function to an Invoke Node-Set Control Value.
In the file attachments there's the upmentioned VI. Thank you
Attachments:
Cambia_i_valori_di_default.vi 147 KBError 7 is file not found. I would think that this error is generated by one of your Open VI References and not any of the Set Control Values. Check your paths and verify that they're correct. Also, you haven't included two subVIs or the VIs that you're trying to modify so it's impossible for anyone to try and recreate your problem. Save them into an LLB and attach that if you still have problems and want some help.
-
Visa resource control loses value set during config and saved to step properties in TestStand
I'm using a Visa resource control to set the instrument handle in my VI (edit sub-step) and it gets saved into a step property of a custom step I've built at edit time. At run time the control value is intermittantly changed to "temp 0" value and I don't understand why. I have LabVIEW 7.1, TestStand 3.0
Hi kphite,
Are you using the Refnum to Session.vi and Session to Refnum.vi?
You would use the Refnum to Session.vi to convert your Visa session value to a U32. Then you can pass this back to TestStand.
Going back to LabView you use the Session to Refnum.vi to convert a U32 back to the Visa session.
Regards
Ray Farmer
Regards
Ray Farmer -
Is it better to use Invoke nodes or property nodes to set/get control values?
I have a series of VI's that run in parallel, each to manage different functions- pumping, sensing, a fluid flow model, an experiment generator/runner.
These need to exchange data, which I am currently doing using invoke nodes (that are all in subVIs), using methods "Set control value" and "Get control value". I find that every now and then (perhaps 1% of the time) the data isn't exchanged correctly and therefore the system doesn't work. I can imagine how "set" could go wrong if they happen simultaneously, and can devise ways of preventing this. However, the "Get" method suffers from the same problem. This is a major problem, because I want to leave it running for several hours.
I could in
principle achieve the same thing using property nodes and find myself wondering if this might be more reliable. But I don't want to change over only to find it makes no difference!
Can anyone advise?You can use some kind of syncronization such as queues, occurances, or notifiers but I think the easiest way would be to create and action engine. This was only one action can execute at a time avoiding a "race condition". Possibly a write action and a read action might help. You also can add queues or notifiers into this concept. hope this helps.
BJD1613
Lead Test Tools Development Engineer
Philips Respironics
Certified LV Architect / Instructor -
Do I need to set something when using Dynamic VIs to pass control values to an executable VI
I am using VI server to pass control information from one VI to another.
In the development system this works fine.
How ever once I build the VI's into an executable the values from one of the VIs does not get passed.
I use the same method in three different applications, 2 of the applications work fine, but one does not.
The only thing I can think of is that there is something that needs to be set that I did (without realizing) in the first two but not in the third.
All the Applications run fine.
The problem that occurs is in the values passed. The same value gets passed everytime this turns out to be what ever the default was prior to running application builder.
I a
m currently using 6.02.Kandrew wrote:
> I am using VI server to pass control information from one VI to
> another.
> In the development system this works fine.
> How ever once I build the VI's into an executable the values from one
> of the VIs does not get passed.
>
> I use the same method in three different applications, 2 of the
> applications work fine, but one does not.
Are you using Call by Reference or Set Control Value method? The second
absolutely requires the Front Panel to be present to work properly. The
LabVIEW application builder wants to remove the Front Panel by default
if the VI hasn't been configured to show its front panel when called or
doesn't have at least one Control Property Node in its diagram.
Rolf Kalbermatter
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
Using VISA Resource control with Windows 7 64-bit
Hi.
My company recently upgraded our laptops, and I'm now working on Windows 7 64-bit rather than Windows XP 32-bit. I reinstalled LabVIEW 2009 Base Package, trusting that the Windows 7 64-bit OS would be able to handle LabVIEW 2009 32-bit without problems. But when trying to run our test system, the VISA Resource control doesn't work.
We use it to get a list of the available COM (RS232) ports on the computer. But now the list comes up blank. The only option that comes up in the list, is the text "Refresh". But nothing happens when I press it. Is this a bug in LabVIEW? I've installed the latest patch I found, so now I'm running LabVIEW v9.0f3 (32-bit).
Thanks alot for any and all assistance!
Solved!
Go to Solution.Sorry for not replying to you earlier. I've been busy on other projects.
I'm not sure what you refer to with MAX, but I'm able to access the com ports using other tools/loggers. So it's not an issue with Windows 7 itself. But it seems logical that the problem would have something to do with running 32-bit drivers on a 64-bit OS. Referring to this list from NI (http://digital.ni.com/public.nsf/allkb/71E9408E6DEAD76C8625760B006B6F98), I'm downloading the 64-bit installer now.
But if I understand it correctly, you cannot run applications from a 64-bit Application Builder on a 32-bit OS. So basically you need the Application Builder installed on both a 32-bit and 64-bit OS to have all bases covered. But in the FAQ, it's asked if it's possible to have both 32-bit and 64-bit LabVIEW 2009 installed on the same 64-bit OS. Why would this be wanted? If you cannot use the 32-bit Application Builder, and you cannot trust that the 32-bit LabVIEW runs successfully (i.e. driver issues etc.), why would you want to have a 32-bit installation on a 64-bit OS? -
Change the value of a SharePoint List lookup control value using javascript
hi,
could you please help in changing the value of a SharePoint List lookup control value using javascript.
Please note that i have to change the lookup value which is in the form of a drop down from the infopath form.
Thankshttps://stackoverflow.com/questions/5678210/select-dropdown-menu-option-with-javascript
Does that help? -
Using "Set Control Value" to pass a reference
Hi,
every time I tried to passe a Control Reference using "Set Control Value" I have the Error 1 (invalid input parameter at invoke node). Why is it not possible to pass a control reference using the invoke node??
Thanks
GolzioHi,
This is possible. Trick is, the type of the control reference needs to be
the same as the input. E.g. a string control reference is a different type
as a numeric control reference (, or a control reference).
To avoid this conflic, make sure the input of the vi is a control reference
(and not a e.g. string control reference). Also make sure the to convert the
reference you pass to a control reference (using Application Control>To More
Generic Class).
Regards,
Wiebe.
"Golzio" wrote in message
news:506500000008000000C1F00000-1079395200000@exchange.ni.com...
> Hi,
> every time I tried to passe a Control Reference using "Set Control
> Value" I have the Error 1 (invalid input parameter at invoke node).
> Why is it not possible to pass a control re
ference using the invoke
> node??
>
> Thanks
> Golzio -
Solaris 10 zones - Resource Controls not persisting through reboot
Local zone was rebooted, but somehow the resource controls are not well configured and the oracle database did not start up.
The cat /etc/project shows this : The local zone has 10 gb. The oracle database was started manually with the startdb.sh, which conn /assysdba and issue a startup, adn also startups the listener.
cat /etc/project
system:0::::project.max-shm-memory=(privileged,8589934000,deny)
user.root:1::::project.max-shm-memory=(privileged,8589934000,deny)
noproject:2::::
default:3::::project.max-shm-memory=(privileged,6442450944,deny)
group.staff:10::::
user.oracle:100::oracle::project.max-shm-memory=(privileged,8589934000,deny)
group.dba:101::::project.max-sem-ids=(privileged,100,deny);project.max-shm-ids=(
privileged,100,deny);project.max-shm-memory=(privileged,6442450944,deny)Nikolay, thank you for your reply.
What I know is that the zone was rebooted saturday. sunady at 1:00 am the oracle database (I'am a Dba not sysadmin), perform coldbackup (veritas.) then Veritas call a unix script to starts the database.
I run the script to starts the database manually sunday. Veritas could not open the database because of the Out of Memory.
The box has 10 gb , the oracle user, the rot and system are configured to use 8 gb, the rest are configured to use less.
I'am oracle user.
id -p
uid=100(oracle) gid=100(dba) projid=100(user.oracle)
prctl -i process $$
process: 8928: -ksh
NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT
process.max-port-events
privileged 65.5K - deny -
system 2.15G max deny -
process.max-msg-messages
privileged 8.19K - deny -
system 4.29G max deny -
process.max-msg-qbytes
privileged 64.0KB - deny -
system 16.0EB max deny -
process.max-sem-ops
privileged 512 - deny -
system 2.15G max deny -
process.max-sem-nsems
privileged 512 - deny -
system 32.8K max deny -
process.max-address-space
privileged 16.0EB max deny -
system 16.0EB max deny -
process.max-file-descriptor
basic 256 - deny 8928
privileged 65.5K - deny -
system 2.15G max deny -
process.max-core-size
privileged 8.00EB max deny -
system 8.00EB max deny -
process.max-stack-size
basic 8.00MB - deny 8928
privileged 8.00EB - deny -
system 8.00EB max deny -
process.max-data-size
privileged 16.0EB max deny -
system 16.0EB max deny -
process.max-file-size
privileged 8.00EB max deny,signal=XFSZ -
system 8.00EB max deny -
process.max-cpu-time
privileged 18.4Es inf signal=XCPU -
system 18.4Es inf none -
task.max-cpu-time
system 18.4Es inf none -
task.max-lwps
system 2.15G max deny -
project.max-contracts
privileged 10.0K - deny -
project.max-device-locked-memory
privileged 987MB - deny -
project.max-locked-memory
system 16.0EB max deny -
project.max-port-ids
privileged 8.19K - deny -
project.max-shm-memory
privileged 8.00GB - deny -
project.max-shm-ids
privileged 128 - deny -
project.max-msg-ids
privileged 128 - deny -
project.max-sem-ids
privileged 128 - deny -
project.max-crypto-memory
privileged 3.85GB - deny -
project.max-tasks
system 2.15G max deny -
project.max-lwps
system 2.15G max deny -
project.cpu-cap
system 4.29G inf deny -
project.cpu-shares
privileged 1 - none -
zone.max-swap
privileged 20.0GB - deny -
zone.max-locked-memory
system 16.0EB max deny -
zone.max-shm-memory
system 16.0EB max deny -
zone.max-shm-ids
system 16.8M max deny -
zone.max-sem-ids
system 16.8M max deny -
zone.max-msg-ids
system 16.8M max deny -
zone.max-lwps
system 2.15G max deny -
zone.cpu-cap
system 4.29G inf deny -
zone.cpu-shares
privileged 1 - none -
Print configured reso
urce control
ksh: Print: not found -
Finding the resource controls of a given project
Currently, one can use "*prctl*" to list resource control limits of a given project. However, to gather the statistics of the usage by all processes associated with a given project in relation to these resource control limits, we would need to execute multiple commands/utilities.
For some, information outputs can be direct, yet for others, outputs can be indirect. Even then it is not guaranteed that all statistics are collected.
I thought of developing a command/utility acting like "sar" or "vmstat" that gathers statistics on usage of all resource controls for a given project.
Could you please drop in your suggestions on the features such a command should have ?
ThanksDo you know how to find the minimum value of a collection? You will want to do the same here but search for the minimum difference instead of the minimum value. Math.abs() will help deal will negative differences.
-
How to control the sequence of a map?
Hello
we are using a send email with attachment (map) in our process design, the email body has a few pdf documents, does anyone know how to control the sequence of attachment in the email body?
thanks,Values in a map are ordered randomly, you can't predict the order.
Maybe you are looking for
-
All my mail , contacts can no longer be opened as Entourage is a PPC app. What do I do to recover contacts and migrate to Apple mail. Would really appreciate help. Very important to me
-
I can't get files to attach in e-mail quickly.
I can't get files to attach in e-mail. I get a prompt to retry or switch and retry. Switching works but the process takes too long.
-
Has anyone got Time Machine to work with a ReadyNA...
I have a Netgear ReadyNAS Duo (with the latest firmware) set up as a Time Machine destination but neither of the two MacBooks in the house (both running Snow Leopard) can find the ReadyNAS in Time Machine whether over WiFi or on a wired connection. I
-
Using Iphone5 with bluetooth in a car: problems with plans and music
Hi all, i use my iphone5 in my car (recent one, bought it 2 years ago) with bluetooth connection. The problem is that when i want to use "Plans" App, if i want to hear the indications in the car's loudpeakers, the iphone start music itself. It starts
-
Extended Support contract required for 10.2.0.5 PSU and SBP
Hi all There are important changes regarding the terms of use of the Oracle Bundle Patches during the Oracle Extended Maintnenance period for Oracle Version 10.2. For more information, see Hot News [SAP Note 1654734|http://service.sap.com/sap/support