{"record":{"id":"c404e050e94c7f88","repo":"pola-rs/polars","slug":"polars-memory-prefetch-madvise-sequential-is-not-s","errorCode":null,"errorMessage":"POLARS_MEMORY_PREFETCH=madvise_sequential is not supported by this system","messagePattern":"POLARS_MEMORY_PREFETCH=madvise_sequential is not supported by this system","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/polars-utils/src/mem.rs","lineNumber":125,"sourceCode":"                #[cfg(target_family = \"unix\")]\n                {\n                    madvise_willneed\n                }\n                #[cfg(not(target_family = \"unix\"))]\n                {\n                    no_prefetch\n                }\n            },\n            Some(\"no_prefetch\") => no_prefetch,\n            Some(\"prefetch_l2\") => prefetch_l2,\n            Some(\"madvise_sequential\") => {\n                #[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\")]","sourceCodeStart":107,"sourceCodeEnd":143,"githubUrl":"https://github.com/pola-rs/polars/blob/9b5d73fd00236295624374b075d16b1fe6ec6df9/crates/polars-utils/src/mem.rs#L107-L143","documentation":"Panic while parsing POLARS_MEMORY_PREFETCH: the value 'madvise_sequential' was requested, but the posix madvise(MADV_SEQUENTIAL) path is cfg'd to unix-only and this build/run is on a non-unix target. The prefetch strategy cannot be applied, so memory-prefetch initialization aborts.","triggerScenarios":"POLARS_MEMORY_PREFETCH=madvise_sequential on a platform without that madvise flag.","commonSituations":"See trigger scenarios.","solutions":["madvise_sequential 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-14T00:17:10.932Z"}