Re: Thread memory allocation issue

2024-11-24 Thread Mark Geisert via Cygwin
Hi Teemu, On 11/18/2024 10:59 PM, Teepean via Cygwin wrote: 2. Compile BWA with rpmalloc and the following patch: // In thread worker function: #ifdef __CYGWIN__ rpmalloc_thread_initialize(); #endif // ... thread work ... #ifdef __CYGWIN__ rpmalloc_thread_finalize(1); #endif How, exactly,

Re: Thread memory allocation issue

2024-11-18 Thread Teepean via Cygwin
ree hours would take 24 hours or more on an unpatched bwa on Cygwin. >> 1. The default malloc implementation shows extremely high system time >> (11.265s) compared to the rpmalloc version (0.327s) >> 2. Total real time is about 4.5x slower with default malloc >> 3

Re: Thread memory allocation issue

2024-11-18 Thread Mark Geisert via Cygwin
ting processing in the usual case? Analysis 1. The default malloc implementation shows extremely high system time (11.265s) compared to the rpmalloc version (0.327s) 2. Total real time is about 4.5x slower with default malloc 3. The dramatic difference in system time suggests heavy contention in the m

Thread memory allocation issue

2024-11-17 Thread Teepean via Cygwin
tal real time is about 4.5x slower with default malloc 3. The dramatic difference in system time suggests heavy contention in the memory allocation subsystem 4. The issue only manifests on Cygwin with bwa; the same code performs normally on native Linux and MacOS 5. The issue manifests with rec

Re: cygwin application on MsTerminal, enabling win32-raw-mode results in runway memory/CPU usage.

2024-08-31 Thread Takashi Yano via Cygwin
r the cygwin console code because the local key cache should be able to access from other process running in the same console. This needs inter-process-communication or shared memory. > Alternatively, from research these pseudo key events have Vk=0/Sc=0 values > (only char and down are set);

Re: cygwin application on MsTerminal, enabling win32-raw-mode results in runway memory/CPU usage.

2024-08-30 Thread Adamyg Mob via Cygwin
I raised the same question under: https://github.com/microsoft/terminal/issues/17824 *cons_master_thread() should *possibly maintain a local key cache and not push back events. Alternatively, from research these pseudo key events have Vk=0/Sc=0 values (only char and down are set); as such peek th

Re: cygwin application on MsTerminal, enabling win32-raw-mode results in runway memory/CPU usage.

2024-08-30 Thread Takashi Yano via Cygwin
On Sat, 31 Aug 2024 14:20:04 +0900 Takashi Yano wrote: > Thanks for the pointer. Unfortunately, the document does not mention > about the behaviour of WriteConsoleInput() in the win32-inpu-mode. > > I expected that ReadConsoleInput() returns the INPUT_RECORDS which > WriteConsoleInput() sends. How

Re: cygwin application on MsTerminal, enabling win32-raw-mode results in runway memory/CPU usage.

2024-08-30 Thread Takashi Yano via Cygwin
Thanks for the pointer. Unfortunately, the document does not mention about the behaviour of WriteConsoleInput() in the win32-inpu-mode. I expected that ReadConsoleInput() returns the INPUT_RECORDS which WriteConsoleInput() sends. However, that does not seem true in this mode. On Sat, 31 Aug 2024

Re: cygwin application on MsTerminal, enabling win32-raw-mode results in runway memory/CPU usage.

2024-08-30 Thread Adamyg Mob via Cygwin
-raw-mode "\033[?9001h" enabled, > > after brief input in the application becoming unresponsive and the > session > > rapidly consumes all available memory/cpu.. > > > > Test application attached, plus ticket > > https://github.com/microsoft/terminal/iss

Re: cygwin application on MsTerminal, enabling win32-raw-mode results in runway memory/CPU usage.

2024-08-30 Thread Takashi Yano via Cygwin
pplication under a MsTerminal > session, with win32-raw-mode "\033[?9001h" enabled, > after brief input in the application becoming unresponsive and the session > rapidly consumes all available memory/cpu.. > > Test application attached, plus ticket > https://github.com/micro

cygwin application on MsTerminal, enabling win32-raw-mode results in runway memory/CPU usage.

2024-08-30 Thread Adamyg Mob via Cygwin
fter brief input in the application becoming unresponsive and the session rapidly consumes all available memory/cpu.. Test application attached, plus ticket https://github.com/microsoft/terminal/issues/17824 contains additional information. Regards /* * win32-input-mode key test * * Bui

Re: Memory Barriers at pthread using CYGWIN

2023-06-22 Thread Takashi Yano via Cygwin
On Thu, 22 Jun 2023 13:48:53 +0200 Corinna Vinschen wrote: > On Jun 22 19:19, Takashi Yano via Cygwin wrote: > > Any suggestions? > > > > On Tue, 20 Jun 2023 21:53:00 +0900 > > Takashi Yano wrote: > > > I looked into this problem, and I think this is a problem regarding > > > _my_tls initializatio

Re: Memory Barriers at pthread using CYGWIN

2023-06-22 Thread Corinna Vinschen via Cygwin
On Jun 22 19:19, Takashi Yano via Cygwin wrote: > Any suggestions? > > On Tue, 20 Jun 2023 21:53:00 +0900 > Takashi Yano wrote: > > I looked into this problem, and I think this is a problem regarding > > _my_tls initialization order, so far. This seems to happen in LDAP > > environment. > > > > M

Re: Memory Barriers at pthread using CYGWIN

2023-06-22 Thread Takashi Yano via Cygwin
Any suggestions? On Tue, 20 Jun 2023 21:53:00 +0900 Takashi Yano wrote: > On Sat, 10 Jun 2023 13:08:04 +0900 (JST) > Takashi Yano wrote: > > "M?min A." wrote: > > > //windows cmd line > > > C:\cygwin64\home\maydin\test>cygcheck ./main.exe > > > C:\cygwin64\home\maydin\test\main.exe > > > C:\cygw

Re: Memory Barriers at pthread using CYGWIN

2023-06-20 Thread Takashi Yano via Cygwin
On Sat, 10 Jun 2023 13:08:04 +0900 (JST) Takashi Yano wrote: > "M?min A." wrote: > > //windows cmd line > > C:\cygwin64\home\maydin\test>cygcheck ./main.exe > > C:\cygwin64\home\maydin\test\main.exe > > C:\cygwin64\bin\cygwin1.dll > > C:\WINDOWS\system32\KERNEL32.dll > > C:\WINDOWS\syst

Re: Memory Barriers at pthread using CYGWIN

2023-06-09 Thread Takashi Yano via Cygwin
"M?min A." wrote: > //windows cmd line > C:\cygwin64\home\maydin\test>cygcheck ./main.exe > C:\cygwin64\home\maydin\test\main.exe > C:\cygwin64\bin\cygwin1.dll > C:\WINDOWS\system32\KERNEL32.dll > C:\WINDOWS\system32\ntdll.dll > C:\WINDOWS\system32\KERNELBASE.dll > > C:\cygwin64\

Re: Memory Barriers at pthread using CYGWIN

2023-06-09 Thread Takashi Yano via Cygwin
> I found a clue. > I'm using cygwin as in windows environment path, C:\cygwin64\bin > > when I open the cygwin terminal , the test is passed but when I close > cygwin terminal and run again the same test exe file then it fails. > > is there any connection about that ? > > The test is valid for

Re: Memory Barriers at pthread using CYGWIN

2023-06-08 Thread Duncan Roe via Cygwin
gt; #include > #include > > int x = 0; > int y = 0; > int r1 = 0; > int r2 = 0; > > pthread_barrier_t barrier; > > void* thread1(void* arg) { > y = 1; > pthread_barrier_wait(&barrier); // Memory barrier > r1 = x; > return NULL; > } >

Re: Memory Barriers at pthread using CYGWIN

2023-06-08 Thread Takashi Yano via Cygwin
On Thu, 8 Jun 2023 22:58:59 + Mümin A. wrote: > r1=0 and r2=0 > That is my result with Cygwin on windows. It’s false. > > When I compiled with gcc. The result is correct but when I use lasted Cygwin > gcc in windows 10. The result is false. I cannot reproduce your problem. If I compile main

Re: [EXTERNAL] Memory Barriers at pthread using CYGWIN

2023-06-08 Thread Kevin Schnitzius via Cygwin
On Thursday, June 8, 2023 at 06:59:53 PM EDT, Mümin A. via Cygwin wrote: > > r1=0 and r2=0 > That is my result with Cygwin on windows. It’s false. >  > When I compiled with gcc. The result is correct but when I use lasted Cygwin > gcc in windows 10. The result is false. > cmake . CMake Error

Re: [EXTERNAL] Memory Barriers at pthread using CYGWIN

2023-06-08 Thread Mümin A . via Cygwin
IH/NLM/NCBI) [C] Sent: Thursday, June 8, 2023 5:37:31 PM To: Mümin A. ; cygwin@cygwin.com Subject: RE: [EXTERNAL] Memory Barriers at pthread using CYGWIN > result should be > > r1 = 1, r2 = 1 > And what was the result you saw? Anton Lavrentiev Contractor NIH/NLM/NCBI -- Problem r

RE: [EXTERNAL] Memory Barriers at pthread using CYGWIN

2023-06-08 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
> result should be > > r1 = 1, r2 = 1 > And what was the result you saw? Anton Lavrentiev Contractor NIH/NLM/NCBI -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: ht

Memory Barriers at pthread using CYGWIN

2023-06-08 Thread Mümin A . via Cygwin
tions(-D__POSIX_VISIBLE=200112 -D_POSIX_C_SOURCE=200112) add_executable(test main.cpp) target_link_libraries(test pthread)#include #include int x = 0; int y = 0; int r1 = 0; int r2 = 0; pthread_barrier_t barrier; void* thread1(void* arg) { y = 1; pthread_barrier_wait(&barrier);

