rapidsai / cudf

cuDF - GPU DataFrame Library
https://docs.rapids.ai/api/cudf/stable/
Apache License 2.0
8.23k stars 884 forks source link

[BUG] Importing cuDF spawns many PyArrow/AWS threads #12603

Closed pentschev closed 10 months ago

pentschev commented 1 year ago

Describe the bug While debugging an unrelated hang with Dask, I’ve noticed several pyarrow threads (40 to be precise, one for each CPU core in a DGX-1 I assume) waiting in aws_event_loop_thread, even though those particular tests have no direct dependencies on pyarrow nor AWS.

List of all threads in the process ```gdb (gdb) info th ... 4 Thread 0x7f062ffff700 (LWP 16502) "jemalloc_bg_thd" 0x00007f0956a89ad3 in futex_wait_cancelable (private=, expected=0, futex_word=0x7f0640616630) at ../sysdeps/unix/sysv/linux/futex-internal.h:88 5 Thread 0x7f06096c2700 (LWP 16503) "AwsEventLoop 1" 0x00007f0955dff947 in epoll_wait (epfd=42, events=0x7f06096c1950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 6 Thread 0x7f0608ec1700 (LWP 16504) "AwsEventLoop 2" 0x00007f0955dff947 in epoll_wait (epfd=44, events=0x7f0608ec0950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 7 Thread 0x7f06086c0700 (LWP 16505) "AwsEventLoop 3" 0x00007f0955dff947 in epoll_wait (epfd=46, events=0x7f06086bf950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 8 Thread 0x7f0607ebf700 (LWP 16506) "AwsEventLoop 4" 0x00007f0955dff947 in epoll_wait (epfd=48, events=0x7f0607ebe950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 9 Thread 0x7f06076be700 (LWP 16507) "AwsEventLoop 5" 0x00007f0955dff947 in epoll_wait (epfd=50, events=0x7f06076bd950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 10 Thread 0x7f0606ebd700 (LWP 16508) "AwsEventLoop 6" 0x00007f0955dff947 in epoll_wait (epfd=52, events=0x7f0606ebc950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 11 Thread 0x7f06066bc700 (LWP 16509) "AwsEventLoop 7" 0x00007f0955dff947 in epoll_wait (epfd=54, events=0x7f06066bb950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 12 Thread 0x7f0605ebb700 (LWP 16510) "AwsEventLoop 8" 0x00007f0955dff947 in epoll_wait (epfd=56, events=0x7f0605eba950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 13 Thread 0x7f06056ba700 (LWP 16511) "AwsEventLoop 9" 0x00007f0955dff947 in epoll_wait (epfd=58, events=0x7f06056b9950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 14 Thread 0x7f0604eb9700 (LWP 16512) "AwsEventLoop 10" 0x00007f0955dff947 in epoll_wait (epfd=60, events=0x7f0604eb8950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 15 Thread 0x7f05e3fff700 (LWP 16513) "AwsEventLoop 11" 0x00007f0955dff947 in epoll_wait (epfd=62, events=0x7f05e3ffe950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 16 Thread 0x7f05e37fe700 (LWP 16514) "AwsEventLoop 12" 0x00007f0955dff947 in epoll_wait (epfd=64, events=0x7f05e37fd950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 17 Thread 0x7f05e2ffd700 (LWP 16515) "AwsEventLoop 13" 0x00007f0955dff947 in epoll_wait (epfd=66, events=0x7f05e2ffc950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 18 Thread 0x7f05e27fc700 (LWP 16516) "AwsEventLoop 14" 0x00007f0955dff947 in epoll_wait (epfd=68, events=0x7f05e27fb950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 19 Thread 0x7f05e1ffb700 (LWP 16517) "AwsEventLoop 15" 0x00007f0955dff947 in epoll_wait (epfd=70, events=0x7f05e1ffa950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 20 Thread 0x7f05e17fa700 (LWP 16518) "AwsEventLoop 16" 0x00007f0955dff947 in epoll_wait (epfd=72, events=0x7f05e17f9950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 21 Thread 0x7f05e0ff9700 (LWP 16519) "AwsEventLoop 17" 0x00007f0955dff947 in epoll_wait (epfd=74, events=0x7f05e0ff8950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 22 Thread 0x7f05c7fff700 (LWP 16520) "AwsEventLoop 18" 0x00007f0955dff947 in epoll_wait (epfd=76, events=0x7f05c7ffe950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 23 Thread 0x7f05c77fe700 (LWP 16521) "AwsEventLoop 19" 0x00007f0955dff947 in epoll_wait (epfd=78, events=0x7f05c77fd950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 24 Thread 0x7f05c6ffd700 (LWP 16522) "AwsEventLoop 20" 0x00007f0955dff947 in epoll_wait (epfd=80, events=0x7f05c6ffc950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 25 Thread 0x7f05c67fc700 (LWP 16523) "AwsEventLoop 21" 0x00007f0955dff947 in epoll_wait (epfd=82, events=0x7f05c67fb950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 26 Thread 0x7f05c5ffb700 (LWP 16524) "AwsEventLoop 22" 0x00007f0955dff947 in epoll_wait (epfd=84, events=0x7f05c5ffa950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 27 Thread 0x7f05c57fa700 (LWP 16525) "AwsEventLoop 23" 0x00007f0955dff947 in epoll_wait (epfd=86, events=0x7f05c57f9950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 28 Thread 0x7f05c4ff9700 (LWP 16526) "AwsEventLoop 24" 0x00007f0955dff947 in epoll_wait (epfd=88, events=0x7f05c4ff8950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 29 Thread 0x7f059ffff700 (LWP 16527) "AwsEventLoop 25" 0x00007f0955dff947 in epoll_wait (epfd=90, events=0x7f059fffe950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 30 Thread 0x7f059f7fe700 (LWP 16528) "AwsEventLoop 26" 0x00007f0955dff947 in epoll_wait (epfd=92, events=0x7f059f7fd950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 31 Thread 0x7f059effd700 (LWP 16529) "AwsEventLoop 27" 0x00007f0955dff947 in epoll_wait (epfd=94, events=0x7f059effc950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 32 Thread 0x7f059e7fc700 (LWP 16530) "AwsEventLoop 28" 0x00007f0955dff947 in epoll_wait (epfd=96, events=0x7f059e7fb950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 33 Thread 0x7f059dffb700 (LWP 16531) "AwsEventLoop 29" 0x00007f0955dff947 in epoll_wait (epfd=98, events=0x7f059dffa950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 34 Thread 0x7f059d7fa700 (LWP 16532) "AwsEventLoop 30" 0x00007f0955dff947 in epoll_wait (epfd=100, events=0x7f059d7f9950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 35 Thread 0x7f059cff9700 (LWP 16533) "AwsEventLoop 31" 0x00007f0955dff947 in epoll_wait (epfd=102, events=0x7f059cff8950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 36 Thread 0x7f057ffff700 (LWP 16534) "AwsEventLoop 32" 0x00007f0955dff947 in epoll_wait (epfd=104, events=0x7f057fffe950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 37 Thread 0x7f057f7fe700 (LWP 16535) "AwsEventLoop 33" 0x00007f0955dff947 in epoll_wait (epfd=106, events=0x7f057f7fd950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 38 Thread 0x7f057effd700 (LWP 16536) "AwsEventLoop 34" 0x00007f0955dff947 in epoll_wait (epfd=108, events=0x7f057effc950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 39 Thread 0x7f057e7fc700 (LWP 16537) "AwsEventLoop 35" 0x00007f0955dff947 in epoll_wait (epfd=110, events=0x7f057e7fb950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 40 Thread 0x7f057dffb700 (LWP 16538) "AwsEventLoop 36" 0x00007f0955dff947 in epoll_wait (epfd=112, events=0x7f057dffa950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 41 Thread 0x7f057d7fa700 (LWP 16539) "AwsEventLoop 37" 0x00007f0955dff947 in epoll_wait (epfd=114, events=0x7f057d7f9950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 42 Thread 0x7f057cff9700 (LWP 16540) "AwsEventLoop 38" 0x00007f0955dff947 in epoll_wait (epfd=116, events=0x7f057cff8950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 43 Thread 0x7f055ffff700 (LWP 16541) "AwsEventLoop 39" 0x00007f0955dff947 in epoll_wait (epfd=118, events=0x7f055fffe950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 44 Thread 0x7f055f7fe700 (LWP 16542) "AwsEventLoop 40" 0x00007f0955dff947 in epoll_wait (epfd=120, events=0x7f055f7fd950, maxevents=100, timeout=100000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 ... ```
Backtrace of one of the threads ```gdb (gdb) t a 4 bt Thread 4 (Thread 0x7f062ffff700 (LWP 16502) "jemalloc_bg_thd"): #0 0x00007f0956a89ad3 in futex_wait_cancelable (private=, expected=0, futex_word=0x7f0640616630) at ../sysdeps/unix/sysv/linux/futex-internal.h:88 #1 __pthread_cond_wait_common (abstime=0x0, mutex=0x7f0640616678, cond=0x7f0640616608) at pthread_cond_wait.c:502 #2 __pthread_cond_wait (cond=0x7f0640616608, mutex=0x7f0640616678) at pthread_cond_wait.c:655 #3 0x00007f0643633a8d in background_thread_sleep (info=info@entry=0x7f0640616600, interval=, tsdn=) at src/background_thread.c:137 #4 0x00007f06436342cb in background_work_sleep_once (ind=0, info=0x7f0640616600, tsdn=) at src/background_thread.c:229 #5 background_thread0_work (tsd=) at src/background_thread.c:374 #6 background_work (ind=, tsd=) at src/background_thread.c:412 #7 background_thread_entry (ind_arg=) at src/background_thread.c:444 #8 0x00007f0956a836db in start_thread (arg=0x7f062ffff700) at pthread_create.c:463 #9 0x00007f0955dff61f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95 ```

