Sponsored Content
Operating Systems Solaris 8 character limit for ipcs command , any way to increase # of chars ? Post 302851709 by icalderus on Monday 9th of September 2013 01:40:11 PM
Old 09-09-2013
Quote:
ipcs resources are kernel persistent. They cannot persist over a reboot. So, what you said appears to be wrong, or you need to do some more explanation - specifically 'database name' - what is it: a key generated by ftok()? What are we doing here?
- I did not imply a reboot was going to be done in any way shape or form, so if I gave that misinimpression I apologize. The issue is this:
1) We are using a script to clean up any hanging ps/ipcs resources that may be erroneosly be left over after we shut down application servers ( database servers are not being stopped/shutdown).

2) The script works as long as your target search string is up to 8 characters long.
3) We have new instances in our environment which have 9 character strings.
When I use the ipcs -a | grep (a 9 char string) there is no data returned. Unless I am mistaken this is because the ipcs command itself will not detect any search string > 8 characters.

I have tested this out and lo and behold this is an issue. So my question is this:

Q) Is there any way to tweak the command via env settings or ANY other feasible method so that we can get ipcs to detect a search pattern that is longer than 8 characters?

Quote:
Or do you mean a db shutdown/restart? We need clarity. And a decent example.
Again, the database is NOT being shutdown or restarted, it is our application servers which are being shutdown. As far as clarity goes I think the example was pretty clear :

1) ipcs -a | grep 1245678 - DOES return a set of results as the 8 char limit isnt breached.

2) ipcs -a | grep 123456789 - DOES NOT return a set of results with this 9 char search string, I am trying to find a way to get the ipcs command to detect something longer than 8 chars in its search string.

Again, I understand the ipcs command stems for a library within Solaris itself. So I am not going to get into re-writing any part of code and recompiling the kernel,etc.

Rather I am curious to see if anyone else has run into this limitation and how they have worked around it?

Thanks! All positive answers and your time are much appreciated.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

ipcs command

Does anyone know how to set the variables with the ipcs command? I need to set the following variables: Shared memory segments message queues semaphore arrays all of these (1 Reply)
Discussion started by: Deuce
1 Replies

2. UNIX Desktop Questions & Answers

how do I increase the character size in the Unix Box

do anybody has knowledge how do i increase the character size in the UNIX box (1 Reply)
Discussion started by: subir23
1 Replies

3. AIX

chfs increase /var limit at 512mb?

Is there a limit of 512Mb when doing a "chfs -a size=XXXXX /myfs" ? I managed to increase /var to 512MB fine, no issues, then i wanted to increase /usr to 2Gb, but when i enter: # chfs -a size=2260992 /usr chfs: 0506-908 Cannot reduce size... (5 Replies)
Discussion started by: craigp84
5 Replies

4. AIX

ipcs command with out output

hello i'm running on aix 5300-08-02-0822 hacmp 4 when i run ipcs command there is nio output. some one got this problem? best regards ariec (1 Reply)
Discussion started by: ariec
1 Replies

5. UNIX for Dummies Questions & Answers

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

6. UNIX for Advanced & Expert Users

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

7. Shell Programming and Scripting

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

8. UNIX for Advanced & Expert Users

Question on output of ipcs command

Hi, I read the ipcs man page and am still very confused. Basically, I just want to know whether the output from the ipcs command below means these are the current "TOTAL" memory usage in bytes on the server? Is this correct? Thanks in advance. ipcs command output below: # ipcs... (2 Replies)
Discussion started by: newbie_01
2 Replies

9. Shell Programming and Scripting

Ignore the 255 character limit of command line

Hi I would just like to ask if there is a way for UNIX to ignore/overcome the 255 character limit of the command line? My problem is that I have a really long line of text from a file (300+ bytes) which i have to "echo" and process by adding commands like "sed" to the end of the line, like... (5 Replies)
Discussion started by: agentgrecko
5 Replies

10. Solaris

How to increase soft stack limit?

:wall:Dear Solaris 10 Specialists, I am having difficulty trying to increase the soft stack limit to 16384 for user george on this Solaris 10 SunFire Sparc server as follows: $ uname -a SunOS galactica 5.10 Generic_141444-09 sun4v sparc SUNW,SPARC-Enterprise-T5220 % id -p ... (3 Replies)
Discussion started by: gjackson123
3 Replies
IPCS(1) 							   User Commands							   IPCS(1)

NAME
ipcs - show information on IPC facilities SYNOPSIS
ipcs [options] DESCRIPTION
ipcs shows information on the inter-process communication facilities for which the calling process has read access. By default it shows information about all three resources: shared memory segments, message queues, and semaphore arrays. OPTIONS
-i, --id id Show full details on just the one resource element identified by id. This option needs to be combined with one of the three resource options: -m, -q or -s. -h, --help Display help text and exit. -V, --version Display version information and exit. Resource options -m, --shmems Write information about active shared memory segments. -q, --queues Write information about active message queues. -s, --semaphores Write information about active semaphore sets. -a, --all Write information about all three resources (default). Output formats Of these options only one takes effect: the last one specified. -c, --creator Show creator and owner. -l, --limits Show resource limits. -p, --pid Show PIDs of creator and last operator. -t, --time Write time information. The time of the last control operation that changed the access permissions for all facilities, the time of the last msgsnd(2) and msgrcv(2) operations on message queues, the time of the last shmat(2) and shmdt(2) operations on shared mem- ory, and the time of the last semop(2) operation on semaphores. -u, --summary Show status summary. Representation These affect only the -l (--limits) option. -b, --bytes Print sizes in bytes. --human Print sizes in human-readable format. SEE ALSO
ipcmk(1), ipcrm(1), msgrcv(2), msgsnd(2), semget(2), semop(2), shmat(2), shmdt(2), shmget(2) CONFORMING TO
The Linux ipcs utility is not fully compatible to the POSIX ipcs utility. The Linux version does not support the POSIX -a, -b and -o options, but does support the -l and -u options not defined by POSIX. A portable application shall not use the -a, -b, -o, -l, and -u options. AUTHOR
Krishna Balasubramanian <balasub@cis.ohio-state.edu> AVAILABILITY
The ipcs command is part of the util-linux package and is available from Linux Kernel Archive <https://www.kernel.org/pub/linux/utils/util- linux/>. util-linux July 2014 IPCS(1)
All times are GMT -4. The time now is 11:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy