Re: mmap failing

2007-12-17 Thread Wayne Christopher
wrote: On Dec 14 13:59, Wayne Christopher wrote: I have a 268MB file open for writing. I close it and then immediately try to mmap() it, and a get ENOMEM. However I do have the VM space available and can malloc() the size of the file right after the failure. Also, I have mmap()'ed

mmap failing

2007-12-14 Thread Wayne Christopher
I have a 268MB file open for writing. I close it and then immediately try to mmap() it, and a get ENOMEM. However I do have the VM space available and can malloc() the size of the file right after the failure. Also, I have mmap()'ed other similar files in the same program before this, but the

Re: VM and non-blocking writes

2007-12-13 Thread Wayne Christopher
Okay, here's my test program. Compile and run with no arguments, then connect to it from another machine - on a linux box I just did: python import socket s = socket.socket() s.connect(("name-of-windows-box", 12345)) At this point, nbcheck printed: listening to port 12345 on host xp1 (10.1.2.4

VM and non-blocking writes

2007-12-13 Thread Wayne Christopher
I have a server application that runs on XP under the latest cygwin, that opens up a socket connection to a client on another system, makes that socket non-blocking using fcntl( O_NDELAY), and then feeds the client a large file (100's of MBs) by doing the following: 1. call write() with th