[gentoo-user] TCP listen overflows
My site when down for about 10 minutes recently and the only interesting thing I see in the munin graphs is a massive spike in "TCP socket buffer errors", specifically "Listen overflows" at exactly the same time. Is that a clue or just a result of the downtime? Nothing in the logs. - Grant
Re: [gentoo-user] pm-suspend problem
151013 Daniel Frey wrote: > On 10/13/2015 09:00 PM, Philip Webb wrote: >> 151013 Daniel Frey wrote: >>> On 10/13/2015 05:39 PM, Philip Webb wrote: but doesn't wake up when the power button or a key is pressed ; >>> There was a kernel change some time back >>> that disabled usb wake-up on all USB hubs. >>> Userspace needs to explicitly enable them or device wakeup will not work. >>> I wrote a script some time back to do that, >>> but it can probably be done with a udev rule. >> Don't be coy ! -- can you post your script here ? >> what would such a udev rule look like ? > Hah - sorry about that. Most people apparently use udev to do that. > I wrote my script first and used it instead. I never really looked > into udev as my script [kludge?] still works, I just tried it. > I posted it in the Docs, Tips & Tricks forum [1] some time back > & it's also on pastebin [2]. Use at your own risk ! > I've attached it here as well. The forum post lists how to use it. > Wow, 18,000 views to the forum post. I wonder if that's good or bad ? > It requires root, so you may want to put it in /sbin/. > Run it with no options and it'll display a usage page. > All it does is do some searching in the /sys/devices tree > and tries to find appropriate items to show. > [1] https://forums.gentoo.org/viewtopic-t-933934-highlight-usbwakeup.html > [2] http://pastebin.com/cYstsSSa -- script snipped -- Thanks lots ! -- I looked up [1], which has useful extra advice. However, it occurs to me that my keyboard (Sanyo 1989) is PS/2 , so the script will help only to enable restart via the mouse. There's a PS/2 setting on the mobo, which I've enabled, but might there also be something in the kernel which needs enabling ? Lots of people seem to have problems with suspend/restart & it seems to be somewhat random & vary with different makes of mobo, so any further suggestions here may help others in future too. -- ,, SUPPORT ___//___, Philip Webb ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto TRANSIT`-O--O---' purslowatchassdotutorontodotca
[gentoo-user] Re: DNS server packages
J. Roeleveld antarean.org> writes: > > On Sunday, October 11, 2015 02:48:23 PM Alan McKinnon wrote: > > On 11/10/2015 11:33, J. Roeleveld wrote: > > > On Sunday, October 11, 2015 10:43:01 AM Alan McKinnon wrote: > > >> On 11/10/2015 10:18, J. Roeleveld wrote: > > > In a database I have a table with the following fields: > > > MAC, IP, Hostname, domain > > > xx:xx:xx:xx:xx , 1.2.3.4 , vmobi1114node1 , vm1.lab.example.com > > > > I want the DNS server to use the IP, Hostname and domain fields for > > > the resolving. > > > I want the DHCP server to use all the fields for the DHCP assignments. A cluster is very reliable as nodes (slaves) can be added and removed for individual admin needs, keeping 'the beast' HA. You can even put part of your cluster (for redundancy and peak loading) partially on a remote DatatCenter like 'rackspace'; should the HA requirements be such to justify the extra expense. Or a smaller vendor on another network; reciprocity style. I hope to have mine up by Christmas. > > OK, that makes sense. You'd think all decent DNS and DHCP servers out > > there would support any old arb db backend (very useful, no?) but it > > seems not. I've gotten used to independently vi'ing two files and > > HUP/reload two daemons over the years > > Bind can use a mysql backend, so can most auth servers. > Need to check how difficult/easy it is to make it listen to PostgreSQL. > I'm not overly attached to Bind. Having a DNS server that's easier to > configure and maintain would be appreciated. Here is something that many are playing with:: https://github.com/mesosphere/mesos-dns/blob/master/README.md Many are posting about the wonderfulness and stability of web services even on a smaller cluster. ymmv. hth, James
[gentoo-user] Re: TCP listen overflows
Grant gmail.com> writes: > My site when down for about 10 minutes recently and the only > interesting thing I see in the munin graphs is a massive spike in "TCP > socket buffer errors", specifically "Listen overflows" at exactly the > same time. Is that a clue or just a result of the downtime? Nothing > in the logs. Hard to tell. What I have done in the past is install a hub/switch outside your firewall/DMZ with several systems to perform 'mock tests' via standard penetration tests, packet flooding, DoS, etc etc depending on your suspicions, and pound on your net Pentoo linux is also an excellent tool. hth, James
Re: [gentoo-user] pm-suspend problem
On Wednesday 14 Oct 2015 18:09:04 Philip Webb wrote: > -- script snipped -- > > Thanks lots ! -- I looked up [1], which has useful extra advice. > > However, it occurs to me that my keyboard (Sanyo 1989) is PS/2 , > so the script will help only to enable restart via the mouse. > There's a PS/2 setting on the mobo, which I've enabled, > but might there also be something in the kernel which needs enabling ? PS/2 should just work™. It plugs straight into the MoBo chipset IRQs (via LAPIC these days) and does not rely on userspace applications. > Lots of people seem to have problems with suspend/restart > & it seems to be somewhat random & vary with different makes of mobo, > so any further suggestions here may help others in future too. Yes, I've had my fair share depending on MoBos, especially older builds. I even had laptops with dodgy suspend to RAM performance: it wouldn't suspend at all, or it would and then not wake up properly (screen wouldn't come on again). In my experience suspend to RAM could break from one kernel to another on buggy MoBos, or between different video card kernel drivers (for radeon at least). Note: some modern MoBos have S4 disabled at the BIOS by default, to make sure that USB ports continue to charge mobile phones and tablets. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] pm-suspend problem
On 10/14/2015 11:11 AM, Mick wrote: > > PS/2 should just work™. It plugs straight into the MoBo chipset IRQs (via > LAPIC these days) and does not rely on userspace applications. > It should but on some boards it doesn't. I specifically remember an older ASUS board that had a jumper by the PS2 port that was defaulted to NOT wake. You had to move that jumper, then go into the BIOS under power options and set wake from keyboard to "space bar" in order for it to work. I haven't had a PS2 keyboard in ages now - I don't think the motherboard on the Intel board I have even has a PS2 port, so I didn't think of the possibility of the PS2 keyboard not working. :-) Dan