<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Setmemwindow command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/setmemwindow-command/m-p/3377776#M196897</link>
    <description>Hi Cheryl,&lt;BR /&gt;&lt;BR /&gt;Thanks for reply&lt;BR /&gt;&lt;BR /&gt;# ll startDB1.sh&lt;BR /&gt;-rwxrwxrwx   1 root       sys            110 Sep 13 15:40 startDB1.sh&lt;BR /&gt;&lt;BR /&gt;When i ran :&lt;BR /&gt;# ./startDB1.sh&lt;BR /&gt;&lt;BR /&gt;I got nothing - just the prompt !&lt;BR /&gt;&lt;BR /&gt;Jose&lt;BR /&gt;</description>
    <pubDate>Mon, 13 Sep 2004 09:19:55 GMT</pubDate>
    <dc:creator>jose-kl</dc:creator>
    <dc:date>2004-09-13T09:19:55Z</dc:date>
    <item>
      <title>Setmemwindow command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setmemwindow-command/m-p/3377774#M196895</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I tried to use Setmemwindow command as explained in /usr/share/doc/mem_wndws.txt but with no success .&lt;BR /&gt;&lt;BR /&gt;steps I did :&lt;BR /&gt;&lt;BR /&gt;1. set max_mem_window to 20&lt;BR /&gt;2. # cat /etc/services.window&lt;BR /&gt;database1 20&lt;BR /&gt;database2 30&lt;BR /&gt;database3 40&lt;BR /&gt;&lt;BR /&gt;3. # more startDB1.sh&lt;BR /&gt;WinId=$(getmemwindow database1)&lt;BR /&gt;setmemwindow -i $WinId /Gen/test/script/startDB1 "hello"&lt;BR /&gt;&lt;BR /&gt;4. /Gen/test/script/startDB1&lt;BR /&gt;&lt;BR /&gt;5. # ./memwin_stats -m&lt;BR /&gt;Shared Memory:&lt;BR /&gt;T      ID     KEY        MODE        OWNER     GROUP   UserKey   KernId&lt;BR /&gt;m       0 0x2f100002 --rw-------      root      root    Global       0&lt;BR /&gt;m       1 0x411c061e --rw-rw-rw-      root      root    Global       0&lt;BR /&gt;m       2 0x4e0c0002 --rw-rw-rw-      root      root    Global       0&lt;BR /&gt;m       3 0x412048a9 --rw-rw-rw-      root      root    Global       0&lt;BR /&gt;m       4 0x00000000 --rw-------      root       sys    Global       0&lt;BR /&gt;m   15877 0x431c3bbf --rw-rw-rw-    daemon      root    Global       0&lt;BR /&gt;&lt;BR /&gt;Problem is that NO new shared memory (UserKey=20) created !&lt;BR /&gt;&lt;BR /&gt;PHCO_23705 installed on the system ( HPUX11.0 )&lt;BR /&gt;&lt;BR /&gt;What I'm doing wrong ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Jose&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Sep 2004 08:07:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setmemwindow-command/m-p/3377774#M196895</guid>
      <dc:creator>jose-kl</dc:creator>
      <dc:date>2004-09-13T08:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Setmemwindow command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setmemwindow-command/m-p/3377775#M196896</link>
      <description>What are the permissions on startDB1.sh?&lt;BR /&gt;# ll startDB1.sh&lt;BR /&gt;&lt;BR /&gt;What happens when you execute it?&lt;BR /&gt;# ./startDB1.sh&lt;BR /&gt;&lt;BR /&gt;Do you see:&lt;BR /&gt;writing to segment: "DB1 says hello!"&lt;BR /&gt;Key is 1377042728&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Sep 2004 09:13:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setmemwindow-command/m-p/3377775#M196896</guid>
      <dc:creator>Cheryl Griffin</dc:creator>
      <dc:date>2004-09-13T09:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Setmemwindow command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setmemwindow-command/m-p/3377776#M196897</link>
      <description>Hi Cheryl,&lt;BR /&gt;&lt;BR /&gt;Thanks for reply&lt;BR /&gt;&lt;BR /&gt;# ll startDB1.sh&lt;BR /&gt;-rwxrwxrwx   1 root       sys            110 Sep 13 15:40 startDB1.sh&lt;BR /&gt;&lt;BR /&gt;When i ran :&lt;BR /&gt;# ./startDB1.sh&lt;BR /&gt;&lt;BR /&gt;I got nothing - just the prompt !&lt;BR /&gt;&lt;BR /&gt;Jose&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Sep 2004 09:19:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setmemwindow-command/m-p/3377776#M196897</guid>
      <dc:creator>jose-kl</dc:creator>
      <dc:date>2004-09-13T09:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Setmemwindow command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setmemwindow-command/m-p/3377777#M196898</link>
      <description>Hi Jose,&lt;BR /&gt;Have you configured your system to allow it have memory window?&lt;BR /&gt;Look in /stand/system if you have a line in the configurable params calledmax_mem_window&lt;BR /&gt;Here is an example of what it should look like:&lt;BR /&gt;max_mem_window  2&lt;BR /&gt;&lt;BR /&gt;If you dont, you will have to configure and generate a new kernel&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;Victor</description>
      <pubDate>Mon, 13 Sep 2004 09:28:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setmemwindow-command/m-p/3377777#M196898</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2004-09-13T09:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Setmemwindow command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setmemwindow-command/m-p/3377778#M196899</link>
      <description>Hi Victor,&lt;BR /&gt;&lt;BR /&gt;Thanks for the reply .&lt;BR /&gt;&lt;BR /&gt;# grep -i max_mem /stand/system&lt;BR /&gt;max_mem_window  20&lt;BR /&gt;&lt;BR /&gt;Jose</description>
      <pubDate>Mon, 13 Sep 2004 09:35:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setmemwindow-command/m-p/3377778#M196899</guid>
      <dc:creator>jose-kl</dc:creator>
      <dc:date>2004-09-13T09:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Setmemwindow command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setmemwindow-command/m-p/3377779#M196900</link>
      <description>Hi,&lt;BR /&gt;20 is quite a lot... (?)&lt;BR /&gt;What do you see when you type ~/memwin_stats -mw ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Victor</description>
      <pubDate>Mon, 13 Sep 2004 09:51:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setmemwindow-command/m-p/3377779#M196900</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2004-09-13T09:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Setmemwindow command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setmemwindow-command/m-p/3377780#M196901</link>
      <description>Hi Victor,&lt;BR /&gt;&lt;BR /&gt;# ./memwin_stats -mw&lt;BR /&gt;Shared Memory:&lt;BR /&gt;T      ID     KEY        MODE        OWNER     GROUP   UserKey   KernId&lt;BR /&gt;m       0 0x2f100002 --rw-------      root      root    Global       0&lt;BR /&gt;m       1 0x411c061e --rw-rw-rw-      root      root    Global       0&lt;BR /&gt;m       2 0x4e0c0002 --rw-rw-rw-      root      root    Global       0&lt;BR /&gt;m       3 0x412048a9 --rw-rw-rw-      root      root    Global       0&lt;BR /&gt;m       4 0x00000000 --rw-------      root       sys    Global       0&lt;BR /&gt;m   15877 0x431c3bbf --rw-rw-rw-    daemon      root    Global       0&lt;BR /&gt;Entry   USER_KEY KERN_KEY  QUAD2_AVAIL  QUAD3_AVAIL    PID    REFCNT&lt;BR /&gt;Memory Windows:&lt;BR /&gt;   0    Global         0     262128       261802     6066      228&lt;BR /&gt;   1    Unused         1     262128       262144     6238        0&lt;BR /&gt;   2    Unused         2     262128       262144        0        0&lt;BR /&gt;   3    Unused         3     262128       262144        0        0&lt;BR /&gt;   4    Unused         4     262128       262144        0        0&lt;BR /&gt;   5    Unused         5     262128       262144        0        0&lt;BR /&gt;   6    Unused         6     262128       262144        0        0&lt;BR /&gt;   7    Unused         7     262128       262144        0        0&lt;BR /&gt;   8    Unused         8     262128       262144        0        0&lt;BR /&gt;   9    Unused         9     262128       262144        0        0&lt;BR /&gt;  10    Unused        10     262128       262144        0        0&lt;BR /&gt;  11    Unused        11     262128       262144        0        0&lt;BR /&gt;  12    Unused        12     262128       262144        0        0&lt;BR /&gt;  13    Unused        13     262128       262144        0        0&lt;BR /&gt;  14    Unused        14     262128       262144        0        0&lt;BR /&gt;  15    Unused        15     262128       262144        0        0&lt;BR /&gt;  16    Unused        16     262128       262144        0        0&lt;BR /&gt;  17    Unused        17     262128       262144        0        0&lt;BR /&gt;  18    Unused        18     262128       262144        0        0&lt;BR /&gt;  19    Unused        19     262128       262144        0        0&lt;BR /&gt;  20    Unused        20     262128       262144        0        0&lt;BR /&gt;&lt;BR /&gt;Jose</description>
      <pubDate>Mon, 16 Sep 2024 09:09:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setmemwindow-command/m-p/3377780#M196901</guid>
      <dc:creator>jose-kl</dc:creator>
      <dc:date>2024-09-16T09:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Setmemwindow command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setmemwindow-command/m-p/3377781#M196902</link>
      <description>Hi jose, you are not using the memory windows...&lt;BR /&gt;I will look and see if I still have anything on how I implemented but it was some time ago (3 years now) and no more used:&lt;BR /&gt;Entry   USER_KEY KERN_KEY  QUAD2_AVAIL  QUAD3_AVAIL    PID    REFCNT&lt;BR /&gt;Memory Windows:&lt;BR /&gt;   0    Global         0     262144       244401        0     1387&lt;BR /&gt;   1   Private         1          0            0        0        1&lt;BR /&gt;   2    Unused         2     262144       262144        0        0&lt;BR /&gt;   3    Unused         3     262144       262144        0        0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Till then,&lt;BR /&gt;All the best&lt;BR /&gt;Victor&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Sep 2004 10:11:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setmemwindow-command/m-p/3377781#M196902</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2004-09-13T10:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Setmemwindow command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setmemwindow-command/m-p/3377782#M196903</link>
      <description>Jose,&lt;BR /&gt;I just tried, using your informations, here is what I get:&lt;BR /&gt;wilhelm:/home/vbe $ more memwin_test                                    &lt;BR /&gt;WinId=$(getmemwindow database1)&lt;BR /&gt;setmemwindow -i $WinId /home/vbe/memwin_test "DB1 says hello!"&lt;BR /&gt;wilhelm:/var/adm $ more /etc/services.window&lt;BR /&gt;#&lt;BR /&gt;# File: /etc/services.window&lt;BR /&gt;# @(#)B.11.11_LR&lt;BR /&gt;#&lt;BR /&gt;#       The format of this file is name followed by a space/tab followed by&lt;BR /&gt;#       a unique user key.  A memory window application uses the&lt;BR /&gt;#       getmemwindow(1M) command to extract the user key and then passes that&lt;BR /&gt;#       key to the setmemwindow(1M) command.  Using the same key places&lt;BR /&gt;#       those applications in the same memory window.&lt;BR /&gt;#&lt;BR /&gt;#       For example:&lt;BR /&gt;#&lt;BR /&gt;#               winid=getmemwindow database1&lt;BR /&gt;#               setmemwindow -i $winid startup_script arg1 arg2 arg3.&lt;BR /&gt;#&lt;BR /&gt;database1 20&lt;BR /&gt;database2 30&lt;BR /&gt;database3 40&lt;BR /&gt;wilhelm:/sm/bin $ ./memwin_stats -mw&lt;BR /&gt;Shared Memory:&lt;BR /&gt;T      ID     KEY        MODE        OWNER     GROUP   UserKey   KernId&lt;BR /&gt;m       0 0x411c275e --rw-rw-rw-      root      root2013202240  2013202240&lt;BR /&gt;m       1 0x4e0c0002 --rw-rw-rw-      root      root2013202240  2013202240&lt;BR /&gt;m       2 0x41200040 --rw-rw-rw-      root      root2013202240  2013202240&lt;BR /&gt;m       3 0x301c5765 --rw-rw-rw-      root      root2013202240  2013202240&lt;BR /&gt;m     516 0x0c6629c9 --rw-r-----      root      root2013202240  2013202240&lt;BR /&gt;m       5 0x06347849 --rw-rw-rw-      root      root2013202240  2013202240&lt;BR /&gt;m       6 0x49180029 --rw-r--r--      root      root2013202240  2013202240&lt;BR /&gt;m       7 0x00000000 D-rw-------      root      root2013202240  2013202240&lt;BR /&gt;m       8 0x00000000 D-rw-------       www     other2013202240  2013202240&lt;BR /&gt;Entry   USER_KEY KERN_KEY  QUAD2_AVAIL  QUAD3_AVAIL    PID    REFCNT&lt;BR /&gt;Memory Windows:&lt;BR /&gt;   0    Global         0     262144       253421        0      237&lt;BR /&gt;   1   Private         1          0            0        0        1&lt;BR /&gt;   2    Unused         2     262144       262144    23447        0&lt;BR /&gt;   3    Unused         3     262144       262144        0        0&lt;BR /&gt;&lt;BR /&gt;Now I execute after chmod 755 memwin_test:&lt;BR /&gt;wilhelm:/home/vbe $ ./memwin_test &lt;BR /&gt;&lt;BR /&gt;And here is the new output of memwin_stats:&lt;BR /&gt;wilhelm:/sm/bin $ ./memwin_stats -mw&lt;BR /&gt;Shared Memory:&lt;BR /&gt;T      ID     KEY        MODE        OWNER     GROUP   UserKey   KernId&lt;BR /&gt;m       0 0x411c275e --rw-rw-rw-      root      root2013202240  2013202240&lt;BR /&gt;m       1 0x4e0c0002 --rw-rw-rw-      root      root2013202240  2013202240&lt;BR /&gt;m       2 0x41200040 --rw-rw-rw-      root      root2013202240  2013202240&lt;BR /&gt;m       3 0x301c5765 --rw-rw-rw-      root      root2013202240  2013202240&lt;BR /&gt;m     516 0x0c6629c9 --rw-r-----      root      root2013202240  2013202240&lt;BR /&gt;m       5 0x06347849 --rw-rw-rw-      root      root2013202240  2013202240&lt;BR /&gt;m       6 0x49180029 --rw-r--r--      root      root2013202240  2013202240&lt;BR /&gt;m       7 0x00000000 D-rw-------      root      root2013202240  2013202240&lt;BR /&gt;m       8 0x00000000 D-rw-------       www     other2013202240  2013202240&lt;BR /&gt;Entry   USER_KEY KERN_KEY  QUAD2_AVAIL  QUAD3_AVAIL    PID    REFCNT&lt;BR /&gt;Memory Windows:&lt;BR /&gt;   0    Global         0     262144       253421        0      240&lt;BR /&gt;   1   Private         1          0            0        0        1&lt;BR /&gt;   2        20         2     262144       262144    24367      747&lt;BR /&gt;   3    Unused         3     262144       262144        0        0&lt;BR /&gt;wilhelm:/sm/bin $ &lt;BR /&gt;&lt;BR /&gt;I had to do a Ctrl_c to quit the memwin_test and the result :&lt;BR /&gt;wilhelm:/home/vbe $ ./memwin_test &lt;BR /&gt;&lt;BR /&gt;wilhelm:/home/vbe $ ^C&lt;BR /&gt;wilhelm:/sm/bin $ ./memwin_stats -mw&lt;BR /&gt;Shared Memory:&lt;BR /&gt;T      ID     KEY        MODE        OWNER     GROUP   UserKey   KernId&lt;BR /&gt;m       0 0x411c275e --rw-rw-rw-      root      root2013202240  2013202240&lt;BR /&gt;m       1 0x4e0c0002 --rw-rw-rw-      root      root2013202240  2013202240&lt;BR /&gt;m       2 0x41200040 --rw-rw-rw-      root      root2013202240  2013202240&lt;BR /&gt;m       3 0x301c5765 --rw-rw-rw-      root      root2013202240  2013202240&lt;BR /&gt;m     516 0x0c6629c9 --rw-r-----      root      root2013202240  2013202240&lt;BR /&gt;m       5 0x06347849 --rw-rw-rw-      root      root2013202240  2013202240&lt;BR /&gt;m       6 0x49180029 --rw-r--r--      root      root2013202240  2013202240&lt;BR /&gt;m       7 0x00000000 D-rw-------      root      root2013202240  2013202240&lt;BR /&gt;m       8 0x00000000 D-rw-------       www     other2013202240  2013202240&lt;BR /&gt;Entry   USER_KEY KERN_KEY  QUAD2_AVAIL  QUAD3_AVAIL    PID    REFCNT&lt;BR /&gt;Memory Windows:&lt;BR /&gt;   0    Global         0     262144       253421        0      239&lt;BR /&gt;   1   Private         1          0            0        0        1&lt;BR /&gt;   2    Unused         2     262144       262144    29380        0&lt;BR /&gt;   3    Unused         3     262144       262144        0        0&lt;BR /&gt;wilhelm:/sm/bin $ &lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;Victor</description>
      <pubDate>Mon, 13 Sep 2004 11:53:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setmemwindow-command/m-p/3377782#M196903</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2004-09-13T11:53:33Z</dc:date>
    </item>
  </channel>
</rss>

