Re: IPC::Shareable: Could not create semaphore set

2003-08-18 Thread Simon Wistow
On Sun, Aug 17, 2003 at 12:45:27PM -0400, Andy Ford said:
 Glad to hear you got it fixed.
 
 soliloquy++

:)

It could be a new Warnock-esque dilemma.

Good to see you getting it fixed though - I always find it fascinating 
to watch other people's thought processes.

Simon



Re: IPC::Shareable: Could not create semaphore set

2003-08-18 Thread Simon Wistow
On Mon, 18 Aug 2003, Simon Wistow wrote:

 On Sun, Aug 17, 2003 at 12:45:27PM -0400, Andy Ford said:
  Glad to hear you got it fixed.
 
  soliloquy++

 :)

 It could be a new Warnock-esque dilemma.

 Good to see you getting it fixed though - I always find it fascinating
 to watch other people's thought processes.


Thanks :)

And please pay no attention to the headers behind that message.

Or this one.



*ahem*




-- 
Simon Wistow



Re: IPC::Shareable: Could not create semaphore set

2003-08-17 Thread Andy Ford
Glad to hear you got it fixed.

soliloquy++


-- 
No, I'm Andy!


On Fri, 15 Aug 2003, Andy Ford wrote:

 Date: 15 Aug 2003 14:30:20 +0100
 From: Andy Ford [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 X-Mailer: Ximian Evolution 1.4.3
 Content-Type: text/plain
 X-Spam-Status: No, hits=-5.5 required=5.5
   tests=AWL,EMAIL_ATTRIBUTION,IN_REP_TO,KNOWN_MAILING_LIST,
 QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES,
 USER_AGENT_XIMIAN
   autolearn=ham version=2.55-chris_1.2
 X-Spam-Level:
 Subject: Re: IPC::Shareable: Could not create semaphore set

 I am getting somewhere now!!

 If I call 'tie' after I have created the hash, all is fine.
 Surely I should be able to create the shares memory and then add/remove
 entries in the hash at will!?

 Andy


 On Fri, 2003-08-15 at 14:12, Andy Ford wrote:
  This is the output of ipcs -A...
 
  IPC status from running system as of Fri Aug 15 13:10:04 UTC 2003
  T ID  KEYMODEOWNERGROUP  CREATOR
  CGROUP CBYTES  QNUM QBYTES LSPID LRPID   STIMERTIMECTIME
  Message Queues:
  T ID  KEYMODEOWNERGROUP  CREATOR
  CGROUP NATTCH  SEGSZ  CPID  LPID   ATIMEDTIMECTIME  ISMATTCH
  Shared Memory:
  m610   0xbc054--rw-rw-rw- rootother root
  other  0  65536  7680 0 no-entry no-entry 13:10:010
  T ID  KEYMODEOWNERGROUP  CREATOR
  CGROUP NSEMS   OTIMECTIME
  Semaphores:
 
  before running the script, ipcs -A was clear so the shared memory was
  created with ID 610
 
  Andy
 
  On Fri, 2003-08-15 at 13:44, Andy Ford wrote:
   Hello
  
   I have had a good look round at what may be causing the error..
   Could not create semaphore set: No space left on device
  
   What I am basically doing is the following...
  
   tie %myhash, 'IPC::Shareable', hashkey, {create = 1, exclusive = 0,
   mode = 0666, destroy = 1, size = 262144 };
  
   while($dstIP = $sth1-fetchrow())
   {
  print $dstIP\n;
  $myhash{$dstIP}{dispatched} = time();
  $myhash{$dstIP}{response}   = 0;
  $myhash{$dstIP}{num_polls}  = 1;
  $myhash{$dstIP}{action} = 0;
  
   }
  
   When I start up the process, I manage to print out 10 $dstIP addresses
   and then I get the error. This is rather a small amount of data to fit
   into 262144 bytes. Even if I increase this size, I get the same error at
   the same point. Without setting SHM fetchrow returns 20 $dstIP addresses
   and they print fine.
  
   Any ideas
  
   Andy
  
 







IPC::Shareable: Could not create semaphore set

2003-08-15 Thread Andy Ford
Hello

I have had a good look round at what may be causing the error..
Could not create semaphore set: No space left on device

What I am basically doing is the following...

tie %myhash, 'IPC::Shareable', hashkey, {create = 1, exclusive = 0,
mode = 0666, destroy = 1, size = 262144 };

while($dstIP = $sth1-fetchrow())
{
   print $dstIP\n;   
   $myhash{$dstIP}{dispatched} = time();
   $myhash{$dstIP}{response}   = 0;
   $myhash{$dstIP}{num_polls}  = 1;
   $myhash{$dstIP}{action} = 0;
   
}   

When I start up the process, I manage to print out 10 $dstIP addresses
and then I get the error. This is rather a small amount of data to fit
into 262144 bytes. Even if I increase this size, I get the same error at
the same point. Without setting SHM fetchrow returns 20 $dstIP addresses
and they print fine.

Any ideas

Andy




Re: IPC::Shareable: Could not create semaphore set

2003-08-15 Thread Andy Ford
This is the output of ipcs -A...

IPC status from running system as of Fri Aug 15 13:10:04 UTC 2003
T ID  KEYMODEOWNERGROUP  CREATOR  
CGROUP CBYTES  QNUM QBYTES LSPID LRPID   STIMERTIMECTIME 
Message Queues:
T ID  KEYMODEOWNERGROUP  CREATOR  
CGROUP NATTCH  SEGSZ  CPID  LPID   ATIMEDTIMECTIME  ISMATTCH
Shared Memory:
m610   0xbc054--rw-rw-rw- rootother root   
other  0  65536  7680 0 no-entry no-entry 13:10:010
T ID  KEYMODEOWNERGROUP  CREATOR  
CGROUP NSEMS   OTIMECTIME 
Semaphores:

before running the script, ipcs -A was clear so the shared memory was
created with ID 610

Andy

On Fri, 2003-08-15 at 13:44, Andy Ford wrote:
 Hello
 
 I have had a good look round at what may be causing the error..
 Could not create semaphore set: No space left on device
 
 What I am basically doing is the following...
 
 tie %myhash, 'IPC::Shareable', hashkey, {create = 1, exclusive = 0,
 mode = 0666, destroy = 1, size = 262144 };
 
 while($dstIP = $sth1-fetchrow())
 {
print $dstIP\n;   
$myhash{$dstIP}{dispatched} = time();
$myhash{$dstIP}{response}   = 0;
$myhash{$dstIP}{num_polls}  = 1;
$myhash{$dstIP}{action} = 0;

 }   
 
 When I start up the process, I manage to print out 10 $dstIP addresses
 and then I get the error. This is rather a small amount of data to fit
 into 262144 bytes. Even if I increase this size, I get the same error at
 the same point. Without setting SHM fetchrow returns 20 $dstIP addresses
 and they print fine.
 
 Any ideas
 
 Andy
 




Re: IPC::Shareable: Could not create semaphore set

2003-08-15 Thread Andy Ford
Actually, $dstIP prints out 10 times. and the maximum number of shares
mem segments is 10.
Maybe its the hash that isn't declared correctly!?

Andy

On Fri, 2003-08-15 at 14:12, Andy Ford wrote:
 This is the output of ipcs -A...
 
 IPC status from running system as of Fri Aug 15 13:10:04 UTC 2003
 T ID  KEYMODEOWNERGROUP  CREATOR  
 CGROUP CBYTES  QNUM QBYTES LSPID LRPID   STIMERTIMECTIME 
 Message Queues:
 T ID  KEYMODEOWNERGROUP  CREATOR  
 CGROUP NATTCH  SEGSZ  CPID  LPID   ATIMEDTIMECTIME  ISMATTCH
 Shared Memory:
 m610   0xbc054--rw-rw-rw- rootother root   
 other  0  65536  7680 0 no-entry no-entry 13:10:010
 T ID  KEYMODEOWNERGROUP  CREATOR  
 CGROUP NSEMS   OTIMECTIME 
 Semaphores:
 
 before running the script, ipcs -A was clear so the shared memory was
 created with ID 610
 
 Andy
 
 On Fri, 2003-08-15 at 13:44, Andy Ford wrote:
  Hello
  
  I have had a good look round at what may be causing the error..
  Could not create semaphore set: No space left on device
  
  What I am basically doing is the following...
  
  tie %myhash, 'IPC::Shareable', hashkey, {create = 1, exclusive = 0,
  mode = 0666, destroy = 1, size = 262144 };
  
  while($dstIP = $sth1-fetchrow())
  {
 print $dstIP\n;   
 $myhash{$dstIP}{dispatched} = time();
 $myhash{$dstIP}{response}   = 0;
 $myhash{$dstIP}{num_polls}  = 1;
 $myhash{$dstIP}{action} = 0;
 
  }   
  
  When I start up the process, I manage to print out 10 $dstIP addresses
  and then I get the error. This is rather a small amount of data to fit
  into 262144 bytes. Even if I increase this size, I get the same error at
  the same point. Without setting SHM fetchrow returns 20 $dstIP addresses
  and they print fine.
  
  Any ideas
  
  Andy
  
 




Re: IPC::Shareable: Could not create semaphore set

2003-08-15 Thread Andy Ford
I meant semaphores...

from 'sysdef -i'   I get 

* IPC Semaphores
*
10  semaphore identifiers (SEMMNI)
60  semaphores in system (SEMMNS)
30  undo structures in system (SEMMNU)
25  max semaphores per id (SEMMSL)
10  max operations per semop call (SEMOPM)
10  max undo entries per process (SEMUME)
 32767  semaphore maximum value (SEMVMX)
 16384  adjust on exit max value (SEMAEM)
*

Andy

On Fri, 2003-08-15 at 14:12, Andy Ford wrote:
 This is the output of ipcs -A...
 
 IPC status from running system as of Fri Aug 15 13:10:04 UTC 2003
 T ID  KEYMODEOWNERGROUP  CREATOR  
 CGROUP CBYTES  QNUM QBYTES LSPID LRPID   STIMERTIMECTIME 
 Message Queues:
 T ID  KEYMODEOWNERGROUP  CREATOR  
 CGROUP NATTCH  SEGSZ  CPID  LPID   ATIMEDTIMECTIME  ISMATTCH
 Shared Memory:
 m610   0xbc054--rw-rw-rw- rootother root   
 other  0  65536  7680 0 no-entry no-entry 13:10:010
 T ID  KEYMODEOWNERGROUP  CREATOR  
 CGROUP NSEMS   OTIMECTIME 
 Semaphores:
 
 before running the script, ipcs -A was clear so the shared memory was
 created with ID 610
 
 Andy
 
 On Fri, 2003-08-15 at 13:44, Andy Ford wrote:
  Hello
  
  I have had a good look round at what may be causing the error..
  Could not create semaphore set: No space left on device
  
  What I am basically doing is the following...
  
  tie %myhash, 'IPC::Shareable', hashkey, {create = 1, exclusive = 0,
  mode = 0666, destroy = 1, size = 262144 };
  
  while($dstIP = $sth1-fetchrow())
  {
 print $dstIP\n;   
 $myhash{$dstIP}{dispatched} = time();
 $myhash{$dstIP}{response}   = 0;
 $myhash{$dstIP}{num_polls}  = 1;
 $myhash{$dstIP}{action} = 0;
 
  }   
  
  When I start up the process, I manage to print out 10 $dstIP addresses
  and then I get the error. This is rather a small amount of data to fit
  into 262144 bytes. Even if I increase this size, I get the same error at
  the same point. Without setting SHM fetchrow returns 20 $dstIP addresses
  and they print fine.
  
  Any ideas
  
  Andy
  
 




Re: IPC::Shareable: Could not create semaphore set

2003-08-15 Thread Andy Ford
I am getting somewhere now!!

If I call 'tie' after I have created the hash, all is fine. 
Surely I should be able to create the shares memory and then add/remove
entries in the hash at will!?

Andy


On Fri, 2003-08-15 at 14:12, Andy Ford wrote:
 This is the output of ipcs -A...
 
 IPC status from running system as of Fri Aug 15 13:10:04 UTC 2003
 T ID  KEYMODEOWNERGROUP  CREATOR  
 CGROUP CBYTES  QNUM QBYTES LSPID LRPID   STIMERTIMECTIME 
 Message Queues:
 T ID  KEYMODEOWNERGROUP  CREATOR  
 CGROUP NATTCH  SEGSZ  CPID  LPID   ATIMEDTIMECTIME  ISMATTCH
 Shared Memory:
 m610   0xbc054--rw-rw-rw- rootother root   
 other  0  65536  7680 0 no-entry no-entry 13:10:010
 T ID  KEYMODEOWNERGROUP  CREATOR  
 CGROUP NSEMS   OTIMECTIME 
 Semaphores:
 
 before running the script, ipcs -A was clear so the shared memory was
 created with ID 610
 
 Andy
 
 On Fri, 2003-08-15 at 13:44, Andy Ford wrote:
  Hello
  
  I have had a good look round at what may be causing the error..
  Could not create semaphore set: No space left on device
  
  What I am basically doing is the following...
  
  tie %myhash, 'IPC::Shareable', hashkey, {create = 1, exclusive = 0,
  mode = 0666, destroy = 1, size = 262144 };
  
  while($dstIP = $sth1-fetchrow())
  {
 print $dstIP\n;   
 $myhash{$dstIP}{dispatched} = time();
 $myhash{$dstIP}{response}   = 0;
 $myhash{$dstIP}{num_polls}  = 1;
 $myhash{$dstIP}{action} = 0;
 
  }   
  
  When I start up the process, I manage to print out 10 $dstIP addresses
  and then I get the error. This is rather a small amount of data to fit
  into 262144 bytes. Even if I increase this size, I get the same error at
  the same point. Without setting SHM fetchrow returns 20 $dstIP addresses
  and they print fine.
  
  Any ideas
  
  Andy