On Sep 28, 2010, at 10:32 PM, Jeff McCune wrote:
> On Sep 28, 2010, at 12:15 PM, Nigel Kersten wrote:
>> Have we been able to come up with any use cases other than packages
>> where combining offers a benefit?
>
> Mount resources.
>
> A customer has around 800 static mount resources modeled in the catalog and
> each resource takes roughly 2 to 3 seconds to manage. Quite a long time for
> each puppet run.
>
> I haven't dove into the code or system calls on this yet, but it was reported
> to me the mount resource executes mount twice for each resource which
> triggers a boatload of NFS RPC calls each invocation.
>
> If we could just look at /proc/mounts once up front, then batch all of the
> out of sync resources together and then provide the option to call mount -a
> rather than N mount commands it might end up being much more efficient.
It should be pretty straightforward to add prefetching to 'mount' - I had no
idea they were that expensive. That should probably just about kill most of
that cost, I bet.
--
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it.
-- (attributed to) Brian W. Kernighan (unconfirmed)
---------------------------------------------------------------------
Luke Kanies -|- http://puppetlabs.com -|- +1(615)594-8199
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-dev?hl=en.