Re: CRITICAL ls MEMORY LEAK

2021-02-22 Thread Brian Inglis
On 2021-02-22 14:50, Hans-Bernhard Bröker wrote: Am 22.02.2021 um 21:30 schrieb Brian Inglis: I've often wondered if the heavy activity is due to Windows' defaults to writing files with F+RX perms which triggers executable virus scans? That could only be the case if Windows actually had an 'x

Re: CRITICAL ls MEMORY LEAK

2021-02-22 Thread Hans-Bernhard Bröker
Am 22.02.2021 um 21:30 schrieb Brian Inglis: I've often wondered if the heavy activity is due to Windows' defaults to writing files with F+RX perms which triggers executable virus scans? That could only be the case if Windows actually had an 'x' permission bit. -- Problem reports: https:/

Re: CRITICAL ls MEMORY LEAK

2021-02-22 Thread Brian Inglis
On 2021-02-22 13:12, Doug Henderson wrote: On Sun, 21 Feb 2021 at 08:21, Satalink wrote: I deal with a lot of very large files on a regular basis. I've noticed that when I delve into these directories using in mintty and issue the command ls -l (or ls -color=auto), a very large junk of m

Re: CRITICAL ls MEMORY LEAK

2021-02-22 Thread Doug Henderson via Cygwin
On Sun, 21 Feb 2021 at 08:21, Satalink via Cygwin wrote: > > I deal with a lot of very large files on a regular basis. I've noticed that > when I delve into these directories using in mintty and issue the command ls > -l (or ls -color=auto), a very large junk of memory i

Re: CRITICAL ls MEMORY LEAK

2021-02-21 Thread Brian Inglis
On 2021-02-21 08:18, Satalink via Cygwin wrote: I deal with a lot of very large files on a regular basis. I've noticed that when I delve into these directories using in mintty and issue the command ls -l (or ls -color=auto), a very large junk of memory is consumed. The memory leak see

CRITICAL ls MEMORY LEAK

2021-02-21 Thread Satalink via Cygwin
I deal with a lot of very large files on a regular basis. I've noticed that when I delve into these directories using in mintty and issue the command ls -l (or ls -color=auto), a very large junk of memory is consumed. The memory leak seems to be proportionate to the number and size of

RE: Segfault when accessing mmaped memory on Cygwin

2021-01-02 Thread Steven Bardwell
Thomas writes: >> when trying out uf a certain shared memory allocator would work on >> Cygwin, I tried out the sample program below (which works on Linunx, >> *BSD, AIX and Solaris) and got a suprising falure > Actually, the failure wasn't all that unexpected

Re: Segfault when accessing mmaped memory on Cygwin

2021-01-02 Thread Thomas Koenig via Cygwin
I wrote: when trying out uf a certain shared memory allocator would work on Cygwin, I tried out the sample program below (which works on Linunx, *BSD, AIX and Solaris) and got a suprising falure Actually, the failure wasn't all that unexpected, given that I had put the ftruncate int

Segfault when accessing mmaped memory on Cygwin

2021-01-01 Thread Thomas Koenig via Cygwin
Hi, when trying out uf a certain shared memory allocator would work on Cygwin, I tried out the sample program below (which works on Linunx, *BSD, AIX and Solaris) and got a suprising falure with a segmentation fault at the line *i1 = 42; mmap() had succeeded. Is this a known issue, and

Re: Cygwin PHP (all available versions) has a hard 4MB memory limit

