[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dragonfly-users
Subject:    Re: squid3 smp problem
From:       k simon <chio1990 () gmail ! com>
Date:       2013-10-25 16:41:08
Message-ID: 419C055B-CF9D-4DB2-BE23-48F635726A2B () gmail ! com
[Download RAW message or body]

  It's worked when I create it manually.
  Thanks for your kindly guide.

Simon


On 2013年10月25日, at 下午10:22, Venkatesh Srinivas <me@endeavour.zapto.org> \
wrote:

> On Fri, Oct 25, 2013 at 5:59 AM, k simon <chio1990@gmail.com> wrote:
> > I adjust the squid configuration, now it report:
> > 
> > "FATAL: Ipc::Mem::Segment::create failed to shm_open(/squid-squid-page-pool.shm): \
> > (13) Permission denied" 
> > Does anyone could give me some clue to workaroud it ?
> > 
> > 
> > Regards
> > Simon
> 
> squid's Ipc::Mem::Segment::create() uses shm_open to create a POSIX
> shared memory segment; on DragonFly, SHM segments are just files which
> live in the specified path. ('/squid-squid-page-pool.shm' in this
> case); your squid daemon's user likely does not have permission to use
> that file.
> 
> On some other platforms (Linux), shm segments appear as files also,
> but in a subtree of the namespace instead -- often /dev/shm. So your
> squid shm segment would be /dev/shm/squid-squid-page-pool.shm, in what
> is usually a tmpfs filesystem.
> 
> Some workarounds -- patch squid to create its shm file in /tmp/<...>
> or some other common path; or if the shm segment is opened w/o O_EXCL
> and you don't mind a file in /, create it manually and set permissions
> so squid can read/write it.
> 
> HTH,
> -- vs;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic