Comments (4)
the page you are prob? referring to https://nanos.org/thebook lists it under 'unsupported' although it's a bit hard to read and should be cleaned up for readability purposes, no it's not supported right now but I don't see a reason why we couldn't add it
from nanos.
Oh, you are right, I just ctrl+f for memfd_create and totally missed the not-supported header.
I assume it wouldn't be a particularly high priority for anyone except me, so I will just tinker around a bit. Thank you for your quick response!
from nanos.
#2005 adds support for the memfd_create syscall. This syscall is implemented in a klib named "shmem" (which depends on another klib named "tmpfs"), so in order to be able to use this functionality, the unikernel image must contain the shmem and tmpfs klibs, as in the following snippet of the Ops configuration file: "Klibs": ["shmem", "tmpfs"]
.
Regarding the example code in the description of this issue, please note that the compiler may reorder instructions, which can make the assert()
fail if the value of data[capacity]
is read before writing the value of data[0]
. In order to avoid this, a volatile variable can be used instead of data
(see for example the code in test/runtime/shmem.c in the above PR).
from nanos.
Hey very cool thank you I will try that!
from nanos.
Related Issues (20)
- feat(storage): prevent nanos from starting the program if the expected volumes are not available HOT 2
- issue(smp): tokio-rs/sled deadlock (probable) on cpu count > 1 HOT 9
- issue(fs): assertion !frame_is_full(ctx->frame) failed at /nanos/src/kernel/mutex.c:109 (IP 0xffffffff800460b4) HOT 2
- issue: assertion enqueue(pn->dirty_commits, sh) failed at .../pagecache.c:1088 ... in pagecache_commit_dirty_node(); halt HOT 11
- issue(unix_clock): clock_getcpuclockid and clock_getres unexpected behavior HOT 3
- issue: assertion w->retval++ < (w->poll_fds->length / sizeof(struct pollfd)) failed at ../unix/poll.c:939 (IP 0xf..) in poll_notify(); halt HOT 7
- arm64 golang hello-wold fails to run on MacBook Air M1 HOT 2
- issue: assertion staging->end + min < size failed at /nanos/src/fs/tlog.c:427 in log_write_internal() HOT 1
- allow passing in network settings via kernel boot args for firecracker
- Much Slower Transfer Rate for HTTP Requests Compared to Native HOT 11
- Missing `FUTEX_WAKE_BITSET` implementation HOT 2
- cannot enable executable stack as shared object requires: Permission denied HOT 3
- Error in Load Testing with MySQL in Firecracker Environment - Buffer Size Issue HOT 11
- accept_tcp_from_lwip error: queue overrun; shouldn't happen with lwIP listen backlog
- block an IP at the kernel level? HOT 10
- Build Problems: Stage 2 exceeds 64KB HOT 4
- Support Azure VM Agent HOT 3
- Scheduled Task Stops Prematurely in Java in Firecracker MicroVM HOT 4
- question(gcp/network/dhcp): sporadic failures to obtain internal IPv4 from dhcp on GCP
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nanos.