2020-08-04 Thread Ken Brown via Cygwin
[Once again, please don't top-post on this list.] On 8/4/2020 9:35 AM, Cary Lewis wrote: Thank you Ken, I followed your instructions and I am now able to use https and composer with your versions of php. Did you have to apply any of the cygport patches? I applied all of them except for one h

Re: Cygwin PHP (all available versions) has a hard 4MB memory limit

2020-08-04 Thread Cary Lewis via Cygwin
: > [Please don't top-post on this list.] > > On 8/3/2020 9:57 PM, Cary Lewis wrote: > > I am running php on two different Windows 10 computers, and on one > machine I can > > run composer with no issues, but on other I get our of memory issues. > > > > Both re

Re: Cygwin PHP (all available versions) has a hard 4MB memory limit

2020-08-04 Thread Ken Brown via Cygwin
[Please don't top-post on this list.] On 8/3/2020 9:57 PM, Cary Lewis wrote: I am running php on two different Windows 10 computers, and on one machine I can run composer with no issues, but on other I get our of memory issues. Both report:  php -v PHP 7.3.7 (cli) (built: Jul 21 2019

Re: Cygwin PHP (all available versions) has a hard 4MB memory limit

2020-08-03 Thread Cary Lewis via Cygwin
I am running php on two different Windows 10 computers, and on one machine I can run composer with no issues, but on other I get our of memory issues. Both report: php -v PHP 7.3.7 (cli) (built: Jul 21 2019 18:10:35) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.7, Copyright (c

Re: Cygwin PHP (all available versions) has a hard 4MB memory limit

2020-07-21 Thread km2z7kca0oge--- via Cygwin
Hey Ken, Thanks so much for looking into this further. I thought it was the malloc patch too, in fact I can compile a PHP out of the box without any of the patches Cygwin applies and it appears at a cursory glance to run fine and so I'm kinda unsure as to why there are so many patches for Cygwi

Re: Cygwin PHP (all available versions) has a hard 4MB memory limit

2020-07-21 Thread Ken Brown via Cygwin
On 7/18/2020 10:11 PM, Ken Brown via Cygwin wrote: On 7/17/2020 5:39 PM, km2z7kca0oge--- via Cygwin wrote: Hi there, Recently I've noticed that PHP seems have to hard 4MB memory limit, [...] Example script: ``` file_get_contents('http://mirror.cwcs.co.uk/centos/8.2.2004/isos/x86

Re: Cygwin PHP (all available versions) has a hard 4MB memory limit

2020-07-18 Thread Ken Brown via Cygwin
On 7/17/2020 5:39 PM, km2z7kca0oge--- via Cygwin wrote: Hi there, Recently I've noticed that PHP seems have to hard 4MB memory limit, [...] Example script: ``` http://mirror.cwcs.co.uk/centos/8.2.2004/isos/x86_64/CentOS-8.2.2004-x86_64-dvd1.iso'); // A large file such

Re: Cygwin PHP (all available versions) has a hard 4MB memory limit

2020-07-18 Thread Brian Inglis
versions from the `setup-x86-64.exe` (7.3.4-1 and 7.1.16-1) >From below it appears you have also tested current PHP 7.3.7 with Zend 3.3.7. One common issue with Cygwin installations causing memory problems is when autorebase has not run or completed properly, so please try the following command on

RE: Cygwin PHP (all available versions) has a hard 4MB memory limit

2020-07-18 Thread km2z7kca0oge--- via Cygwin
Oh, to add one more thing here, I've noticed there's a patch in the Cygwin Source Package called `7.1.9-malloc-cygwin.patch` which references something to do with Page sizes and 4096 which makes me wonder if this is interfering somehow. > +#define REAL_PAGE_SIZE 4096 --Jack -- Problem repo

RE: Cygwin PHP (all available versions) has a hard 4MB memory limit

2020-07-18 Thread km2z7kca0oge--- via Cygwin
ws 10 64-bit (10.0.18363) - One machine is 16GB, the other 8GB RAM. - All PHP versions from the `setup-x86-64.exe` (7.3.4-1 and 7.1.16-1) > - you have defaulted to or specified a PHP configuration limit of 4MB memory > for PHP tasks, or Nope, as shown in the output of my example, the

Re: Cygwin PHP (all available versions) has a hard 4MB memory limit

2020-07-18 Thread Andrey Repin
Greetings, km2z7kca0oge--- via Cygwin! > Recently I've noticed that PHP seems have to hard 4MB memory limit, even > when overridden in the settings. For whatever reason the bundled PHP > versions with Cygwin have this problem. > The failing message is `Out of memory` which ind

Re: Cygwin PHP (all available versions) has a hard 4MB memory limit

2020-07-17 Thread Brian Inglis
On 2020-07-17 15:39, km2z7kca0oge--- via Cygwin wrote: > Recently I've noticed that PHP seems have to hard 4MB memory limit, even when > overridden in the settings. For whatever reason the bundled PHP versions > with Cygwin have this problem. > The failing message is `Out

Cygwin PHP (all available versions) has a hard 4MB memory limit

2020-07-17 Thread km2z7kca0oge--- via Cygwin
Hi there, Recently I've noticed that PHP seems have to hard 4MB memory limit, even when overridden in the settings. For whatever reason the bundled PHP versions with Cygwin have this problem. The failing message is `Out of memory` which indicates PHP thinks the system has exhausted al

Re: php memory errors

2020-06-29 Thread Cary Lewis via Cygwin
Yes, I reported this last week - composer (composer.phar) gives out of memory errors, despite having max_memory_limit set to -1. I have tried to compile php myself, but to no avail - php 7.3.19 doesn't compile, there are errors in the zend framework. php-7.3.19/Zend/zend_portability.h:3

composer runs out of memory

2020-06-27 Thread Cary Lewis via Cygwin
I am running cygwin 64 bit and have installed the latest 7.3.7 version of php. When I attempt to run composer, I get a fatal out of memory error. In my php.ini file I have set max memory to -1, and php -r "echo ini_get('memory_limit').PHP_EOL;" -1 confirms it. I saw a s

Re: php memory errors

2020-06-19 Thread Andrey Repin
Greetings, Richard H Lee! > I've recently gotten out of memory errors with php, with tasks that > previously have worked fine. Which errors? Why don't you run your tasks in native PHP? > Has anybody else experienced this too? Useless question. -- With best regards,

php memory errors

2020-06-19 Thread Richard H Lee via Cygwin
I've recently gotten out of memory errors with php, with tasks that previously have worked fine. Has anybody else experienced this too? -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs

Re: Unable to install Cygwin snapshot - shared_info::initialize: size of shared memory region changed from 50104 to 49080

2020-02-02 Thread Andrey Repin
Greetings, Takashi Yano! > On Sun, 2 Feb 2020 23:52:26 +0300 > Andrey Repin wrote: >> Trying to rebase a newly unpacked Cygwin snapshot leads to >> 0 [main] dash (220072) shared_info::initialize: size of shared memory region >> changed from 50104 to 49080 >> >&

Re: Unable to install Cygwin snapshot - shared_info::initialize: size of shared memory region changed from 50104 to 49080

2020-02-02 Thread Takashi Yano
On Sun, 2 Feb 2020 23:52:26 +0300 Andrey Repin wrote: > Trying to rebase a newly unpacked Cygwin snapshot leads to > 0 [main] dash (220072) shared_info::initialize: size of shared memory region > changed from 50104 to 49080 > > Any hints? Does not rebooting windows solve? -

Unable to install Cygwin snapshot - shared_info::initialize: size of shared memory region changed from 50104 to 49080

2020-02-02 Thread Andrey Repin
Greetings, All! Trying to rebase a newly unpacked Cygwin snapshot leads to 0 [main] dash (220072) shared_info::initialize: size of shared memory region changed from 50104 to 49080 Any hints? -- With best regards, Andrey Repin Sunday, February 2, 2020 23:51:26 Sorry for my terrible english

Re: Clang is using the wrong memory model

2019-08-19 Thread Corinna Vinschen
gt; If the medium model is wasteful in clang, that's a clang > > optimization problem, not a Cygwin problem. > > The medium model in Clang is not wasteful. Your words: * The memory models work differently in gcc an Clang. Gcc with a medium or large memory model is using 64-bi

Re: Clang is using the wrong memory model

2019-08-18 Thread Agner Fog
On 18/08/2019 13.57, Corinna Vinschen wrote: Nope, Cygwin uses the Windows loader. Then, how do you do the extra linking? What is producing the "Cygwin runtime failure" message when loading/linking a DLL fails? If the medium model is wasteful in clang, that's a clang optimization problem,

Re: Clang is using the wrong memory model

2019-08-18 Thread Corinna Vinschen
the wrong model, that's all. That's a bug in clang or whatever it's using under the hood. Clang should follow what GCC does for years, using the medium model on Cygwin. > When I complained to LLVM they said it was a Cygwin > issue, and that you were using the wrong memory m

Re: Clang is using the wrong memory model

2019-08-17 Thread Agner Fog
Thanks a lot for your help in clarifying this. When I complained here about the wasteful 64-bit addresses you said that it was an LLVM issue. When I complained to LLVM they said it was a Cygwin issue, and that you were using the wrong memory model. All this confusion is due to a terrible

Re: Clang is using the wrong memory model

2019-08-17 Thread Corinna Vinschen
", __progname); } EOF $ cat > main.c < gcc is using the small memory model by default in Cygwin64, and it works. No, it's not, see above. > clang is using the small memory by default when cross-compiling for a > Cygwin64 target from Linux, and it works. ...in *your* ex

Re: Clang is using the wrong memory model

2019-08-16 Thread Agner Fog
address, and 64-bit absolute address. The 32-bit absolute address can be used in Linux, but not in Win64 and MacOS. This is why the small memory model is different in Linux and Windows (64 bit). Dynamic linking is done by the loader, not the linker. If a function in ab.exe calls function C() in

Re: Clang is using the wrong memory model

2019-08-16 Thread Kai Tietz
Hey, Just my 5 cents to this. As Corinna pointed out, is the case, that a "small" memory model application works for you, no valid prove that all application will work on such a model. Another thing, which cygwin depends heavily on is the pseudo-relocation stuff. It is not guaranteed

Re: Clang is using the wrong memory model

2019-08-16 Thread Corinna Vinschen
On Aug 16 12:38, Agner Fog wrote: > > On 16/08/2019 11.52, Corinna Vinschen wrote: > > 2 GB. Think errno accessed from another DLL. Your application works only > > by chance. > > Good example. > > errno appears to be a global variable for historical reasons, but errno is > implemented as a macro

Re: Clang is using the wrong memory model

2019-08-16 Thread Agner Fog
On 16/08/2019 11.52, Corinna Vinschen wrote: 2 GB. Think errno accessed from another DLL. Your application works only by chance. Good example. errno appears to be a global variable for historical reasons, but errno is implemented as a macro that translates to a call to the imported functio

Re: Clang is using the wrong memory model

2019-08-16 Thread Corinna Vinschen
On Aug 16 11:27, Agner Fog wrote: > Thanks for your replies. > > A Cygwin application with -mcmodel=small appears to work fine. > > As I explained, -mcmodel=small does something else when the target is > Windows. It does not require addresses to be below 2GB, it only requires the > distance betwe

Re: Clang is using the wrong memory model

2019-08-16 Thread Agner Fog
s a Cygwin application it *must* at least be compiled with -mcmodel=medium. The reason is the standarized memory layout of Cygwin application and DLLs. Linux Clang with --target=x86_64-pc-cygwin gives the small memory model. Which is wrong. I took this to the LLVM Bugzilla as you asked me

Re: Clang is using the wrong memory model

2019-08-16 Thread Corinna Vinschen
ast be compiled with -mcmodel=medium. The reason is the standarized memory layout of Cygwin application and DLLs. > Linux Clang with --target=x86_64-pc-cygwin gives the small memory model. Which is wrong. > I took this to the LLVM Bugzilla as you asked me to: > https://bugs.llvm.org/

Re: Clang is using the wrong memory model

2019-08-16 Thread Mark Geisert
to my tests, while the right model is -mcmodel=small Linux Clang with --target=x86_64-pc-cygwin gives the small memory model. I took this to the LLVM Bugzilla as you asked me to: https://bugs.llvm.org/show_bug.cgi?id=42983 Disclaimer: I am not a Cygwin maintainer or the Cygwin Clang maint

Clang is using the wrong memory model

2019-08-15 Thread Agner Fog
Cygwin Clang is using -mcmodel=medium as default for Win64, according to my tests, while the right model is -mcmodel=small Linux Clang with --target=x86_64-pc-cygwin gives the small memory model. I took this to the LLVM Bugzilla as you asked me to: https://bugs.llvm.org/show_bug.cgi?id=42983

Re: possible problem with memory allocation using calloc/mmap/munmap

2019-06-07 Thread Corinna Vinschen
On Jun 6 15:13, Stanislav Kascak wrote: > > > [...] > > > I played around a bit and I can confirm it would be consistent with > > > current behavior: > > > memwrite <0 - filesize) - no error, written to file > > > memwrite > > memwrite <4k, 64k) - SIGSEGV > > > memwrite <64k, mmap alloc size) - S

