lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 11 Jul 2011 13:55:48 -0600
From:	Chris Friesen <chris.friesen@...band.com>
To:	loody <miloody@...il.com>
CC:	linux-kernel@...r.kernel.org
Subject: Re: how to find a task through name faster?

On 07/11/2011 11:57 AM, loody wrote:
> 2011/7/12 Chris Friesen<chris.friesen@...band.com>:

>> The names of tasks isn't indexed in any way so the above is about as good as
>> it gets if that's all the information you have.
>
> actually, I only have the name for searching, since the thread start
>   and finish periodically, pid of it will change dynamically. If I save
> the pid, next time it will change and be no use to me

If this is critical to your system performance you could customize the 
kernel to do some sort of indexing based on the name.  This would 
involve a bit more work on task startup/shutdown and when the name is 
changed, but it would make it faster to search for a task by name.

Chris

-- 
Chris Friesen
Software Developer
GENBAND
chris.friesen@...band.com
www.genband.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