{"record":{"id":"9cd942d4b53856af","repo":"pola-rs/polars","slug":"polars-memory-prefetch-madvise-willneed-is-not-sup","errorCode":null,"errorMessage":"POLARS_MEMORY_PREFETCH=madvise_willneed is not supported by this system","messagePattern":"POLARS_MEMORY_PREFETCH=madvise_willneed is not supported by this system","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/polars-utils/src/mem.rs","lineNumber":137,"sourceCode":"                #[cfg(target_family = \"unix\")]\n                {\n                    madvise_sequential\n                }\n                #[cfg(not(target_family = \"unix\"))]\n                {\n                    panic!(\n                        \"POLARS_MEMORY_PREFETCH=madvise_sequential is not supported by this system\"\n                    );\n                }\n            },\n            Some(\"madvise_willneed\") => {\n                #[cfg(target_family = \"unix\")]\n                {\n                    madvise_willneed\n                }\n                #[cfg(not(target_family = \"unix\"))]\n                {\n                    panic!(\n                        \"POLARS_MEMORY_PREFETCH=madvise_willneed is not supported by this system\"\n                    );\n                }\n            },\n            Some(\"madvise_populate_read\") => {\n                #[cfg(target_os = \"linux\")]\n                {\n                    madvise_populate_read\n                }\n                #[cfg(not(target_os = \"linux\"))]\n                {\n                    panic!(\n                        \"POLARS_MEMORY_PREFETCH=madvise_populate_read is not supported by this system\"\n                    );\n                }\n            },\n            Some(\"force_populate_read\") => force_populate_read,\n            Some(v) => panic!(\"invalid value for POLARS_MEMORY_PREFETCH: {v}\"),","sourceCodeStart":119,"sourceCodeEnd":155,"githubUrl":"https://github.com/pola-rs/polars/blob/9b5d73fd00236295624374b075d16b1fe6ec6df9/crates/polars-utils/src/mem.rs#L119-L155","documentation":"Panic while parsing POLARS_MEMORY_PREFETCH: the value 'madvise_willneed' was requested, but the madvise(MADV_WILLNEED) code path is only compiled for unix targets and this system is not unix. Initialization of the prefetch strategy therefore panics with this message.","triggerScenarios":"POLARS_MEMORY_PREFETCH=madvise_willneed on an unsupported platform.","commonSituations":"See trigger scenarios.","solutions":["madvise_willneed is unsupported on this OS; unset POLARS_MEMORY_PREFETCH or choose another mode."],"exampleFix":"unset POLARS_MEMORY_PREFETCH","handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9b5d73fd00236295624374b075d16b1fe6ec6df9","analyzedAt":"2026-08-19T12:15:06.350Z","contentChangedAt":"2026-08-19T12:15:06.350Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}