Re: possible problem with memory allocation using calloc/mmap/munmap

2019-06-06 Thread Stanislav Kascak
> > > > > > > > It seems that when mmap() is called with length argument > > > > > > > > exceeding > > > > > > > > size of file, only memory to fit that file is allocated. > > > > > > > > munmap() &g

Re: possible problem with memory allocation using calloc/mmap/munmap

2019-06-05 Thread Corinna Vinschen
On Jun 4 18:01, Stanislav Kascak wrote: > > > > > > > It seems that when mmap() is called with length argument exceeding > > > > > > > size of file, only memory to fit that file is allocated. munmap() > > > > > > > however frees t

Re: possible problem with memory allocation using calloc/mmap/munmap

2019-06-04 Thread Stanislav Kascak
> > > > > > It seems that when mmap() is called with length argument exceeding > > > > > > size of file, only memory to fit that file is allocated. munmap() > > > > > > however frees the full specified length. [...] > > > > >

Re: possible problem with memory allocation using calloc/mmap/munmap

2019-06-04 Thread Corinna Vinschen
On Jun 4 15:48, Stanislav Kascak wrote: > > > > > It seems that when mmap() is called with length argument exceeding > > > > > size of file, only memory to fit that file is allocated. munmap() > > > > > however frees the full specified length. [...] &

