On Thu, 31 Oct 2024 08:04:58 -0300 Maíra Canal <mcanal@xxxxxxxxxx> wrote: > > There isn't a lot of info here - please explain this timing issue in > > more detail. > > > > Because the question which leaps to mind is: shouldn't the > > "applications that use shmem" be changed to "configure mTHP through > > sysfs" *before* "using shmem"? Seems pretty basic. > > Sorry about that, I'll try to improve the commit messages and add more > details. > > As mentioned in the example I gave ("DRM GEM objects"), my main use is > GEM objects backed by shmem. I'd like to use Huge Pages on the GPU and I > can only do that if I have contiguous memory to back my objects. > > I can't think how I can change sysfs from a DRM driver. So your term "applications" actually refers to in-kernel drivers?