Document how to set memory limits
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Documentación
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- java, wasm
- Área
- documentation
Línea de trabajo
Comienza con las páginas Resource Limits, Security Model y Advanced Wasm Memory Customization; después, inspecciona MemoryLimits, Instance.Builder#withMemoryLimits, ImportMemory, MemoryImport, TableLimits y el código Instance.java referenciado. Confirma cómo se aplican los límites a varias memorias y a las instrucciones de asignación de arrays; después, documenta la configuración compatible con un ejemplo y enlaza la página Resource Limits desde la página Security Model.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
If possible, could you please extend the documentation regarding how to set memory limits? Currently the documentation just says "set limits" but without telling how exactly.
- Describe it and add an example to the Resource Limits page
- Link to it from the Security Model page ("Memory growth limits"), similar to the existing "CPU Limits" link
- Possibly extend the Advanced Wasm Memory Customization page
The documentation regarding CPU limits is already pretty good, but for memory limits it is not directly clear how to apply them.
If I understand it correctly the main class is MemoryLimits, and it can be applied with Instance.Builder#withMemoryLimits. But what I don't fully understand yet is:
- Are there other places to consider?
E.g. there isImportMemoryandMemoryImport, but I assume they are only relevant when you are actually importing memory? - There is also
TableLimits; is that relevant here as well? - The limit specified using
withMemoryLimitsonly seems to apply to memory index 0, is that intentional and does that mean the other memories are not restricted (besides thelimitwhich is specified in the Wasm code itself)? - The instructions
array.new,array.new_default,array.new_fixed,array.new_dataandarray.new_elemcreate anew long[len]and don't seem to be restricted at all?
- Lenguaje dominante
- Java
- Estrellas
- 306
- Forks
- 20
- Merge medio
- 1 d 10 h
- PR fusionados (30 d)
- 29
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de bytecodealliance/endive
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
bytecodealliance/endive#225 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
bytecodealliance/endive#224 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
bytecodealliance/endive#211 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
bytecodealliance/endive#203 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
bytecodealliance/endive#202 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de bytecodealliance/endive
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
-
Make branch and label autocomplete matching locale-independentPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
jenkinsci/gitlab-plugin#1950 ·
-
It's not necessary to copy the memory block in the readWrite() of org.h2.store.fs.mem.FileMemDataAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
h2database/h2database#4435 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
micronaut-projects/micronaut-core#13717 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
ADORSYS-GIS/token-status-link#145 ·
Los mantenedores suelen responder en 3 días