Re: possible problem with memory allocation using calloc/mmap/munmap

2019-06-04 Thread Stanislav Kascak
> > > > It seems that when mmap() is called with length argument exceeding > > > > size of file, only memory to fit that file is allocated. munmap() > > > > however frees the full specified length. Since (at least on my > > > > computer) big chunk

Re: possible problem with memory allocation using calloc/mmap/munmap

2019-06-04 Thread Corinna Vinschen
On Jun 4 11:38, Stanislav Kascak wrote: > > > It seems that when mmap() is called with length argument exceeding > > > size of file, only memory to fit that file is allocated. munmap() > > > however frees the full specified length. Since (at least on my > >

Re: possible problem with memory allocation using calloc/mmap/munmap

2019-06-04 Thread Stanislav Kascak
> > It seems that when mmap() is called with length argument exceeding > > size of file, only memory to fit that file is allocated. munmap() > > however frees the full specified length. Since (at least on my > > computer) big chunk of memory allocated by calloc() i

Re: possible problem with memory allocation using calloc/mmap/munmap

2019-06-03 Thread Corinna Vinschen
On May 3 13:33, Stanislav Kascak wrote: > Hello cygwin team, > > I came across a problem with memory allocation/deallocation when > trying to compile and run tests of openldap under cygwin. > > I created a test program to simulate sequence of actions. First a > bigger chu

Re: possible problem with memory allocation using calloc/mmap/munmap

2019-05-20 Thread Ken Brown
On 5/3/2019 7:33 AM, Stanislav Kascak wrote: > I came across a problem with memory allocation/deallocation when > trying to compile and run tests of openldap under cygwin. Corinna can give you a definitive response when she returns from vacation, but I looked at the code and have a few co

possible problem with memory allocation using calloc/mmap/munmap

2019-05-03 Thread Stanislav Kascak
Hello cygwin team, I came across a problem with memory allocation/deallocation when trying to compile and run tests of openldap under cygwin. I created a test program to simulate sequence of actions. First a bigger chunk of memory (>~262kB) is allocated using calloc(), then mmap() is called w

Re: emacs-X11 memory leak?

2019-03-08 Thread Corinna Vinschen
> >>>>> 3.22.28) of 2018-05-28 > >>>>> This started happening about the time I upgraded to Cygwin 3.0.x. > >>>> > >>>> See http://www.cygwin.org/ml/cygwin/2019-03/msg00122.html, and try the > >>>> latest cygwin snap

