[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::axp-developer

Title:Alpha Developer Support
Notice:[email protected], 800-332-4786
Moderator:HYDRA::SYSTEM
Created:Mon Jun 06 1994
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:3722
Total number of notes:11359

3416.0. "Landmark Systems Corporation" by HYDRA::KENYON (The Foundation of Science...Fiction) Fri Mar 28 1997 15:49

    Company Name :  Landmark Systems Corporation
    Contact Name :  Craig E. Despeaux
    Phone        :  
    Fax          :  
    Email        :  [email protected]
    Date/Time in :  28-MAR-1997 15:47:46
    Entered by   :  Jeff Kenyon
    SPE center   :  MRO

    Category     :  UNIX
    OS Version   :  ?
    System H/W   :  Alpha


    Brief Description of Problem:
    -----------------------------

From:	SMTP%"[email protected]" 28-MAR-1997 13:37:08.87
To:	[email protected]
CC:	
Subj:	priocntl troubles

I'm with Landmark Systems and we're in the ASAP program.  Our customer code
is 901830 just in case you need it to help me.  Here's my problem.....

I'm trying to use priocntl to change my process's scheduling class to
real-time. I run the program under root but receive errno 35 (EAGAIN) when
priocntl is called with the PC_GETCID command.  In this call, I am trying to
obtain the class ID for the "RT" (real-time) scheduling class.  Once I have
the class ID, I can then re-issue the system call with the PC_SETPARMS
command to change the scheduler class.  Here's an extract of all applicable
source code from my program:

#include <sys/priocntl.h>
#include <sys/rtpriocntl.h>

pcinfo_t sinfo;
pcparms_t sparms;
rtinfo_t *rtinfo;
rtparms_t *rtparms;

strcpy (sinfo.pc_clname, "RT");
rc = priocntl (0, 0, PC_GETCID, (caddr_t) &sinfo);
if (rc != 0)
{
  fprintf(stderr, "ERROR: PD: System call priocntl returned: = %d\n", errno);
}

The EAGAIN errno is described as follows by the priocntl man page and makes
it sound as if something isn't configured in the kernel:
   
[EAGAIN]  An attempt to change the class of a process failed because of
          insufficient resources other than memory (for example, class-
          specific kernel data structures).

By replacing the fourth argument with a null pointer, the priocntl system
call returns a 5 indicating there are 5 scheduling classes defined (right?).
I've talked with our system administration staff and they have verified that
real-time preemption has been enabled in the kernel.  Is there something
we're missing?  Any help you could provide would be greatly appreciated. 


Craig E. Despeaux
Sr. Software Development Specialist
Distributed Products Division
Landmark Systems Corporation
[email protected]
T.RTitleUserPersonal
Name
DateLines
3416.1info sent...HYDRA::KENYONThe Foundation of Science...FictionFri Mar 28 1997 16:50564
From:	HYDRA::AXPDEVELOPER "[email protected]" 28-MAR-1997 15:47:00.73
To:	SMTP%"[email protected]"
CC:	AXPDEVELOPER
Subj:	RE: priocntl troubles

Craig,

Attached is the SPD for the System V Environment for Digital UNIX.  You noted
that you have the RT stuff set in the kernel, and I am wondering if you have
installed the SYSV environment as well.  Since we don't have expeience in this
area that I am aware of, I will be asking UNIX engnieering to take a look
at what you sent.

Was the example program intended to show the specific problem?  It does not
compile for me.

One thing which would help is to send me the contents/output of the following:

	output for uname -a
	contents of /sys/conf/NODENAME (substitute your machine name)
	output for /usr/sbin/setld -i

This will help me determine the exact environment.  I could not find any
reported problems with regard to the priocntl() call.  Since I will be
connecting directly with engineering, it may take a day or two to get
thier feedback.

Regards,

Jeff Kenyon
Alpha Developer Support


                              DIGITAL

Software
Product
Description
______________________________________________________________________________
                                                                 
PRODUCT NAME:  System V Environment for Digital UNIX              SPD 46.16.04
               Version 4.0B

DESCRIPTION

The System V Environment for Digital UNIX[R] Version 4.0B provides UNIX System
V Release 4 commands, libraries, and operating system tools to increase the
System V compatibility provided by Digital UNIX. The System V Environment
extends Digital UNIX Version 4.0B, providing compliance with the System V
Interface Definition, Issue 3 (SVID3) Volumes 1, 2, and 3.

The System V Environment is an optional environment for Digital UNIX providing
users with System V Release 4 system administration, programming tools, and
general user commands. Using this environment, application programmers can
more easily port their System V Release 4 applications to run on the Alpha
systems. System administrators, who are experienced with System V Release 4
system administration, can use the tools that are most familiar to them.

Standards

SVID 3

The System V Environment for Digital UNIX Version 4.0B complies with the System
V Interface Definition, Issue 3 (SVID 3), Vols. 1 - 3, with the exception of
the Remote File System (RFS) and X11/NeWs OPEN LOOK portion of Volume 4. In
addition, the X Window System, Version 11, Release 6 is supported. SVID 3
Volume 4 specifies requirements for the X Window System.

X/Open

                                                                      Oct 1996

 



System V Environment for Digital UNIX                             SPD 46.16.04 
Version 4.0B

Digital UNIX is XPG4 Base branded. However, the System V Environment has not
been branded but has been verified for XPG4 compliance.

The System V Environment extends Digital UNIX to provide nearly 98% of the APIs
listed in the XPG2 specification (also known as Spec 1170).



Bellcore's SOE II

The System V Environment for Digital UNIX Version 4.0B provides support for
the operating system portion of the Technical Requirements (TR) for Bellcore's
Standard Operating Environment, Issue II.

Libraries

The System V Environment provides common System V Release 4 library routines,
which are either not provided or have different behavior than the routines
provided in the Digital UNIX base system .

These include some routines from the following libraries:

libc-Additional C language functions from the System V Release 4 (SVR4) libc
library. These routines are provided in a separate library named "libsvr4.a".

libgen-miscellaneous library functions.

libnsl-miscellaneous networking functions.

libmalloc-alternate memory-allocation functions.

Thread-safe versions of libsvr4s (libc functions) and libnsl libraries are
provided to assist in the development or porting of SVR4 multithreaded
applications.

Shared library support is supported in the System V Environment.

Common SVR4 header files are also included to ease application migration.

                                 2

 



System V Environment for Digital UNIX                            SPD 46.16.04 
Version 4.0B

A minimal set of SVR4 library routines provide different behavior from
similarly named routines in Digital UNIX. In the System V Environment, these
routines are provided in a separate library (libsvr4s.a) for the benefit of
programmers wanting true SVR4 behavior. So, programs that use any of these
library routines and are compiled with libsvr4.a will exhibit System V behavior
rather than Digital UNIX behavior.

Character Interface

The following character interface libraries defined as part of the System V
Release 4 Extended Terminal Interface (ETI) are provided:

Curses-Two libcurses libraries provide the SVR4 functionality. The Digital
UNIX base provides XPG4 curses, which includes support for SVR4 curses and wide
characters.

Forms-the libform library provides a terminal independent method of creating
and customizing forms.

Menus-the libmenu library provides a terminal independent method of creating
and customizing menus.

Panels-the libpanel library provides a terminal independent method of creating
and customizing panels.

The forms, menus, and panels libraries are provided only in the System V
Environment.

Additionally, the System V Environment provides Form and Menu Language
Interpreter (FMLI), a programming language and interpreter that sets up and
controls character cell screen interaction with the user.

Development Tools

The System V Environment extends the Digital UNIX development tools for greater
System V Release 4 compatibility, including enhancements to:

o  the cc command

o  archive

                                 3

 



System V Environment for Digital UNIX                            SPD 46.16.04 
Version 4.0B

o  cross reference tools

These enhancements supply SVR4 options that are not provided in the Digital
UNIX version of the tools.

Additional SVR4 development tools are provided to interactively examine a C
program (cscope), to trace system calls, determine signals and faults (truss),
and to provide a core image of a running process (gcore).

General User Commands and Utilities

For compliance with the Basic Utilities (BU_CMD) and Advanced Utilities
Commands (AU_CMD) section of SVID 3, The System V Environment provides many
general user commands and utilities. Some of these commands include: find,
more, nawk, ps, and date.

System Administration Commands

The System V Environment for Digital UNIX Version 4.0B provides common System
V Release 4 system administration commands and utilities, enabling compliance
with the Administered Systems Commands (AS_CMD) section of SVID 3. In addition
to commands, which have different options in System V Release 4 from Digital
UNIX, the System V Environment provides system administration commands not
included in Digital UNIX, such as volcopy, sysdef, fstyp, fuser, and mkfs.

System Administration Utility

The System V Environment for Digital UNIX Version 4.0B provides the System V
Release 4 System Administration Utility (sysadm), a commonly-used menu
front-end to common system administration functions. Some of the tasks
accessible from the sysadm menu system are as follows:

o  Backup and restore services

o  File system maintenance

o  Printer control

o  Machine management

                                 4

 



System V Environment for Digital UNIX                            SPD 46.16.04 
Version 4.0B

o  System setup

o  User account management

Software Management Commands

The System V Release 4 software package management commands, also known as the
'pkg*' commands, are provided with the System V Environment. These commands
give the system administrator the ability to install, check, and remove SVR4
software packages.

SVR4 Printing Subsystem

The System V Release 4 printing subsystem can be installed as an option to
replace the BSD-based Digital UNIX printing subsystem. The System V
Environment provides the SVR4 print commands and filters to schedule and
control print requests. This SVR4 print subsystem also supports BSD print
commands with Digital UNIX print options.

The SVR4 PostScript Utilities, for sending output to a PostScript printer, are
supported as a subset of the SVR4 printing subsystem.

The remote printing daemon (lpNet) is supported.

Users can install either the SVR4 print subsystem or the Digital UNIX print
subsystem. Although most of the BSD print options were added to the System V
Environment SVR4 print subsystem, layered products with dependencies on the
Digital UNIX printing subsystem may not be fully interoperable with the SVR4
print subsystem.

Backup and Restore Services

The System V Environment for Digital UNIX Version 4.0B provides SVR4 backup and
restore services (the bk* and rs* commands), a series of commands and scripts
for making copies of system data and disk partitioning information. The SVR4
backup service includes tools for creating online history reports of the
backups and status reports of current backup jobs.



                                 5

 



System V Environment for Digital UNIX                            SPD 46.16.04 
Version 4.0B

Realtime Commands

The System V Environment supports the Digital UNIX realtime kernel, which
provides POSIX 1003.4 extensions. In addition, the System V Environment
provides compliance with the Realtime Commands (RT_CMD) section of SVID 3.
This includes the priocntl command, which uses the priocntl() system call to
give system administrators the ability to display configuration information
about class-specific priorities .

Performance Management

The System Activity reporting commands (sar, sadc, sa1, sa2, and timex) provide
the ability to track, store, and display system activity as described in the
AS_CMD section of SVID3. The sar command displays statistics about cpu
utilization, buffer usage, disk and tape activity, paging, and other system
activity.

In addition, the kernel profiling tools (prf*) measure and report on where the
operating system is spending its time during operation.

User Account Management Utilities

The System V Environment for Digital UNIX Version 4.0B includes the User
Account Management Utilities, which consist of passwd, login, groups and
passmgmt.

Dataless Configuration Support

The System V Environment supports Digital UNIX Version 4.0B dataless configura
tions as provided in the Digital UNIX Server Extensions Version 4.0. Dataless
configurations are defined as having a minimum of one disk which can be used
for dumping, paging, and swapping.









                                 6

 



System V Environment for Digital UNIX                            SPD 46.16.04 
Version 4.0B

Enhanced Security Support

The System V Environment supports the Security Integration Architecture (SIA)
as provided by the Digital UNIX operating system. The System V Environment
supports enhanced security for password and group account management. It also
supports audit trail facilities to track security events in Digital UNIX and it
supports access control lists (ACLs) to manage access to files for various
levels of security.

Filesystem Support

The System V Environment filesystem support has been extended to include:

o  Advanced File System (AdvFS)

o  CD-ROM File System (CDFS)

o  Memory File System (MFS)

o  File Descriptor File System (FDFS)

o  File on File Mount (FFM)

o  Network File System (NFS)

o  Proc File System (PRFS)

Multiprocessor Support

The System V Environment now provides support for managing and tuning
symmetric multiprocessing systems. In addition, SVE supports SVR4.0
MP-compliant programming interfaces. SVR4.0 multiprocessor supported features
include:

o  Taking a processor off line; bringing a processor on line

o  Binding a process to a particular processor

o  Gathering and reporting multiprocessor statistics

                                 7

 



System V Environment for Digital UNIX                            SPD 46.16.04 
Version 4.0B

HARDWARE REQUIREMENTS

Please refer to the Digital UNIX V4.0B Sofware Product Description, SPD 41.61,
for specific hardware supported.

Processor Restrictions

A minimum system configuration to run the System V Environment for Digital
UNIX Version 4.0B includes:

o  32MB main memory

o  One or more disk drives supported by Digital UNIX




























                                 8

 



System V Environment for Digital UNIX                            SPD 46.16.04 
Version 4.0B

Disk Space Requirements

Disk Space in Kilobytes Required for Installation and Use

___________________________________________________________________
                       root      /usr
___________________________________________________________________

Environment Setup         7          10
Files
Base Compatibility        1       18,200
Package
System Management       192       40,200
Package
API and Development       0       21,400
Tools Package
Print Package             0       18,000
Man Pages Package         0        3,200

Total                   200      101,010
___________________________________________________________________

These counts refer to the disk space required on the system disk. The sizes are
approximate; actual sizes may vary depending on the user's system environment,
configuration, and software options.

SOFTWARE REQUIREMENTS

The Digital UNIX Operating System Version 4.0B is a prerequisite for the System
V Environment for Digital UNIX.

To use the System V Release 4 Development Tools subset, the Digital UNIX C
Developers' Extensions is required.

GROWTH CONSIDERATIONS

The minimum hardware/software requirements for any future version of this
product may be different from the requirements for the current version.




                                 9

 



System V Environment for Digital UNIX                            SPD 46.16.04 
Version 4.0B

ORDERING INFORMATION

Software licenses: QL-0J6A*-**

Software Media and Documentation:

The Digital UNIX media and documentation kit (QA-MT4AA-H8) includes the binary
and online documentation for the System V Environment for Digital UNIX.

Hardcopy Documentation:

The following kits provide hardcopy documentation sets:

Startup Documentation Kit: QA-0J6AA-GZ

Extended Documentation Kit: QA-0J6AB-GZ

Software Product Services: QT-0J6**-**

SOFTWARE LICENSING

This software is furnished only under a license. For more information about
Digital's Licensing terms and conditions, contact your local Digital office.

License units for this product are allocated on an Unlimited System Use basis.

A binary sublicense for System V Release 4 is included in the System V
Environment for Digital UNIX software license.

SOFTWARE PRODUCT SERVICES

A variety of service options are available from Digital. For more in-
formation, contact your local Digital office.





                                 10

 



System V Environment for Digital UNIX                            SPD 46.16.04 
Version 4.0B

SOFTWARE WARRANTY

Warranty for this software product is provided by Digital with the purchase
of a license for the product as defined in the Software Warranty Addendum of
this SPD.

The above information is valid at time of release. Please contact your local
Digital office for the most up-to-date information.

[R] OSF, OSF/1, OSF/Motif, and Motif are registered trademarks of the Open
Software Foundation, Inc.

[TM]BSD is a trademark of University of California, Berkeley

[R] PostScript is a registered trademark of Adobe Systems Incorporated.

[R] POSIX is a registered trademark of IEEE.

[TM]X Window System is a trademark of Massachusetts Instititute of Technology.

[R] UNIX is a registered trademark in the United States and other countries,
licensed exclusively through X/Open Company, Ltd.

[TM]The DIGITAL logo, Digital, DEC, Alphaserver and Alphastation are registered
trademarks of Digital Equipment Corporation.

� 1996 Digital Equipment Corporation. All rights reserved.












                                 11

    
3416.2closed-jimHYDRA::AXPDEVELOPERAlpha Developer supportTue Apr 08 1997 17:3233
From:	SMTP%"[email protected]"  8-APR-1997 15:59:19.68
To:	[email protected]
CC:	[email protected], [email protected]
Subj:	Disk Statistics Table


    
    
    
    
    
    
    
    
    
    
    
    
    stuff deleted....
    
p.s - I requested assistance on March 28 for the priocntl system call.  If
you still have an open ticket for this problem, you may close it.  We do not
have the optional System V environment installed.  
   



Craig E. Despeaux
Sr. Software Development Specialist
Distributed Products Division
Landmark Systems Corporation
[email protected]