This looks to me very similar to OpenBLAS spawning multiple thread and thus leading to thread oversubscription with Dask which can lead to various unintended consequences (e.g., being very slow), plus it adds a ton of noise when debugging.

Steps/Code to reproduce bug On a conda environment with latest cuDF nightly builds, run the following command:

python -c "import cudf, os, time; print(os.getpid()); time.sleep(3600)"

The above will print the PID of the process (e.g., 18224) and sleep for one hour. On a separate shell attach GDB to the process and run info threads to list all threads and confirm the behavior above, e.g.:

gdb -p 18224 -ex "info threads" -ex "set confirm off" -ex "quit"

Note: this is not reproducible with RAPIDS 22.12 stable.

Expected behavior AWS threads are not spawned unless it's truly required by the application.

Environment overview (please complete the following information)

Environment details

Click here to see environment details

     **git***
     commit ed6daad3a7edca6b8873b1105a585e12757dcf1c (HEAD -> branch-23.02, upstream/branch-23.02)
     Author: Bradley Dice 
     Date:   Tue Jan 24 07:31:48 2023 -0600

     Fix SUM/MEAN aggregation type support. (#12503)

     This PR closes #8399. We cleaned up the logic by fixing SUM/MEAN aggregation type support, which also eliminated `TODO` comments in the target type definitions.

     We kept the restriction that rolling min/max requires fixed width types because min/max aggregations do support non-fixed width in other aggregation implementations (groupby does a argmin-and-gather approach on strings, for instance).

     This PR is collaborative work with @karthikeyann.

     Authors:
     - Bradley Dice (https://github.com/bdice)
     - Karthikeyan (https://github.com/karthikeyann)

     Approvers:
     - Mark Harris (https://github.com/harrism)
     - David Wendt (https://github.com/davidwendt)

     URL: https://github.com/rapidsai/cudf/pull/12503
     **git submodules***

     ***OS Information***
     DGX_NAME="DGX Server"
     DGX_PRETTY_NAME="NVIDIA DGX Server"
     DGX_SWBUILD_DATE="2020-03-04"
     DGX_SWBUILD_VERSION="4.4.0"
     DGX_COMMIT_ID="ee09ebc"
     DGX_PLATFORM="DGX Server for DGX-1"
     DGX_SERIAL_NUMBER="QTFCOU8220020"

     DGX_R418_REPO_ENABLED=20220727-142459

     DGX_OTA_VERSION="4.13.0"
     DGX_OTA_DATE="Wed Jul 27 14:36:02 PDT 2022"
     DISTRIB_ID=Ubuntu
     DISTRIB_RELEASE=18.04
     DISTRIB_CODENAME=bionic
     DISTRIB_DESCRIPTION="Ubuntu 18.04.6 LTS"
     NAME="Ubuntu"
     VERSION="18.04.6 LTS (Bionic Beaver)"
     ID=ubuntu
     ID_LIKE=debian
     PRETTY_NAME="Ubuntu 18.04.6 LTS"
     VERSION_ID="18.04"
     HOME_URL="https://www.ubuntu.com/"
     SUPPORT_URL="https://help.ubuntu.com/"
     BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
     PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
     VERSION_CODENAME=bionic
     UBUNTU_CODENAME=bionic
     Linux dgx13 4.15.0-189-generic #200-Ubuntu SMP Wed Jun 22 19:53:37 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

     ***GPU Information***
     Tue Jan 24 09:02:14 2023
     +-----------------------------------------------------------------------------+
     | NVIDIA-SMI 510.73.08    Driver Version: 510.73.08    CUDA Version: 11.6     |
     |-------------------------------+----------------------+----------------------+
     | GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
     | Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
     |                               |                      |               MIG M. |
     |===============================+======================+======================|
     |   0  Tesla V100-SXM2...  On   | 00000000:06:00.0 Off |                    0 |
     | N/A   32C    P0    57W / 300W |    306MiB / 32768MiB |      0%      Default |
     |                               |                      |                  N/A |
     +-------------------------------+----------------------+----------------------+
     |   1  Tesla V100-SXM2...  On   | 00000000:07:00.0 Off |                    0 |
     | N/A   32C    P0    56W / 300W |    306MiB / 32768MiB |      0%      Default |
     |                               |                      |                  N/A |
     +-------------------------------+----------------------+----------------------+
     |   2  Tesla V100-SXM2...  On   | 00000000:0A:00.0 Off |                    0 |
     | N/A   31C    P0    41W / 300W |      3MiB / 32768MiB |      0%      Default |
     |                               |                      |                  N/A |
     +-------------------------------+----------------------+----------------------+
     |   3  Tesla V100-SXM2...  On   | 00000000:0B:00.0 Off |                    0 |
     | N/A   30C    P0    54W / 300W |    918MiB / 32768MiB |      0%      Default |
     |                               |                      |                  N/A |
     +-------------------------------+----------------------+----------------------+
     |   4  Tesla V100-SXM2...  On   | 00000000:85:00.0 Off |                    0 |
     | N/A   31C    P0    42W / 300W |      3MiB / 32768MiB |      0%      Default |
     |                               |                      |                  N/A |
     +-------------------------------+----------------------+----------------------+
     |   5  Tesla V100-SXM2...  On   | 00000000:86:00.0 Off |                    0 |
     | N/A   29C    P0    41W / 300W |      3MiB / 32768MiB |      0%      Default |
     |                               |                      |                  N/A |
     +-------------------------------+----------------------+----------------------+
     |   6  Tesla V100-SXM2...  On   | 00000000:89:00.0 Off |                    0 |
     | N/A   33C    P0    42W / 300W |      3MiB / 32768MiB |      0%      Default |
     |                               |                      |                  N/A |
     +-------------------------------+----------------------+----------------------+
     |   7  Tesla V100-SXM2...  On   | 00000000:8A:00.0 Off |                    0 |
     | N/A   29C    P0    40W / 300W |      3MiB / 32768MiB |      0%      Default |
     |                               |                      |                  N/A |
     +-------------------------------+----------------------+----------------------+

     +-----------------------------------------------------------------------------+
     | Processes:                                                                  |
     |  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
     |        ID   ID                                                   Usage      |
     |=============================================================================|
     |    0   N/A  N/A     74647      C   ...vs/ucxx-230112/bin/python      303MiB |
     |    1   N/A  N/A     74736      C   ...vs/ucxx-230112/bin/python      303MiB |
     |    3   N/A  N/A      5680      C   ucx_perftest                      305MiB |
     |    3   N/A  N/A     62927      C   ucx_perftest                      305MiB |
     |    3   N/A  N/A     63311      C   ucx_perftest                      305MiB |
     +-----------------------------------------------------------------------------+

     ***CPU***
     Architecture:        x86_64
     CPU op-mode(s):      32-bit, 64-bit
     Byte Order:          Little Endian
     CPU(s):              80
     On-line CPU(s) list: 0-79
     Thread(s) per core:  2
     Core(s) per socket:  20
     Socket(s):           2
     NUMA node(s):        2
     Vendor ID:           GenuineIntel
     CPU family:          6
     Model:               79
     Model name:          Intel(R) Xeon(R) CPU E5-2698 v4 @ 2.20GHz
     Stepping:            1
     CPU MHz:             3507.264
     CPU max MHz:         3600.0000
     CPU min MHz:         1200.0000
     BogoMIPS:            4390.08
     Virtualization:      VT-x
     L1d cache:           32K
     L1i cache:           32K
     L2 cache:            256K
     L3 cache:            51200K
     NUMA node0 CPU(s):   0-19,40-59
     NUMA node1 CPU(s):   20-39,60-79
     Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l3 cdp_l3 invpcid_single pti intel_ppin ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm rdt_a rdseed adx smap intel_pt xsaveopt cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts md_clear flush_l1d

     ***CMake***
     /datasets/pentschev/miniconda3/envs/rn-230124/bin/cmake
     cmake version 3.25.2

     CMake suite maintained and supported by Kitware (kitware.com/cmake).

     ***g++***
     /usr/bin/g++
     g++ (Ubuntu 9.4.0-1ubuntu1~18.04) 9.4.0
     Copyright (C) 2019 Free Software Foundation, Inc.
     This is free software; see the source for copying conditions.  There is NO
     warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

     ***nvcc***
     /usr/local/cuda/bin/nvcc
     nvcc: NVIDIA (R) Cuda compiler driver
     Copyright (c) 2005-2021 NVIDIA Corporation
     Built on Thu_Nov_18_09:45:30_PST_2021
     Cuda compilation tools, release 11.5, V11.5.119
     Build cuda_11.5.r11.5/compiler.30672275_0

     ***Python***
     /datasets/pentschev/miniconda3/envs/rn-230124/bin/python
     Python 3.9.15

     ***Environment Variables***
     PATH                            : /home/nfs/pentschev/bin:/home/nfs/pentschev/.local/bin:/usr/local/cuda/bin:/opt/bin:/home/nfs/pentschev/bin:/home/nfs/pentschev/.local/bin:/datasets/pentschev/miniconda3/envs/rn-230124/bin:/datasets/pentschev/miniconda3/condabin:/usr/local/cuda/bin:/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
     LD_LIBRARY_PATH                 :
     NUMBAPRO_NVVM                   :
     NUMBAPRO_LIBDEVICE              :
     CONDA_PREFIX                    : /datasets/pentschev/miniconda3/envs/rn-230124
     PYTHON_PATH                     :

     ***conda packages***
     /datasets/pentschev/miniconda3/condabin/conda
     # packages in environment at /datasets/pentschev/miniconda3/envs/rn-230124:
     #
     # Name                    Version                   Build  Channel
     _libgcc_mutex             0.1                 conda_forge    conda-forge
     _openmp_mutex             4.5                       2_gnu    conda-forge
     arrow-cpp                 10.0.1           h27aab58_4_cpu    conda-forge
     asttokens                 2.2.1              pyhd8ed1ab_0    conda-forge
     attrs                     22.2.0             pyh71513ae_0    conda-forge
     autoconf                  2.69            pl5321hd708f79_11    conda-forge
     automake                  1.16.5          pl5321ha770c72_0    conda-forge
     aws-c-auth                0.6.21               hd93a3ba_3    conda-forge
     aws-c-cal                 0.5.20               hff2c3d7_3    conda-forge
     aws-c-common              0.8.5                h166bdaf_0    conda-forge
     aws-c-compression         0.2.16               hf5f93bc_0    conda-forge
     aws-c-event-stream        0.2.17               h57874a7_1    conda-forge
     aws-c-http                0.7.0                h96ef541_0    conda-forge
     aws-c-io                  0.13.12              h57ca295_1    conda-forge
     aws-c-mqtt                0.7.13              h0b5698f_12    conda-forge
     aws-c-s3                  0.2.1                h82cbbf9_4    conda-forge
     aws-c-sdkutils            0.1.7                hf5f93bc_0    conda-forge
     aws-checksums             0.1.14               h6027aba_0    conda-forge
     aws-crt-cpp               0.18.16              h26430d7_8    conda-forge
     aws-sdk-cpp               1.9.379              h32f6703_7    conda-forge
     backcall                  0.2.0              pyh9f0ad1d_0    conda-forge
     backports                 1.0                pyhd8ed1ab_3    conda-forge
     backports.functools_lru_cache 1.6.4              pyhd8ed1ab_0    conda-forge
     black                     22.3.0             pyhd8ed1ab_0    conda-forge
     bokeh                     2.4.3              pyhd8ed1ab_3    conda-forge
     brotlipy                  0.7.0           py39hb9d737c_1005    conda-forge
     bzip2                     1.0.8                h7f98852_4    conda-forge
     c-ares                    1.18.1               h7f98852_0    conda-forge
     ca-certificates           2022.12.7            ha878542_0    conda-forge
     cachetools                5.3.0              pyhd8ed1ab_0    conda-forge
     certifi                   2022.12.7          pyhd8ed1ab_0    conda-forge
     cffi                      1.15.1           py39he91dace_3    conda-forge
     cfgv                      3.3.1              pyhd8ed1ab_0    conda-forge
     click                     8.1.3           unix_pyhd8ed1ab_2    conda-forge
     cloudpickle               2.2.1              pyhd8ed1ab_0    conda-forge
     cmake                     3.25.2               h077f3f9_0    conda-forge
     colorama                  0.4.6              pyhd8ed1ab_0    conda-forge
     cryptography              39.0.0           py39h079d5ae_0    conda-forge
     cubinlinker               0.2.0            py39h11215e4_1    rapidsai-nightly
     cuda-python               11.8.1           py39h2405124_2    conda-forge
     cudatoolkit               11.5.1              h59c8dcf_11    conda-forge
     cudf                      23.02.00a230124 cuda_11_py39_g8e9ccc33c3_293    rapidsai-nightly
     cupy                      11.5.0           py39hc3c280e_0    conda-forge
     cython                    0.29.33          py39h227be39_0    conda-forge
     cytoolz                   0.12.0           py39hb9d737c_1    conda-forge
     dask                      2023.1.0+14.g96a72df0          pypi_0    pypi
     dask-cuda                 23.02.00a230124 py39_g66a6a46_41    rapidsai-nightly
     dask-cudf                 23.02.00a230124 cuda_11_py39_g8e9ccc33c3_293    rapidsai-nightly
     dataclasses               0.8                pyhc8e2a94_3    conda-forge
     decorator                 5.1.1              pyhd8ed1ab_0    conda-forge
     distlib                   0.3.6              pyhd8ed1ab_0    conda-forge
     distributed               2023.1.0+8.g99d4112d          pypi_0    pypi
     dlpack                    0.5                  h9c3ff4c_0    conda-forge
     exceptiongroup            1.1.0              pyhd8ed1ab_0    conda-forge
     executing                 1.2.0              pyhd8ed1ab_0    conda-forge
     expat                     2.5.0                h27087fc_0    conda-forge
     fastavro                  1.7.0            py39hb9d737c_0    conda-forge
     fastrlock                 0.8              py39h5a03fae_3    conda-forge
     filelock                  3.9.0              pyhd8ed1ab_0    conda-forge
     flake8                    3.8.3                      py_1    conda-forge
     freetype                  2.12.1               hca18f0e_1    conda-forge
     fsspec                    2023.1.0           pyhd8ed1ab_0    conda-forge
     gdb                       12.1             py39hf8bf4ad_0    conda-forge
     gflags                    2.2.2             he1b5a44_1004    conda-forge
     glog                      0.6.0                h6f12383_0    conda-forge
     gmock                     1.12.1               hf52228f_0    conda-forge
     gmp                       6.2.1                h58526e2_0    conda-forge
     gtest                     1.12.1               hf52228f_0    conda-forge
     heapdict                  1.0.1                      py_0    conda-forge
     identify                  2.5.15             pyhd8ed1ab_0    conda-forge
     idna                      3.4                pyhd8ed1ab_0    conda-forge
     importlib-metadata        6.0.0              pyha770c72_0    conda-forge
     iniconfig                 2.0.0              pyhd8ed1ab_0    conda-forge
     ipython                   8.8.0              pyh41d4057_0    conda-forge
     isort                     5.10.1             pyhd8ed1ab_0    conda-forge
     jedi                      0.18.2             pyhd8ed1ab_0    conda-forge
     jinja2                    3.1.2              pyhd8ed1ab_1    conda-forge
     jpeg                      9e                   h166bdaf_2    conda-forge
     keyutils                  1.6.1                h166bdaf_0    conda-forge
     krb5                      1.20.1               h81ceb04_0    conda-forge
     lcms2                     2.14                 hfd0df8a_1    conda-forge
     ld_impl_linux-64          2.39                 hcc3a1bd_1    conda-forge
     lerc                      4.0.0                h27087fc_0    conda-forge
     libabseil                 20220623.0      cxx17_h05df665_6    conda-forge
     libarrow                  10.0.1           h86614e7_4_cpu    conda-forge
     libblas                   3.9.0           16_linux64_openblas    conda-forge
     libbrotlicommon           1.0.9                h166bdaf_8    conda-forge
     libbrotlidec              1.0.9                h166bdaf_8    conda-forge
     libbrotlienc              1.0.9                h166bdaf_8    conda-forge
     libcblas                  3.9.0           16_linux64_openblas    conda-forge
     libcrc32c                 1.1.2                h9c3ff4c_0    conda-forge
     libcudf                   23.02.00a230124 cuda11_g8e9ccc33c3_293    rapidsai-nightly
     libcurl                   7.87.0               hdc1c0ab_0    conda-forge
     libdeflate                1.17                 h0b41bf4_0    conda-forge
     libedit                   3.1.20191231         he28a2e2_2    conda-forge
     libev                     4.33                 h516909a_1    conda-forge
     libevent                  2.1.10               h28343ad_4    conda-forge
     libffi                    3.4.2                h7f98852_5    conda-forge
     libgcc-ng                 12.2.0              h65d4601_19    conda-forge
     libgfortran-ng            12.2.0              h69a702a_19    conda-forge
     libgfortran5              12.2.0              h337968e_19    conda-forge
     libgomp                   12.2.0              h65d4601_19    conda-forge
     libgoogle-cloud           2.5.0                h21dfe5b_1    conda-forge
     libgrpc                   1.51.1               h30feacc_0    conda-forge
     libjpeg-turbo             2.1.4                h166bdaf_0    conda-forge
     liblapack                 3.9.0           16_linux64_openblas    conda-forge
     libllvm11                 11.1.0               he0ac6c6_5    conda-forge
     libnghttp2                1.51.0               hff17c54_0    conda-forge
     libnsl                    2.0.0                h7f98852_0    conda-forge
     libopenblas               0.3.21          pthreads_h78a6416_3    conda-forge
     libpng                    1.6.39               h753d276_0    conda-forge
     libprotobuf               3.21.12              h3eb15da_0    conda-forge
     librmm                    23.02.00a230124 cuda11_gf733e6f2_28    rapidsai-nightly
     libsqlite                 3.40.0               h753d276_0    conda-forge
     libssh2                   1.10.0               hf14f497_3    conda-forge
     libstdcxx-ng              12.2.0              h46fd767_19    conda-forge
     libthrift                 0.16.0               he500d00_2    conda-forge
     libtiff                   4.5.0                h6adf6a1_2    conda-forge
     libtool                   2.4.7                h27087fc_0    conda-forge
     libunwind                 1.6.2                h9c3ff4c_0    conda-forge
     libutf8proc               2.8.0                h166bdaf_0    conda-forge
     libuuid                   2.32.1            h7f98852_1000    conda-forge
     libuv                     1.44.2               h166bdaf_0    conda-forge
     libwebp-base              1.2.4                h166bdaf_0    conda-forge
     libxcb                    1.13              h7f98852_1004    conda-forge
     libzlib                   1.2.13               h166bdaf_4    conda-forge
     llvmlite                  0.39.1           py39h7d9a04d_1    conda-forge
     locket                    1.0.0              pyhd8ed1ab_0    conda-forge
     lz4                       4.2.0            py39h724f13c_0    conda-forge
     lz4-c                     1.9.3                h9c3ff4c_1    conda-forge
     m4                        1.4.18            h516909a_1001    conda-forge
     markupsafe                2.1.2            py39h72bdee0_0    conda-forge
     matplotlib-inline         0.1.6              pyhd8ed1ab_0    conda-forge
     mccabe                    0.6.1                      py_1    conda-forge
     msgpack-python            1.0.4            py39hf939315_1    conda-forge
     mypy_extensions           0.4.3            py39hf3d152e_6    conda-forge
     ncurses                   6.3                  h27087fc_1    conda-forge
     nodeenv                   1.7.0              pyhd8ed1ab_0    conda-forge
     numba                     0.56.4           py39h61ddf18_0    conda-forge
     numpy                     1.23.5           py39h3d75532_0    conda-forge
     nvtx                      0.2.3            py39hb9d737c_2    conda-forge
     openjpeg                  2.5.0                hfec8fc6_2    conda-forge
     openssl                   3.0.7                h0b41bf4_1    conda-forge
     orc                       1.8.2                hfdbbad2_0    conda-forge
     packaging                 23.0               pyhd8ed1ab_0    conda-forge
     pandas                    1.5.3            py39h2ad29b5_0    conda-forge
     parquet-cpp               1.5.1                         2    conda-forge
     parso                     0.8.3              pyhd8ed1ab_0    conda-forge
     partd                     1.3.0              pyhd8ed1ab_0    conda-forge
     pathspec                  0.10.3             pyhd8ed1ab_0    conda-forge
     perl                      5.32.1          2_h7f98852_perl5    conda-forge
     pexpect                   4.8.0              pyh1a96a4e_2    conda-forge
     pickleshare               0.7.5                   py_1003    conda-forge
     pillow                    9.4.0            py39ha08a7e4_0    conda-forge
     pip                       22.3.1             pyhd8ed1ab_0    conda-forge
     pkg-config                0.29.2            h36c2ea0_1008    conda-forge
     platformdirs              2.6.2              pyhd8ed1ab_0    conda-forge
     pluggy                    1.0.0              pyhd8ed1ab_5    conda-forge
     pre-commit                3.0.0            py39hf3d152e_0    conda-forge
     prompt-toolkit            3.0.36             pyha770c72_0    conda-forge
     protobuf                  4.21.12          py39h227be39_0    conda-forge
     psutil                    5.9.4            py39hb9d737c_0    conda-forge
     pthread-stubs             0.4               h36c2ea0_1001    conda-forge
     ptxcompiler               0.7.0            py39h2405124_3    conda-forge
     ptyprocess                0.7.0              pyhd3deb0d_0    conda-forge
     pure_eval                 0.2.2              pyhd8ed1ab_0    conda-forge
     py-spy                    0.3.14               h87a5ac0_0    conda-forge
     pyarrow                   10.0.1          py39h94a43e9_4_cpu    conda-forge
     pycodestyle               2.6.0              pyh9f0ad1d_0    conda-forge
     pycparser                 2.21               pyhd8ed1ab_0    conda-forge
     pyflakes                  2.2.0              pyh9f0ad1d_0    conda-forge
     pygments                  2.14.0             pyhd8ed1ab_0    conda-forge
     pynvml                    11.4.1             pyhd8ed1ab_0    conda-forge
     pyopenssl                 23.0.0             pyhd8ed1ab_0    conda-forge
     pysocks                   1.7.1              pyha2e5f31_6    conda-forge
     pytest                    7.2.1              pyhd8ed1ab_0    conda-forge
     pytest-asyncio            0.20.3             pyhd8ed1ab_0    conda-forge
     pytest-repeat             0.9.1              pyhd8ed1ab_0    conda-forge
     pytest-rerunfailures      11.0               pyhd8ed1ab_0    conda-forge
     pytest-timeout            2.1.0              pyhd8ed1ab_0    conda-forge
     python                    3.9.15          hba424b6_0_cpython    conda-forge
     python-dateutil           2.8.2              pyhd8ed1ab_0    conda-forge
     python_abi                3.9                      3_cp39    conda-forge
     pytz                      2022.7.1           pyhd8ed1ab_0    conda-forge
     pyyaml                    6.0              py39hb9d737c_5    conda-forge
     re2                       2022.06.01           h27087fc_1    conda-forge
     readline                  8.1.2                h0f457ee_0    conda-forge
     rhash                     1.4.3                h166bdaf_0    conda-forge
     rmm                       23.02.00a230124 cuda11_py39_gf733e6f2_28    rapidsai-nightly
     s2n                       1.3.31               h3358134_0    conda-forge
     setuptools                66.1.1             pyhd8ed1ab_0    conda-forge
     six                       1.16.0             pyh6c4a22f_0    conda-forge
     snappy                    1.1.9                hbd366e4_2    conda-forge
     sortedcontainers          2.4.0              pyhd8ed1ab_0    conda-forge
     spdlog                    1.8.5                h4bd325d_1    conda-forge
     stack_data                0.6.2              pyhd8ed1ab_0    conda-forge
     tblib                     1.7.0              pyhd8ed1ab_0    conda-forge
     tk                        8.6.12               h27826a3_0    conda-forge
     tomli                     2.0.1              pyhd8ed1ab_0    conda-forge
     toolz                     0.12.0             pyhd8ed1ab_0    conda-forge
     tornado                   6.2              py39hb9d737c_1    conda-forge
     traitlets                 5.8.1              pyhd8ed1ab_0    conda-forge
     typed-ast                 1.5.4            py39hb9d737c_1    conda-forge
     typing-extensions         4.4.0                hd8ed1ab_0    conda-forge
     typing_extensions         4.4.0              pyha770c72_0    conda-forge
     tzdata                    2022g                h191b570_0    conda-forge
     ucx                       1.13.1               h538f049_1    conda-forge
     ucx-proc                  1.0.0                       gpu    rapidsai-nightly
     ucx-py                    0.30.00a230124  py39_g10d036a_16    rapidsai-nightly
     ukkonen                   1.0.1            py39hf939315_3    conda-forge
     urllib3                   1.26.14            pyhd8ed1ab_0    conda-forge
     virtualenv                20.17.1          py39hf3d152e_0    conda-forge
     wcwidth                   0.2.6              pyhd8ed1ab_0    conda-forge
     wheel                     0.38.4             pyhd8ed1ab_0    conda-forge
     xorg-libxau               1.0.9                h7f98852_0    conda-forge
     xorg-libxdmcp             1.1.3                h7f98852_0    conda-forge
     xz                        5.2.6                h166bdaf_0    conda-forge
     yaml                      0.2.5                h7f98852_2    conda-forge
     zict                      2.2.0              pyhd8ed1ab_0    conda-forge
     zipp                      3.11.0             pyhd8ed1ab_0    conda-forge
     zlib                      1.2.13               h166bdaf_4    conda-forge
     zstd                      1.5.2                h3eb15da_6    conda-forge

pentschev commented 1 year ago

cc @kkraus14 who may have some insight on this issue.

@quasiben FYI

wence- commented 1 year ago

https://github.com/apache/arrow/issues/34118

pentschev commented 1 year ago

This is should be resolved in Arrow 12.0, thanks to @wence- in https://github.com/apache/arrow/issues/34118 .

GregoryKimball commented 1 year ago

Seems to be related to long import times https://github.com/rapidsai/cudf/issues/627, in case we decide to tackle that at some point.

wence- commented 1 year ago

Seems to be related to long import times #627, in case we decide to tackle that at some point.

FWIW, importing pyarrow didn't show up as the order-1 effect in my profiles of the import time.

pentschev commented 10 months ago

Now that PyArrow doesn't initialize S3 at import time, no AWS threads will be spawned when cuDF is imported. Closing.