LWN: Comments on "Deferrable timers" https://lwn.net/Articles/228143/ This is a special feed containing comments posted to the individual LWN article titled "Deferrable timers". en-us Sat, 04 Oct 2025 02:30:26 +0000 Sat, 04 Oct 2025 02:30:26 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net Mask bits in pointers https://lwn.net/Articles/228690/ https://lwn.net/Articles/228690/ proski Casting a pointer to unsigned int would cause at least a warning on 64-bit systems. And I'm not convinced that avoiding an extra field in struct tvec_t_base_s by using pointer arithmetics would offer any advantage either in memory requirements or in speed. Fri, 30 Mar 2007 21:19:37 +0000 Mask bits in pointers https://lwn.net/Articles/228689/ https://lwn.net/Articles/228689/ venkip <p> Thing to note is that the pointers being reused are pointer to a per CPU structure that doesnt change over time. This structure is allocated at boot time and stays same. So, risk of coming back to biting me is slightly smaller :-)<br> Fri, 30 Mar 2007 21:13:00 +0000 One pointer? https://lwn.net/Articles/228686/ https://lwn.net/Articles/228686/ venkip <p> The current timer infrastructure and the changes done is for per CPU timers. That is each CPU looks at all the timers scheduled on it independently. So, such a pointer has to be atleast per CPU. Cost of such a pointer is that we will have to go through timer wheel to find next non-deferrable timer and more importantly, we have to have different set of interfaces for these deferrable and non-deferrable or have extra space in timer structure to indicate the nature of timer so that this pointer can be updated correctly when one non-deferrable tiemr expires.<br> Fri, 30 Mar 2007 21:10:12 +0000 One pointer? https://lwn.net/Articles/228481/ https://lwn.net/Articles/228481/ GreyWizard Why not keep a single, system-wide pointer to the next non-deferable timer? This would have to be maintained each time such a timer fires but the cost might be comparable to all the masking and the resulting code might be easier to understand and maintain.<br> Thu, 29 Mar 2007 19:49:46 +0000 Mask bits in pointers https://lwn.net/Articles/228302/ https://lwn.net/Articles/228302/ ldo I don't like using bits in pointers to carry extra information. That kind of thing comes back to bite you sooner or later. Thu, 29 Mar 2007 08:23:42 +0000