RE: emacs-X11 memory leak?

2019-03-07 Thread Rockefeller, Harry
>>> -Original Message- >>> From: cygwin-ow...@cygwin.com On Behalf Of >>> Ken Brown >>> Sent: Thursday, March 07, 2019 9:09 AM >>>> To: cygwin@cygwin.com >>>> Subject: Re: emacs-X11 memory leak? >> >>>> On 3

Re: emacs-X11 memory leak?

2019-03-07 Thread Ken Brown
On 3/7/2019 3:00 PM, Rockefeller, Harry wrote: > >>> -Original Message- >>> From: cygwin-ow...@cygwin.com On Behalf Of >>> Ken Brown >>> Sent: Thursday, March 07, 2019 9:09 AM >>> To: cygwin@cygwin.com >>> Subject: Re: emacs-X11 me

RE: emacs-X11 memory leak?

2019-03-07 Thread Rockefeller, Harry
>>-Original Message- >>From: cygwin-ow...@cygwin.com On Behalf Of >>Ken Brown >>Sent: Thursday, March 07, 2019 9:09 AM >>To: cygwin@cygwin.com >>Subject: Re: emacs-X11 memory leak? >>On 3/7/2019 9:53 AM, Rockefeller, Harry wrote: >>>

RE: emacs-X11 memory leak?

