[gobolinux-users] Prevent a process from paging out

Dan theyranos at gmail.com
Sat Sep 9 00:16:55 UTC 2006


Second attempt at sending this. First one just went to Nick for some  
reason.

>> I use evrouter (http://www.bedroomlan.org/~alexios/
>> coding_evrouter.html) to make the extra buttons on my Logitech mouse
>> do stuff. I've noticed recently that if I don't use it for a while,
>> it can take as much as a minute for the button press to have any
>> result, whereas if evrouter has done something recently, the response
>> is instantaneous.
>>
>> The only guess I have as to why this is happening is the swap file.
>> My hard drives are painfully slow, so paging in evrouter could
>> definitely explain the delay. Does anyone know a way (other than
>> buying more RAM) to prevent the machine from using the swap file for
>> a specific process?
>>
>> Thanks
>> Dan
>
> Increase its priority?

I just tried that. Have to wait about an hour, then try evrouter  
again. I'll let you know how it works.


> Anyway, I use the Xorg evdev driver to handle all the buttons on my  
> logitech
> mouse and it has no such issues.  This is an input driver included  
> with Xorg
> 7.1 -- evrouter looks like it has more configurability, but evdev  
> sends key
> events for every button on the mouse and you can bind these to  
> whatever with
> standard tools.
>

I used to have evdev on this mouse. It worked fine in xorg 6x, but it  
ignored the extra buttons. I haven't tried it in 7.1 (just using IM/ 
PS2 here) as evdev isn't in the Xorg 7.1 package, and I've never  
successfully gotten Xorg to Compile.

Just out of curiosity, what "standard tools" are you using to bind  
keyboard events to things? My extra logitech buttons all run  
complicated dcop scripts.

Actually, now that I think about it, maybe the problem isn't that  
evrouter's being paged out, but that the scripts are being replaced  
by something else in Linux's disk cache. If the priority solution  
doesn't do it, I'll try moving those scripts to a tmpfs.


More information about the gobolinux-users mailing list