SHMMAX
Dave Johnson
ddj at cascv.brown.edu
Tue Jul 17 16:07:15 PDT 2001
On Tue, Jul 17, 2001 at 05:53:41PM -0400, Greg Lindahl wrote:
> On Tue, Jul 17, 2001 at 04:08:23PM -0500, Carlos Ernesto Lopez Nataren wrote:
>
> > bpsh -a echo "134217728" > /proc/sys/kernel/shmmax
>
> Try:
>
> bpsh -a "echo 134217728 > /proc/sys/kernel/shmmax"
>
> It matters where the > gets expanded.. and recall that bpsh's stdout
> gets hooked up to /dev/null on remote nodes, so with the "" in the
> wrong place absolutely nothing happens.
>
> g
>
> _______________________________________________
> Beowulf mailing list, Beowulf at beowulf.org
> To change your subscription (digest mode or unsubscribe) visit http://www.beowulf.org/mailman/listinfo/beowulf
Not quite...
Bpsh does not run a shell on the other side unless you specifically tell it
to -- your example just passes the whole command string in argv[0].
This would work:
bpsh -a /bin/bash -c "echo 134217728 > /proc/sys/kernel/shmmax"'
Better yet:
bpsh -a sysctl -w kernel/shmmax=134217728
or
bpsh -a sysctl -w kernel.shmmax=134217728
(redirect local stdout to /dev/null to get rid of the
"kernel.shhmax = 134217728" response from sysctl if desired).
Cheers,
-- ddj
More information about the Beowulf
mailing list