2019-03-07 Thread Rockefeller, Harry
>-Original Message- >From: cygwin-ow...@cygwin.com On Behalf Of Ken Brown >Sent: Thursday, March 07, 2019 9:09 AM >To: cygwin@cygwin.com >Subject: Re: emacs-X11 memory leak? >On 3/7/2019 9:53 AM, Rockefeller, Harry wrote: >> CYGWIN_NT-6.1 HARRYR-PC 3.0.1(0.3

Re: emacs-X11 memory leak?

2019-03-07 Thread Ken Brown
not claiming > there is a memory leak, but rather how to test what's going on. > > I don't know if this is relevant. I got this error when I started emacs with > -Q option: > ** (emacs:2017): WARNING **: Error retrieving accessibility bus address: > org.freedesktop.DB

emacs-X11 memory leak?

2019-03-07 Thread Rockefeller, Harry
CYGWIN_NT-6.1 HARRYR-PC 3.0.1(0.338/5/3) 2019-02-20 10:19 x86_64 Cygwin GNU Emacs 26.1 (build 1, x86_64-unknown-cygwin, GTK+ Version 3.22.28) of 2018-05-28 I got egg on my face with my last post to Cygwin. So, no, I'm not claiming there is a memory leak, but rather how to test what'

Re: memory reported in /proc/pid/status is wrongly scaled

2018-08-21 Thread Corinna Vinschen
On Aug 21 16:53, Livio Bertacco wrote: > Thanks Corinna, I tried the developer snapshot and the VmSize line from > "status" file looks good now. > > What do you think about adding the VmPeak line too? (I can create the patch > myself). > > > On second thought there's more wrong than just that. >

Re: memory reported in /proc/pid/status is wrongly scaled

2018-08-21 Thread Livio Bertacco
inschen > To: cygwin@cygwin.com > Cc: > Bcc: > Date: Fri, 17 Aug 2018 20:44:02 +0200 > Subject: Re: memory reported in /proc/pid/status is wrongly scaled > On Aug 17 19:14, Corinna Vinschen wrote: > > On Aug 17 16:05, Livio Bertacco wrote: > > > Hi, > > >

Re: memory reported in /proc/pid/status is wrongly scaled

2018-08-17 Thread Corinna Vinschen
On Aug 17 19:14, Corinna Vinschen wrote: > On Aug 17 16:05, Livio Bertacco wrote: > > Hi, > > While playing with reading process memory usage in Linux and cygwin, I > > found that cygwin reports too large values in /proc/self/status (in 2.10.0 > > and earlier). > >

Re: memory reported in /proc/pid/status is wrongly scaled

2018-08-17 Thread Corinna Vinschen
On Aug 17 16:05, Livio Bertacco wrote: > Hi, > While playing with reading process memory usage in Linux and cygwin, I > found that cygwin reports too large values in /proc/self/status (in 2.10.0 > and earlier). > Whenever I was allocating a few kB in my test program, the VmSize

memory reported in /proc/pid/status is wrongly scaled

2018-08-17 Thread Livio Bertacco
Hi, While playing with reading process memory usage in Linux and cygwin, I found that cygwin reports too large values in /proc/self/status (in 2.10.0 and earlier). Whenever I was allocating a few kB in my test program, the VmSize line in /proc/self/status was growing several times faster. Small

Re: fork fails after nmap with hint address in an unmapped memory region

2017-12-10 Thread Corinna Vinschen
8, St=C3=A9phane Mbape via cygwin wrote: > > > Hello, > > >=20 > > > While embeding luajit in a c=C2=A0 program, I found myself unable to fork > > > processes. > > > Investigations prove that it was related to nmap. > > > To be accurate, calli

Re: fork fails after nmap with hint address in an unmapped memory region

2017-12-10 Thread Corinna Vinschen
coding: quoted-printable > > > > On Dec 9 15:58, St=C3=A9phane Mbape via cygwin wrote: > > > Hello, > > >=20 > > > While embeding luajit in a c=C2=A0 program, I found myself unable to fork > > > processes. > > > Investigations prove that it w

Re: fork fails after nmap with hint address in an unmapped memory region

2017-12-10 Thread Stéphane Mbape via cygwin
gt; While embeding luajit in a c=C2=A0 program, I found myself unable to fork > processes. > Investigations prove that it was related to nmap. > To be accurate, calling nmap with hint address in a unmapped memory region > will cause all forks to fail with > "fixup_mmaps_after_fork:

Re: fork fails after nmap with hint address in an unmapped memory region

2017-12-10 Thread Houder
;=20 > > While embeding luajit in a c=C2=A0 program, I found myself unable to fork > > processes. > > Investigations prove that it was related to nmap. > > To be accurate, calling nmap with hint address in a unmapped memory region > > will cause all forks to fail wi

Re: fork fails after nmap with hint address in an unmapped memory region

2017-12-10 Thread Corinna Vinschen
On Dec 9 15:58, Stéphane Mbape via cygwin wrote: > Hello, > > While embeding luajit in a c  program, I found myself unable to fork > processes. > Investigations prove that it was related to nmap. > To be accurate, calling nmap with hint address in a unmapped memory region >

Re: fork fails after nmap with hint address in an unmapped memory region

2017-12-10 Thread Corinna Vinschen
embeding luajit in a c  program, I found myself unable to fork > >>>>> processes. > >>>>> Investigations prove that it was related to nmap. > >>>>> To be accurate, calling nmap with hint address in a unmapped memory > >>>>

Re: fork fails after nmap with hint address in an unmapped memory region

2017-12-09 Thread Brian Inglis
lf unable to fork >>>>> processes. >>>>> Investigations prove that it was related to nmap. >>>>> To be accurate, calling nmap with hint address in a unmapped memory >>>>> region will cause all forks to fail with >>>>> "fixup_mmaps_af

Re: fork fails after nmap with hint address in an unmapped memory region

2017-12-09 Thread Stéphane Mbape via cygwin
unmapped memory region will cause all forks to fail with "fixup_mmaps_after_fork: ReadProcessMemory failed for MAP_PRIVATE address 0x6FE, Win32 error 299" There is a sample code below. You forgot to ment

Re: fork fails after nmap with hint address in an unmapped memory region

2017-12-09 Thread Jon Turney
nmap with hint address in a unmapped memory region will cause all forks to fail with "fixup_mmaps_after_fork: ReadProcessMemory failed for MAP_PRIVATE address 0x6FE, Win32 error 299" There is a sample code below. You forgot to mention Cygwin version you're using, and ple

Re: fork fails after nmap with hint address in an unmapped memory region

2017-12-09 Thread Brian Inglis
ns prove that it was related to nmap. >>>> To be accurate, calling nmap with hint address in a unmapped memory >>>> region will cause all forks to fail with >>>> "fixup_mmaps_after_fork: ReadProcessMemory failed for MAP_PRIVATE >>>> address 0

Re: fork fails after nmap with hint address in an unmapped memory region

2017-12-09 Thread Brian Inglis
rate, calling nmap with hint address in a unmapped memory >>> region will cause all forks to fail with >>> "fixup_mmaps_after_fork: ReadProcessMemory failed for MAP_PRIVATE >>> address 0x6FE, Win32 error 299" >>> There is a sample code below. >

  1   2   3   4   5   6   7   8   9   10   >