similar to: Libnbd asynchronous API with epoll

Displaying 20 results from an estimated 300 matches similar to: "Libnbd asynchronous API with epoll"

2023 Jul 06
1
Libnbd asynchronous API with epoll
On Wed, Jul 5, 2023 at 3:38?PM Tage Johansson <tage.j.lists at posteo.net> wrote: > As part of the Rust bindings for Libnbd, I try to integrate the > asynchronous (aio_*) functions with Tokio > <https://docs.rs/tokio/latest/tokio/>, the most used asynchronous runtime > in Rust. However, in its eventloop, Tokio uses epoll(7) instead of poll(2) > (which is used internally
2023 Jul 07
2
Libnbd asynchronous API with epoll
On 7/6/2023 7:06 PM, Nir Soffer wrote: > > - After calling for example aio_notify_read(3), can I know that the > next reading from the file descriptor would block? > > No, you have to call again aio_get_direction() and poll again until > the event happens. > Well, what I mean is: After calling aio_notify_read, if aio_get_direction returns AIO_DIRECTION_READ or
2023 Jul 09
1
Libnbd asynchronous API with epoll
(Sorry for the late reply, was a bit involved in a qemu bug last week ...) On Fri, Jul 07, 2023 at 08:58:50AM +0000, Tage Johansson wrote: > On 7/6/2023 7:06 PM, Nir Soffer wrote: > > > - After calling for example aio_notify_read(3), can I know that the next > reading from the file descriptor would block? > > No, you have to call again aio_get_direction() and
2019 Aug 11
4
[PATCH libnbd v2 0/3] python: Add test for doing asynch copy.
v1 was here: https://www.redhat.com/archives/libguestfs/2019-August/msg00103.html In v2 I've made several changes: - Fix Python callbacks so if they don't return something which is int-like, we assume they mean to return 0. - Add nbd.Buffer free() method. Read commit message in patch 2 to see what this is about. - Fixed the asynch copy test to deal with the unbelievably
2019 Aug 14
5
[PATCH libnbd 0/3] Use free callback to hold ref to AIO buffer.
Basically the same as this patch series, but for Python: https://www.redhat.com/archives/libguestfs/2019-August/msg00235.html plus adding the 590 asynch test at the end. Rich.
2023 Aug 30
1
[libnbd PATCH v9 5/7] rust: async: Add a couple of integration tests
On Wed, Aug 30, 2023 at 12:16:07PM -0500, Eric Blake wrote: > > error[E0425]: cannot find value `EPOLL_CTL_ADD` in crate `libc` > > https://www.reddit.com/r/rust/comments/65kflg/does_rust_have_native_epoll_support/ > mentions how epoll is Linux-specific, and has comments about tokio > trying to build on top of mio in order to be platform-independent (mio > uses epoll on Linux
2019 Aug 10
7
[PATCH libnbd 0/5] WIP: python: Add test for doing asynch copy.
This doesn't yet work. However it does make me more convinced than ever that we really need to sort out persistent buffer lifetimes in the library (similar to what we did for closures). Rich.
2023 Aug 30
2
[libnbd PATCH 0/2] (Attempt to) fix Rust on BSD-based builds
I managed to get a build of the async Rust handle compiling on FreeBSD (although the cirrus CI appears to not actually run 'make check' on non-Linux machines, at least when run on my fork): https://gitlab.com/ebblake/libnbd/-/jobs/4985192286 However, I'd really like Tage's review on patch 2 to see if my Rust makes sense. Eric Blake (2): maint: Favor 4-space indent in .rs files
2019 Nov 27
2
Restar datetime, resultado erróneo
Hola Javier, Entiendo que te refieres que lo idóneo sería poner bien el formato y la hora, es decir si un programa comienza a las 23:50 y es de hoy, por ejemplo su formato sería: 27/11/2019 23:50. Si el siguiente programa comienza a las 00:30, sería 28/11/2019 00:30. ¿Te refieres a esto? Totalmente de acuerdo, pero la pagina donde estoy webscrapeando los datos no lo tienen así, y no se me ocurre
2019 Aug 15
13
[PATCH libnbd v2 00/10] Callbacks and OCaml and Python persistent buffers.
This is a combination of these two earlier series: https://www.redhat.com/archives/libguestfs/2019-August/msg00235.html https://www.redhat.com/archives/libguestfs/2019-August/msg00240.html plus changes to allow .callback = NULL / .free != NULL, and to reduce the complexity of freeing callbacks. Although it's rather long there's nothing complex here. We might consider squashing some
2019 Aug 14
0
[PATCH libnbd 3/3] python: Add test for doing asynch copy from one handle to another.
--- python/t/590-aio-copy.py | 122 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 122 insertions(+) diff --git a/python/t/590-aio-copy.py b/python/t/590-aio-copy.py new file mode 100644 index 0000000..129dde1 --- /dev/null +++ b/python/t/590-aio-copy.py @@ -0,0 +1,122 @@ +# libnbd Python bindings +# Copyright (C) 2010-2019 Red Hat Inc. +# +# This program is free software; you can
2019 Sep 05
3
[PATCH libnbd] generator: Move first_version fields to a single table.
This doesn't include Eric's new APIs, but if you push those then I can rebase this one on top. Rich.
2004 Apr 26
1
eventloop
Hello. I'm writting a glx device and I've some performance problem with the eventloop registration system. The device is not refresh when there's no X event. That's problematic for animation and "smoothness" of display. Should I use threads or fork the R process to get and independant way to refresh my device ? Or do you know another way to refresh it ? Thanks
2009 Oct 05
5
Networking Concept
Hello, I would like to know how Asterisk deal in this case: Assume I have a Main Asterisk Server located in UK, and another box that have PSTN interfaces located in China, now the purpose is to FW calls through PSTN. Assuming I have a client who is calling from Japan to my main switch in UK and he is calling China, (japan have latency around 500ms to UK and 100ms to China), how asterisk
2019 Nov 25
2
Restar datetime, resultado erróneo
Pues es buena solución, muchas gracias Álvaro. El lun., 25 nov. 2019 a las 10:25, Álvaro Hernández Vicente (<alvarohv en um.es>) escribió: > Pues lo más rápido quizá sea sumarle los minutos totales que tiene un > día a los que te salgan negativos. > > -1315 + 24*60 = 125 min > > Un saludo > Álvaro > > El 25/11/19 a las 9:36, Ruben Tobalina Ramirez escribió: >
2004 Aug 30
3
[PATCH] [RFC] epoll based ioloop handler
Hello, this patch adds ioloop handler using Linux 2.6 epoll API. I'm not sure is it ready for inclusion right now, but it works for me and survives deadconn test with 1024 simultaneous connections. Please take a look and comment. Best regards. -- Andrey Panin | Linux and UNIX system administrator pazke at donpac.ru | PGP key: wwwkeys.pgp.net -------------- next part -------------- A
2006 Nov 01
4
Minor fix to multi-head changes for mixed resolutions
Hey, David, for me the recent multihead changes had minor a problem with mixed resolutions (1600x1200 & 1280x1024). The viewport was getting set partially off screen. The following tweak fixed it for me: --- plugins/display.c +++ plugins/display.c @@ -2069,7 +2069,7 @@ eventLoop (void) { if (s->nOutputDev > 1)
2006 Dec 12
2
dbusSendChangeSignalForOption crash
I seem to be having problems with the latest dbus code. Here is a backtrace. This is happening at startup. Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 47449612229888 (LWP 28353)] 0x00002b27b87991c0 in strlen () from /lib/libc.so.6 (gdb) bt #0 0x00002b27b87991c0 in strlen () from /lib/libc.so.6 #1 0x00002aaaac1b0657 in dbus_watch_handle () from
2002 Apr 11
1
segmentation violation when closing the data entry window (PR#1453)
[This is on Redhat Linux 7.1, using sawfish window manager under gnome: Version: platform = i686-pc-linux-gnu arch = i686 os = linux-gnu system = i686, linux-gnu status = Under development (unstable) major = 1 minor = 5.0 year = 2002 month = 04 day = 11 language = R Search Path: .GlobalEnv, package:ctest, Autoloads, package:base ] If I close the data.entry() window using the Window
2007 Dec 21
1
R script to start session (without automatically finishing)
Hello R friends I am quite impressed by the power of R, I am using it only since some weeks now. But its visualizing capabilities are outstanding! But one thing I couldn't solve: I have programs producing lots of data, most times 3D. In R I am using the library rgl to visualize nicely the 3D data. What I would like to do is to write R scipts which read in a data file and show me the 3D