All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jim Carter <jimc@math.ucla.edu>
To: Ian Kent <raven@themaw.net>
Cc: autofs@linux.kernel.org
Subject: Re: clients suddenly start hanging (was: (no subject))
Date: Fri, 20 Jun 2008 18:02:29 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.64.0806201713350.13828@xena.cft.ca.us> (raw)
In-Reply-To: <1213934961.2971.69.camel@raven.themaw.net>

On Fri, 20 Jun 2008, Ian Kent wrote:

> So here is autofs-5.0.3-submount-shutdown-recovery-8.patch.
> Please try it instead of revision 7.

The patch went on cleanly.  However, there was a problem in execution.
The output was:

17:00:14 --                   #1, chkd 0, run 0, OK 570, mtd 2, of 570

Jun 20 17:00:22 serval automount[2799]: unexpected pthreads error: -1 at 
901 in master.c

After patching this is in:
void master_signal_submount(struct autofs_point *ap, unsigned int action)
        status = pthread_barrier_wait(&ap->submount_barrier);
        if (status)
                fatal(status);

I'm not sure what's frozen; the machine responds to ping, but I can't do 
ssh to it, and I'm not at work.  I would have expected needed NFS resources 
to already be mounted, from the session that started up the test program.

Any ideas what went wrong?  I can commandeer another machine for the next 
test, since the owner is also not at work.

About setting up a test environment: We have 133 Linux boxes (a few of 
these are down), so you would need a lot of hosts.  I was thinking how to 
do this.  How about lots of UML or Xen virtual machines, each exporting 
maybe 2 NFS filesystems.  

I'm most familiar with UML.  I have some rather old notes on UML here:
http://www.math.ucla.edu/~jimc/documents/uml-install-suse.html

I think your best bet is to create a COW (copy on write) file with the 
standard configuration, then cover it with a writeable image file for each 
virtual guest; the latter would occupy only a few hundred Kb each since 
most of the material would be in the COW (readonly).  Allow at most 16 Mb 
"physical" memory per guest, and perhaps even forget the swap file.  This 
lets you pack 64 UML instances per Gb of physical memory on the host 
(except allow some uncommitted physical memory for the host kernel and 
daemons).  This will keep the host CPU hopping, but in reality the guest 
systems will only be giving out and cancelling mounts from the test 
machine, one at a time, so the host CPU load should be manageable.

On the guest image you can ease your life by creating a small file, maybe 
64 Kb of zeroes, assign it to a loopback device, and put a filesystem on 
it.  In one application I used Minix because it's compact yet supports 
normal UNIX semantics.  Mount it, create a single file with a unique ID,
and export it.  From the contained file you can verify which host and which 
of its 2 filesystems you actually mounted.  The UML guest can do the 
loopback thing if it was given a complete set of modules (SuSE's UML has 
it).  

If you actually go ahead with this, tell me and I'll send you the test 
program.  The automount maps go like this:

auto.master:
/net            /etc/auto.net

auto.net: (backslash is not really there)
*       -rsize=8192,wsize=8192,retry=1,soft,fstype=autofs,-DSERVER=&    \
						file:/etc/auto.net.generic

auto.net.generic:
*       ${SERVER}:/&


Good luck, you're going to need it :-)

James F. Carter          Voice 310 825 2897    FAX 310 206 6673
UCLA-Mathnet;  6115 MSA; 405 Hilgard Ave.; Los Angeles, CA, USA 90095-1555
Email: jimc@math.ucla.edu  http://www.math.ucla.edu/~jimc (q.v. for PGP key)

  reply	other threads:[~2008-06-21  1:02 UTC|newest]

Thread overview: 51+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-12  4:50 [PATCH 00/10] Kernel patch series Ian Kent
2008-06-12  4:50 ` [PATCH 01/10] autofs4 - check for invalid dentry in getpath Ian Kent
2008-06-12  4:50 ` [PATCH 02/10] autofs4 - fix sparse warning in waitq.c:autofs4_expire_indirect() Ian Kent
2008-06-12  4:50 ` [PATCH 03/10] autofs4 - fix incorrect return from root.c:try_to_fill_dentry() Ian Kent
2008-06-12  4:51 ` [PATCH 04/10] autofs4 - fix mntput, dput order bug Ian Kent
2008-06-12  4:51 ` [PATCH 05/10] autofs4 - don't make expiring dentry negative Ian Kent
2008-06-12  4:51 ` [PATCH 06/10] autofs4 - use look aside list for lookups Ian Kent
2008-06-12  4:51 ` [PATCH 07/10] autofs4 - don't release directory mutex if called in oz_mode Ian Kent
2008-06-12  4:51 ` [PATCH 08/10] autofs4 - use lookup intent flags to trigger mounts Ian Kent
2008-06-12  4:51 ` [PATCH 09/10] autofs4 - use struct qstr in waitq.c Ian Kent
2008-06-12  4:51 ` [PATCH 10/10] autofs4 - fix pending mount race Ian Kent
2008-06-14  1:13 ` [PATCH 00/10] Kernel patch series Jim Carter
2008-06-14  3:30   ` Ian Kent
2008-06-14  3:42     ` Ian Kent
2008-06-19  0:40       ` clients suddenly start hanging (was: (no subject)) Jim Carter
2008-06-19  3:14         ` Ian Kent
2008-06-19 17:08           ` Jim Carter
2008-06-19 18:34           ` Jim Carter
2008-06-20  4:09             ` Ian Kent
2008-06-21  1:02               ` Jim Carter [this message]
2008-06-21  3:12                 ` Ian Kent
2008-06-23  3:49                   ` Jim Carter
2008-06-23  4:46                     ` Ian Kent
2008-06-24  3:08                       ` Ian Kent
2008-06-24 17:02                         ` Stephen Biggs
2008-06-24 23:39                         ` Jim Carter
2008-06-25  3:33                           ` Ian Kent
2008-06-25  5:00                             ` Ian Kent
2008-06-23  4:15                   ` Ian Kent
  -- strict thread matches above, loose matches on Subject: below --
2008-04-23 18:50 (no subject) Jim Carter
2008-04-23 20:04 ` Jeff Moyer
2008-04-24  3:10   ` Ian Kent
2008-04-24 16:52   ` clients suddenly start hanging (was: (no subject)) Jim Carter
2008-04-26  1:17   ` Jim Carter
2008-04-26  5:34     ` Ian Kent
2008-04-26 18:48       ` Jim Carter
2008-04-27  5:52         ` Ian Kent
2008-04-26 22:16       ` Jim Carter
2008-04-28  6:26 ` [PATCH 1/2] autofs4 - fix execution order race in mount request code Ian Kent
2008-05-08  4:52   ` clients suddenly start hanging (was: (no subject)) Jim Carter
2008-05-08  6:13     ` Ian Kent
2008-05-11  4:14       ` Jim Carter
2008-05-11  7:57         ` Ian Kent
2008-05-15 21:59           ` Jim Carter
2008-05-16  3:00             ` Ian Kent
2008-05-18  4:07             ` Ian Kent
2008-05-21  6:58               ` Ian Kent
2008-05-22 21:42               ` Jim Carter
2008-05-23  2:35                 ` Ian Kent
2008-05-26  0:34                   ` Jim Carter
2008-06-12  3:20                     ` Ian Kent

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.64.0806201713350.13828@xena.cft.ca.us \
    --to=jimc@math.ucla.edu \
    --cc=autofs@linux.kernel.org \
    --cc=raven@themaw.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.