Ignore:
Timestamp:
Nov 10, 2022, 12:17:20 PM (22 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, master
Children:
639e4fc
Parents:
6a4ef0c
Message:

Removed wait-with-io_uring feature which was slow, broken and ifdefed out.

Location:
libcfa/src/concurrency/kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/kernel/private.hfa

    r6a4ef0c ra757ba1  
    4141}
    4242
    43 // Defines whether or not we *want* to use io_uring_enter as the idle_sleep blocking call
    44 // #define CFA_WANT_IO_URING_IDLE
    45 
    46 // Defines whether or not we *can* use io_uring_enter as the idle_sleep blocking call
    47 #if defined(CFA_WANT_IO_URING_IDLE) && defined(CFA_HAVE_LINUX_IO_URING_H)
    48         #if defined(CFA_HAVE_IORING_OP_READ) || (defined(CFA_HAVE_READV) && defined(CFA_HAVE_IORING_OP_READV))
    49                 #define CFA_WITH_IO_URING_IDLE
    50         #endif
    51 #endif
    5243// #define READYQ_USE_LINEAR_AVG
    5344#define READYQ_USE_LOGDBL_AVG
  • libcfa/src/concurrency/kernel/startup.cfa

    r6a4ef0c ra757ba1  
    115115KERNEL_STORAGE(thread$,              mainThread);
    116116KERNEL_STORAGE(__stack_t,            mainThreadCtx);
    117 // KERNEL_STORAGE(__scheduler_RWLock_t, __scheduler_lock);
    118 KERNEL_STORAGE(eventfd_t,            mainIdleEventFd);
    119 KERNEL_STORAGE(io_future_t,          mainIdleFuture);
    120117#if !defined(__CFA_NO_STATISTICS__)
    121118KERNEL_STORAGE(__stats_t, mainProcStats);
     
    235232        (*mainProcessor){};
    236233
    237         mainProcessor->idle_wctx.rdbuf = &storage_mainIdleEventFd;
    238         mainProcessor->idle_wctx.ftr   = (io_future_t*)&storage_mainIdleFuture;
    239         /* paranoid */ verify( sizeof(storage_mainIdleEventFd) == sizeof(eventfd_t) );
    240 
    241234        __cfa_io_start( mainProcessor );
    242235        register_tls( mainProcessor );
     
    384377        register_tls( proc );
    385378
    386         // used for idle sleep when io_uring is present
    387         io_future_t future;
    388         eventfd_t idle_buf;
    389         proc->idle_wctx.ftr = &future;
    390         proc->idle_wctx.rdbuf = &idle_buf;
     379        // io_future_t future;
     380        // eventfd_t idle_buf;
     381        // proc->idle_wctx.ftr = &future;
     382        // proc->idle_wctx.rdbuf = &idle_buf;
    391383
    392384
Note: See TracChangeset for help on using the changeset viewer.