exaloop / exaloop/codon

【Codon】 When a process that consumes a large amount of memory is executed, it is killed and the process is stopped.

Open
#633 3 comments 0 reactions 1 assignee Claimed by @arshajii View on GitHub
bug
Dominant language
Python
Stars
16.8k
Forks
603
Avg merge
4d 23h
Merged PRs (30d)
6

Description

I was not sure if there was a report applicable to the same case, so I am reporting it just in case.

When a process that consumes a large amount of memory (test04.py) is executed, it is killed and the process stops.
When the same code is executed in Python, the process completes normally.

[Execution Result]
-test04.py Execution result with Codon
ic@DESKTOP-C83DAGF:/mnt/c/Users/ic$ codon run -release /mnt/z/koko/ps3/cd/test04_codon.py

kaishi
test04_codon
from python import numpy as np
Killed
ic@DESKTOP-C83DAGF:/mnt/c/Users/ic$

-test04.py Execution result with Python

kaishi
test04_codon
from python import numpy as np
0
1
2
3

 ・・・

9997
9998
2367.8824689388275
test04_python
import numpy as np
owari

[Execution Procedure]
Execute the following from Windows PowerShell Terminal on Windows in the following order.

wsl -d Ubuntu-22.04
codon run -release /mnt/z/koko/ps3/cd/test04.py
(Python, with Anaconda, running on JupyterNotebook)

[Execution environment]
Codon Ver: 0.18
Python Ver: 3.10.8
Windows 10 Pro 22H2(WSL Ubuntu 22.04)
Windows Feature Experience Pack 1000.19055.1000.0
Core(TM) i7-7700HQ
Memory 64GB

[Sampl Code]
-test04.py
```
from python import numpy as np #------------①
from python import pandas as pd
from python import csv
import time
from python import random

print("kaishi")
print("test04_codon")
print("from python import numpy as np")

t00 = time.time()

for aa0 in range(9999):

print(aa0)

m0 = 9000000
np1 = np.zeros((m0, 1), dtype=np.int64)

np.random.seed()
np1[0: m0, 0] = np.random.randint(0, 99999, m0)

np1 = None

t01 = time.time()
t02 = t01 - t00

print(t02)
print("test04_codon")
print("from python import numpy as np")
print("owari")
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.