Skip to contentSkip to conversation

Converting ebitmaps to copy-on-write?

DISCUSSION Paul Moore 2 participants 3 messages Jul 26, 2006 – Jul 27, 2006 SELinux security module

lore
Share & tools
lore

Paul Moore

author
#0 lore raw

Can anyone think of reason why converting the ebitmap code to a copy on write scheme would be a bad idea? Yes, there would be some overhead in maintaining reference counts but I suspect the added overhead would be more than offset by the reduction in kmalloc() calls ... thoughts?

Signature · 7 lines
paul moore
linux security @ hp

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#1 lore raw
Quoted 6 lines · Paul Moore

Can anyone think of reason why converting the ebitmap code to a copy on write scheme would be a bad idea? Yes, there would be some overhead in maintaining reference counts but I suspect the added overhead would be more than offset by the reduction in kmalloc() calls ... thoughts?

Which ebitmaps are shared enough for this to help? I don't think I have enough context to know whether this would be a good idea or not.

Karl

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

author
#2 lore raw
Quoted 9 lines · Karl MacMillan
Quoted 5 lines · Paul Moore

Can anyone think of reason why converting the ebitmap code to a copy on write scheme would be a bad idea? Yes, there would be some overhead in maintaining reference counts but I suspect the added overhead would be more than offset by the reduction in kmalloc() calls ... thoughts?

Which ebitmaps are shared enough for this to help? I don't think I have enough context to know whether this would be a good idea or not.

Stephen Smalley and I had a discussion off list about this and came to a solution that addresses my concerns (performance for the NetLabel/CIPSO patch).

Signature · 7 lines
paul moore
linux security @ hp

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.