[00:02] matta: bad prefix/mask of host? [00:03] hmm, could be an explanation ... [00:04] nothing has changes networking wise.. [00:05] i've checked routing table of the server [00:05] what about the router? is this a cisco? [00:05] motherfuckers [00:05] so i called them up and told them not to reboot the server [00:05] as it doesn't look like a server problem [00:05] i just got a server reboot message... [00:06] lol [00:06] ;) cool stuff ... [00:06] s/stuff/staff/ [00:07] matta (matta@tektonic.net) left irc: Quit: Hey! Where'd my controlling terminal go? [00:09] monako (~monako@194.186.248.64) joined #vserver. [00:10] hi monako! [00:10] hi [00:25] Bertl continue talk ? [00:26] yup, anytime ... [00:28] enrico ? [00:29] shadow: program is nearly finished; display stuff is missing [00:30] perfect ... [00:30] ensc you immediately coding ? [00:31] shadow: what do you expect else? Drawing big UML diagrams? ;) [00:31] who not ? [00:33] is the current list of limits online anywhere? [00:33] 1) cpu [00:33] 1a) cpu time [00:33] 1b) nr processes [00:33] 2) total memory [00:33] 2a) virtual memory [00:33] 2b) locked memory [00:33] 3) resident memory [00:33] 4) disk usage [00:33] 4a) disk space [00:33] 4b) inodes on disk [00:33] 5) network baundwith [00:33] 5a) bandwidth [00:33] 5b) nr connections [00:33] 6) file handles [00:33] 7) terminals (pty/tty) [00:33] I take this as a no ;) [00:34] we can remove points 1,4,5 because it name of resouce group and reorder. [00:36] you forgot the sub-vserver maximum ... (for vserver inside vserver) [00:36] and 2 also.. total memorry == resident + virtual(swap) [00:37] should we reserve alimit for max NR CPUs ? *G* [00:39] bandwidth will be a property of the interface, what do you think alex? [00:39] it realy need ? i don`t confidence.. [00:39] yes. [00:40] same for disk limit , this should be per partition, right? [00:41] hm.. you think vserver have more one partitions inside ? [00:41] could be, the quota hashes are per partition ... [00:44] ahh, we should have a look at the RLIMITS .. some of them might be interesting for per context too ... [00:44] but should be merge it to per vps diskquota ? [00:45] I think a per partition and context quota makes sense .. think about using a separate /var or /tmp ... [00:46] hm.. [00:50] alex, do you need to set maximum hard limits for the RLIMIT things like core size and such? [00:50] i think it realy need only if use unifyted vps and all vps dirs (execpt users home dir and other workplace) be mounted to r/o... [00:51] matta (~matta@69.57.156.208) joined #vserver. [00:52] ok. i open RLIMT.. [00:54] i think from RLIMIT me need only [00:54] so my hosting company hires some poor employees [00:54] they saw Bertl's inode without dqh error on the console [00:54] #define RLIMIT_CPU 0 /* CPU time in ms */ [00:54] rebooted my server, and told me my hard disk is failing. [00:54] hahahaha ... sorry [00:55] then... [00:55] but not in ms - in % [00:55] they tried to tell me when they tried to login the server rebooted itself [00:55] and i'd believe it, except I saw a system shutdown broadcast [00:55] which is only done when reboot or shutdown is ran [00:55] grr [00:58] @alex do you allow to set ulimit inside the vserver? [00:59] yes [00:59] i add it in near future.. [00:59] what about a maximum for those rlimits? [01:00] i think - for first check context limits - after ulimits [01:00] but then, you cannot modify afterwards ;) [01:01] for context limits we can add also [01:01] #define RLIMIT_LOCKS 10 /* maximum file locks held */ [01:01] good point ... [01:01] my current list is now: [01:01] 1 CPU TIME [01:01] 2 NR PROCESSES [01:01] 3 MAX NR CPUs [01:02] 4 MEMORY VM [01:02] 5 MEMORY RSS [01:02] 6 MEMORY LOCKED [01:02] 7 FILE HANDLES [01:02] 8 FILE LOCKS [01:02] 9 TERMINALS [01:02] not time - % of cpu [01:02] yeah, okay, where I would suggest not to use % but something (0-65535) [01:04] ok. not % - but in parts of full cpu time. [01:04] yeah, agreed ... [01:05] it more easy for per context CPU scheduler.. [01:05] Bertl: program is in cvs (SYSCALL_SWITCH branch); src/ctxlimit [01:05] what's wrong with Sam's approach ? [01:05] will it compile with 2.95? [01:06] @matt you worked with it, could you explain what you adjusted? [01:07] Bertl: I think... [01:10] thanks ... any syntax/usage example? [01:11] ctxlimit -a -HS --9 30 -M --10 2 --> sets hard and softlimit of 9 to 30, minimum of 10 to 2, and displays settings [01:12] how many syscalls for that? [01:12] the three new ones [01:14] what I meant was, will ctxlimit (hmm maybe we should name it vsrlimit?) -H --9 30 -S --9 20 -M --9 10 do 1 or three calls to set_rlimit? [01:16] set will be called twice [01:16] huh? [01:16] or 1 time in your example [01:16] ahh okay ... [01:17] so you do accumulate the values ... why am I asking ;) [01:18] yes, there is a vc_ctx_limit[32] array which will be set by teh getopt() part and evaluate at the end of the program [01:24] dmistry (~dmistry@su-nat.datapipe.net) left irc: Quit: My damn controlling terminal disappeared! [01:26] @enrico how do I checkout for this branch? [01:27] shadow (~umka@212.86.233.226) (unknown) [01:27] ³ ircname : Alex Lyashkov [01:27] | channels : #vserver [01:27] ops. sorry [01:27] cvs -d:pserver:anoncvs@subversions.gnu.org:/cvsroot/util-vserver login [01:28] I've checked out util-vserver already ... how to access this branch? [01:28] cvs -z3 -d:pserver:anoncvs@subversions.gnu.org:/cvsroot/util-vserver co -r SYSCALL_SWITCH util-vserver [01:28] or 'update -r SYSCALL_SWITCH' [01:28] ahh okay .. thanks .. [01:29] how do I compile it? [01:30] autoreconf -i -f [01:30] ./configure [01:30] make [01:30] I do not get a ./configure ... [01:31] which autoconf version? [01:31] or automake? [01:31] 2.13 autoconf [01:31] you will need 2.5 [01:31] hmm ... [01:32] Bertl: do you have an autoreconf2.5 ? [01:33] not yet ... [01:33] you will need automake1.7 also [01:34] hmm .. dont have automake yet ... [01:34] Mandrake seems to be really conservative with development tools... [01:35] nope, I am .. ;) [01:35] well.. i want to sleep.. [01:35] mandrake 9.2 has autoconf-2.13 and automake-1.4 [01:35] but for all. and good evening.. [01:35] Nick change: riel -> unriel [01:35] good night alex! [01:36] Bertl: the newer versions seems to be configured badly [01:36] Thanks Herber and for you too.. [01:36] shadow (~umka@212.86.233.226) left irc: Quit: to bed [01:37] autoconf 2.5 is no problem on mandrake ... [01:38] Bertl: autoreconf-1.5 contains: my $autoconf = $ENV{'AUTOCONF'} || '/usr/bin/autoconf'; [01:38] that means, it chooses the wrong version [01:43] jhh (~heuing@194.245.114.189) joined #vserver. [01:43] hi jhh! [01:47] hi bertl... [01:47] didn't get any further yet, too busy. I thought I just join the channel if anything helpfull passes by :) [01:50] there is one question i still have... it's a fairly small group of people developing vserver, is there any community support in terms of development or money ? [01:50] how do you make sure to keep the project running ? [01:51] hmm, good question(s) ... [01:51] :) [01:51] I thought it is a community project already? [01:52] we are very active in the typo3 sector (webbased cms if you don't know about it...), the community base is very large, but sponsoring the main developer is still not much... [01:52] At least there's more traffic on the ML than on the opter projects I watch, so I don't worry much :) [01:52] if you talk about community, it's just you and a few others, which I would not call community if it's just a hand full of people :) [01:53] communities come in all sizes :) [01:53] in the typo3 project, we didn't get the 10GB listserver and news-traffic, but nearly :) [01:53] Bertl: do you got it compiled? [01:54] hrm ... working on automake/autoconf ... [01:54] vserver is getting *really* useful currently with the per-context quota and all. I think the project will continue to grow. [01:54] am I right with this: you all work on this in your spare time, and there is no professional support like a company sponsoring (you are employed at a company who is paying for you doing so), or companies paying for it in general ? [01:55] jhh: feel free to sponsor Bertl. :) [01:55] yes, *smile* [01:55] difficult right now, but thought about it [01:56] one thing I could easily do: we are hosting the mailinglists and newsserver for typo3, we could do that for typo3 as well. as you just go the new mailinglists, I could still add a news gateway for those of you interested in using the thing via newsgroup... [01:56] Action: Hurga is right now moving a server to vserver. So I guess I'll continue to contribute one or other way. [01:56] sorry, exchange the last typo3 with vserver ;) [01:57] news://news.netfielders.de [01:58] hmm, do you see any value in a news gateway, (don't get me wrong, have nothing agains it) [01:59] @enrico hey autoconf2.5/automake1.7 does the trick ... [01:59] well, yes. I am annyed of all these mails via mailinglist. and you can easily follow the threads on the news server. I always said things like you just did, adn I agreed on setting it up. after I gott used to it I realy like it more than the mailinglist way :) [01:59] both lists will be in sync anyway [01:59] jhh: Get a threading newsreader [01:59] hurga ? [01:59] like, mutt. [01:59] hmm, well mutt/procmail does the threading/sorting for me ... [02:00] I don't think the vserver crowd is big enough for netnews... [02:00] Besides, the gateway might gate spam back to the list. [02:00] ah, you meant he archive ? the archive for typo3 is a very powerful thing included on typo3.org. it builds it's own archive. you can setup faq items through mailinglist mails, the list-managers can do that [02:01] @jhh what about spam protection? [02:01] matta (~matta@69.57.156.208) left irc: Ping timeout: 492 seconds [02:01] hm, never heard that spam is sent via newsgroup... but anyway, there is one small problem: if you have to authenticate for the mailinglist, you could just write to the news server, but the mail will not be sent to the listserver. we do no authentication, but will add spam filter [02:02] spam: spamassin will be enabled shortly [02:02] just did the update to the new mailman version first... just finished [02:03] automatic archive: http://typo3.org/1422.0.html [02:03] okay, I would say, make a suggestion on the mailing list, contact Martin (this is where the mailing list is and will stay for now), and we add a news.linux-vserver.org ... what do you think? [02:04] @enrico /usr/src/ENRICO/util-vserver/src/ctxlimit.c:127: undefined reference to `vc_get_rlimit_mask' [02:04] good idea. I'll write a mail to the mailing list some time soon. I'll discuss the authentication thing with martin, as this might be a little problem [02:06] Bertl: uups, forgot to checkin the lib directory; update cvs, call automake && config.status --recheck again... [02:09] okay, I have a binary ;) [02:10] @enrico could we change the name to vsrlimit or vslimit later? [02:11] no problem, but what is wrong iwth ctxlimit? [02:12] I'm currently moving away from ctx, and try to use vs where possible ... like in the patches ... [02:14] what is with 'vlimit'? [02:14] if you like .. (as a matter of fact, I don't care too much ;) [02:48] monako (~monako@194.186.248.64) left irc: Remote host closed the connection [02:50] monako (~monako@ts1-a64.Perm.dial.rol.ru) joined #vserver. [02:50] monako (~monako@ts1-a64.Perm.dial.rol.ru) left irc: Client Quit [02:50] hmmm. [02:50] hydrogen[root]:~> quotacheck -maug [02:50] quotacheck: Cannot get quotafile name for /dev/hdv1 [02:51] what tools, is this inside the server? [02:51] Yes. Old distro, I recompiled quota though... [02:52] [V] cat /etc/mtab [02:52] hydrogen[root]:~> cat /etc/mtab [02:52] erf [02:52] /dev/hdv1 / ext3 rw,usrquota 0 0 [02:53] change ext3 to ufs ... [02:53] [V] ls -la /dev/hdv1 [02:53] no change [02:53] brw-r--r-- 1 root root 4, 0 Nov 7 04:46 /dev/hdv1 [02:54] okay this vroot device is set up, I assume ... [02:54] it should. lsmod says module vroot is busy, too. [02:55] [V] quotacheck -Fvfsv0 -maug [02:55] the same [02:56] do you ahve strace? [02:56] yes. [02:56] which version? [02:56] version 4.2 [02:57] hmm, is it possible to upgrade to 4.5? [02:57] I can try :) [02:57] (this is inside vserver) [02:57] *nod* [02:58] before I do.. this is what I did. [02:58] It's a RH 6.2 running on a RH 9 host. [02:59] I copied the host's (RH9) kernel stuff over, took the RH9 source RPM and recompiled on the RH 6.2 [03:00] anything badly wrong with it so far? [03:00] should be okay ... [03:03] uhh, do I need to give CAP_QUOTACTL? [03:03] yup! [03:03] gah [03:04] just a moment :) [03:08] didn't help. [03:08] what version is this quotactl? [03:09] quotacheck I mean ... [03:09] Quota utilities version 3.06. [03:09] okay add CAP_SYS_ADMIN too ... [03:09] ook... [03:10] although I suspect your problem lies somewhere else ... [03:10] I used patch-2.4.22-vs1.00.diff and patch-2.4.22-ctx17a-vr0.13.diff on plain 2.4.22 [03:10] And I run vserver on LVM [03:11] okay, if CAP_SYS_ADMIN doesn't work, strace it is ... [03:13] so it is strace. [03:14] compilation error, gah. [03:15] hmm, you got the sources? tar.gz? [03:15] strace-4.5.tar.bz2 [03:15] configure/make? [03:15] sure. [03:15] time.c:363: `TIMER_ABSTIME' undeclared here (not in a function) [03:15] time.c:363: initializer element for `clockflags[0].val' is not constant [03:15] make[1]: *** [time.o] Error 1 [03:16] okay, sounds strange ... [03:16] do you try inside the vsever, and what kernel headers are there? [03:16] inside the vserver, and the kernel headers of the host [03:17] hmm not good ... [03:17] kernel headers correspond to the glibc ... [03:18] I can use the old ones, which were native to the vserver [03:18] ok? [03:18] that would be better ... [03:18] ok. [03:19] same goes for compiling the quota tools by the way ... [03:19] same error... [03:19] strange ... and if you compile strace on the host? [03:21] compile strace on the host works [03:21] okay, copy the strace into the vserver ... [03:22] but you have to check why this fails ... it seems that the vserver is somewhat fishy ... [03:23] copy the strace into the vserver: well, glibc is too old [03:23] well, well, well ... you could compile it static ... [03:23] is 4.2 the latest RH package for that? [03:24] I think so. [03:24] let me look for it ... [03:24] And I could need a hint on how to compile staic :) [03:24] static, even [03:25] ftp://ftp.nluug.nl/pub/os/Linux/distr/RedHat/ftp/redhat/linux/beta/severn/en/os/i386/RedHat/RPMS/strace-4.5-1.i386.rpm [03:25] wow. [03:26] uh. [03:26] error: failed dependencies: [03:26] libc.so.6(GLIBC_2.3) is needed by strace-4.5-1 [03:26] this is RH 6.2 [03:26] hum, in the vserver? [03:27] The vserver. Not really recent... [03:27] *nod* [03:27] ahh okay, I thought your server was 9.0 and the host 6.2 ... [03:27] no! Did I say that? sorry... [03:28] well, do you have the rpm build system on that vserver? [03:28] Yes. [03:28] strace SRPM... [03:28] ftp://ftp.nluug.nl/pub/os/Linux/distr/RedHat/ftp/redhat/linux/rawhide/SRPMS/strace-4.5-1.src.rpm [03:30] same error as when I tried to compile from source. [03:30] (well, that somehow was to be expected) [03:30] what gcc is this? [03:30] egcs-2.91.66 [03:31] just tell me how to do a static build of strace... [03:31] well, if you do the dynamic build, then there should be a line almost at the end .. which does a gcc -o strace ... [03:32] this might go over several lines actually ... [03:32] do you see it? [03:32] yes. [03:33] okay copy that line and add a -static after gcc ... [03:34] ok, let's rock... err, strace. [03:35] fine ... [V] strace quotacheck -Fvfsv0 -maug >/tmp/qc.log 2>&1 [03:37] dcc? [03:37] http? [03:37] well, my web server is the vserver, you see... :) [03:38] okay dcc [03:39] hrm, hrm what about the 'ext3'->'ufs' change I advised? [03:39] didn't work. ok, again [03:41] no significant cange. Do you want that strace, too? [03:41] nope ... [03:44] okay I'll try to reproduce ... [03:44] could you recompile the kernel (in the meantime) with the vr0.14 released for vs1.00 ? [03:45] just to make sure we have the same codebase ... [03:45] sure. - Just a thought. Should I try with insecure quota? [03:46] well you can do that, but I doubt that it changes anything ... [03:46] ahh, wait, just a moment [03:46] where is the lvm volume mounted? [03:47] /dev/volg1/lvol2 10079084 8158152 1408932 86% /vservers/tig [03:47] and tig is the vserver, right? [03:47] Yes. [03:48] hmm, okay, that should be fine ... [03:50] hmm. I have a nearly identical machine where quotacheck -maug [03:50] works. [03:50] with the new kernel? [03:50] the vroot quota device is not set up there, thiugh. [03:51] hmm, and if you set it up? [03:51] no LVM there... [03:51] ahh okay ... [03:52] it's just on a partition... [03:52] shared partition you mean ... [03:53] Yes. [03:53] Nick change: surriel -> riel [03:55] By the way, RH9 on the RH9 host works fine. [03:55] including the quotacheck? [03:55] Yes. [03:55] well then it's probably the tools, that won't work with this kernel ... [03:56] I used the same quota, recompiled on the vhost... [03:56] on both servers? [03:56] ahh, damn, I forgot, check if /proc is mounted in the failing server ... [03:57] Yes. RH9 quota (v. 3.06) everywhere. [03:57] /proc is mounted and works [03:58] hmm, hard case ... try to strace both, and we look for the difference ... please make sure that mtab is the same, etc, etc ... [03:58] ok. [04:04] grr! [04:04] quotacheck -cmaug [04:04] -c Don't read existing quota files. [04:04] hmm a feature? [04:05] I did not have any quota file there (quota was on another partition before). [04:05] well good to know ... we've learned something ;) [04:06] I think I had that before even :( Just didn't remember... [04:09] quotaon: Quota format not supported in kernel. [04:09] *siigh* [04:10] you can specify the format with the -Fvfsv0 or -Fvfsold ... [04:11] ! [04:15] excellent. [04:19] Thanks a lot for your time! [04:19] well, you will do some testing for the project, right? [04:19] I think I am already. I'll whine a lot if this server crashes or something ;) [04:20] so you'll give something back if you report your findings/results ... [04:20] I will. [04:22] Action: Hurga needs to port quota info from one host to another. Well, this has nothing to do with vserver at least. [04:22] hmm, could be useful for others too .. [04:37] uh, simple. copy the quota file and run quotacheck again. without the c this time... [04:38] hmm, will give you troubles if you want to change to quota format ... [04:38] and I would advise to go for vfsv0 in the long run ... [04:39] I got errors when I tried the default, which is the newer version. But I just want to run this vserver until I manage to port everything over to one with a recent distro... [04:40] yeah, but maybe a quotarep | script stuff would be useful to transfer the quota ;) [04:40] definetely. [05:31] jhh (~heuing@194.245.114.189) left irc: Ping timeout: 493 seconds [05:33] ah, per vserver uptime patch announcement :) [05:33] yup! [05:34] cool :) [05:42] i like the sys_reboot one too, that sounds like a good solution [05:43] hmm... are there any plans to get the vserver stuff into the main kernel, BTW? [05:44] hmm, well yes, there where, but I doubt it will be before 3.0 ;) [05:44] aww. [05:45] I don't think that the whole vserver stuff belongs into the mainstream ... and the kernel maintainers are _very_ creative in what goes in and what not ... [05:45] heh [05:46] creative is a euphemism for random eh? [05:46] Is BSD jail an addon? [05:47] not yet ... why? [05:48] I mean, how do the BSD folks handle this? [05:48] If it doesn't hurt, I don't see a reason why this shouldn't be in the kernel... [05:49] well, okay, let me give an example ... [05:49] you know mount --bind ? [05:49] yup [05:49] ever tried to mount something with mount -o ro --bind ? [05:50] no, I read it doesn't work. [05:50] would be quite useful, though. [05:51] well there is a patch since 2.4.22pre4 or so, which I try to get into the kernel 2.4 and 2.6 since more than 3 month now ... without any succes ... not even a response from the maintainer ... [05:52] not good... [05:52] Action: Hurga wonders if Rik might be able to help :) [05:53] the kernel maintainers said, check with Al Viro ... but he doesn't respond ... [05:53] Keep trying, sometimes folks are busy or somesuch... [05:54] This is the drawback to linx as a community project :( [05:54] well, you can be damn sure that I will keep trying ... ;) [05:54] Sometimes it's just chaos. [06:21] hmm... the vserver has a few ports open I don't like... how do I filter them? (the host doesn't even see them) [06:21] what ports? [06:21] network... [06:21] yeah, what port numbers? [06:22] 8005, 8008, 8080... [06:22] probably apache started in the vserver, no? [06:22] tomcat. [06:23] okay, so you want to have tomcat running but block the ports, right? [06:23] I'd prefer the rest of the world can't access them. :) [06:23] *nod* [06:23] okay, best solution would be to configure tomcat ... [06:24] second best solution is to use iptables on the host ... [06:24] I'd use iptables. But I'm unsure how, when the mhost doesn't see the open ports... [06:25] use chcontext --ctx 1 [06:26] *grin* Ok. And use iptables just like before? [06:27] basically yes, only for the aliased interfaces ... [06:28] I'm asking because network behaves a *bit* unexpected. I have ssh on 0.0.0.0 on the host. I create an IP alias, I get the host ssh on the new IP. I create a vserver, I get the vserver's ssh..... [06:29] It's the same IP alias though. [06:30] well, if you use the v_sshd wrapper on the host, everything should be fine ... [06:31] I can configure that in the sshd.conf, too. [06:32] will give slightly different results, but yes, you can ... [06:43] mugwump (~sv@stc.surreytech.co.uk) left irc: Quit: 4am is definitely time to call it a night [07:18] good night... [07:18] night ... [07:18] Hurga (ident@pD9E7A8DE.dip.t-dialin.net) left irc: Quit: Leaving [07:24] gravastar (~gravastar@darkstar.acun.net) joined #vserver. [07:25] gravastar (~gravastar@darkstar.acun.net) left #vserver. [08:20] Nick change: Bertl -> Bertl_zZ [08:30] ensc (~ircensc@ultra.csn.tu-chemnitz.de) left irc: Ping timeout: 493 seconds [10:20] loger joined #vserver. [12:05] mhepp (~mhepp@r72s22p13.home.nbox.cz) joined #vserver. [13:57] serving (~serving@213.186.191.48) left irc: Ping timeout: 493 seconds [14:55] shadow (~umka@212.86.233.226) joined #vserver. [15:01] day :) [15:34] serving (~serving@213.186.189.236) joined #vserver. [15:55] Hurga (ident@217.231.168.222) joined #vserver. [17:21] Nick change: Bertl_zZ -> Bertl [17:21] hi all! [17:22] Hello Herbert [17:23] hi alex! did you sleep well? [17:23] yes :) [17:23] and you ? [17:24] yes, thanks ... [17:24] how does your brnach handle reboot/halt? [17:24] s/brnach/branch/ [17:27] sounds very good - i speculate about it.. but not have time for create it.. [17:28] hmm, guess you can just apply/incorporate that ... should not give any troubles ... [17:28] okey :) [17:29] you have to write the userspace helper, as there is none at the moment ... [17:30] by the way, last time I visited FreeVPS, I didn't see a link to linux-vserver.org ... [17:31] my tech writers create only model and reference desing of site.. [17:32] you see many points is empty.. only links to old materials on psoft site.. [17:33] well, I would be glad if you could put a link somewhere (maybe on the front page? ;) [17:34] okey. i send mail to writers.. [17:35] okay, lets get to work, resource limit types, right? [17:36] yes it is ;-) [17:36] 1 CPU SLICE [17:36] 2 NR PROCESSES [17:36] 3 MAX NR CPUs [17:36] 4 MEMORY VM [17:36] 5 MEMORY RSS [17:36] 6 MEMORY LOCKED [17:36] 7 FILE HANDLES [17:36] 8 FILE LOCKS [17:36] 9 TERMINALS [17:36] is my latest status ... [17:37] if you want we can add the DISK space/inodes and Bandwidth for a total limit ... [17:38] i think all control limits centralizeted in on place. how a you ? [17:39] well, this interface only works for general limits, so we have to handle the per partition and per interface limits in some other way, I would suggest device specific ioctl (I do this for the disk limits, and it can be done for network too) [17:40] 10 DISK SPACE [17:40] 11 DISK INODES [17:40] 12 BANDWIDTH [17:41] maybe [17:41] 12 INBOUND [17:41] 13 OUTBOUND [17:41] 13 NR_LOCKS /* maximum file locks held */ [17:42] ahh okay lost that somewhere ... [17:42] no, is 8 ;) [17:42] ok :) [17:42] but create 2 limits for inbount and outbound is difficult. [17:43] what is the problem, please elaborate ... [17:43] me can have total and outbound limits.. but not inbound and outbound.. [17:43] inbound = total-outbound, right? [17:44] not. [17:44] okay, maybe we should reserve something for I/O in general? [17:45] me can do slowly inbound stream if me need outboud stream.. [17:45] okay, you would prefer a BANDWIDTH over IN/OUTBOUND, right? [17:45] me can`t do slowly inbound stream if me need outboud stream.. [17:46] yes. [17:47] okay, 1-9 we can agree, right? [17:48] i agree 1-12 :) [17:48] if not divide baundwith to inboud and outbound.. [17:48] okay, my suggestion would be we take 1-9, leave a space up to 16 and then add the folowing [17:48] 17 DISK SPACE [17:48] 18 DISK INODES [17:48] 19 BANDWIDTH [17:48] 20 INBOUND [17:48] 21 OUTBOUND [17:48] 22 I/O ACCESS [17:49] as we don't have to implement all limits, you can decide what you support ... [17:50] what is limit for I/O ACCESS ? [17:50] maybe some usage limit for the I/O scheduler ... or something like this ... [17:51] and me skip NR_ESTABLISHED_CONNECTS :-\ [17:51] we forgot the connections (network) [17:51] ;) [17:51] 10 ESTABLISHED [17:51] okay? [17:52] okey. [17:52] for bind sockets be add limit ? or not ? [17:53] hmm, not sure ... maybe 10 SOCKETS , 11 ESTABLISHED ? [17:56] herbert - me not do control in one limits SOCKETS - all types sockets- bind, established, time_wait. [17:57] me can only add per type limit, and i not think good idea limits for time_wait sockets.. [17:57] okay what about: [17:58] 10 NR_BIND_SOCKS [17:58] 10 SOCKETS [17:58] 11 SOCK BOUND [17:58] 12 SOCK ESTAB [17:58] again SOCKETS may remain unused ... [17:58] delete ? [17:59] I would like to use it to limit the socket() call maybe? [17:59] hm.. for unconnected sockets ? [18:00] simple for the socket creation .. like inodes for file existance ... [18:03] hm.. wait - i analise it point in kernel.. [18:07] yes - me control it in sk_alloc as use sock slab [18:08] or create per context sock slab cache.. [18:08] so it should be okay then, right? [18:08] yes. [18:09] it control not socket, but sock structure. [18:10] http://vserver.13thfloor.at/Stuff/vs-limits.txt [18:11] you can rename 10 to NR_SOCKS ? [18:12] sock != socket [18:12] it different layer and structures [18:13] but 11 and 12 talk about socket structure. [18:13] okay ... [18:16] thanx [18:17] okay, guess we are done with that ... right? [18:19] hm.. virtual network device count it in this place ? or not ? [18:20] nope, I would suggest to do the limits for specific interfaces/partitions via the device itself ... [18:21] okey. [18:23] what are your plans regarding 2.6? [18:24] but one note - i planing change my memory limit from VM size to real memory usage.. you agree it ? or for me need special limit ? [18:25] what is real memory size? [18:26] count pages real used in context aplications - in fork me create new VM but not allocate new memory. [18:26] memory allocated later - in process do COW.. [18:26] what if we just add MEMORY PAGES before MEMORY VM ? [18:27] it fine. [18:27] okay .. updated it ... [18:29] reload. [18:31] what my plain regarding 2.6? hm.. [18:31] rh close RH linux lime.. [18:33] i thinks collect pacthes by itself with based on AC or MM patches. [18:34] or mirgrate to debian kernel with some changes... i don`t take decision [18:34] ... [18:34] eh.. [18:35] would you like to work together on a 2.6 release? [18:35] yes, certainly. [18:36] but i want first stable release 2.6 for test.. [18:36] I would like to stay with the vanilla tree, but debian/fedora variants will come naturally ... [18:37] how much time will you have for such a project in the next 3 months? [18:37] hm.. explain... [18:38] what? ;) [18:38] i don`t understand you last line.. [18:38] okay how much time could you spend on a 2.6 vserver project in the next 3 months ... [18:39] freevps is my fulltime job in psoft... [18:39] yeah, but you won't spend all your time on the 2.6 vserver, will you? [18:40] after release first stable vsersion 2.6 - i can migrate add development to this kernel tree.. [18:41] if you have me can combine work on 2.6 [18:41] for you disk and diskquota parts [18:42] for say - network part [18:42] and in other parts cooperate.. [18:43] what you think about it ? [18:43] when is the release scheduled? [18:45] my release ? i send for install in beta testers.. [18:45] so probably this month, right? [18:46] i hope... ext3 is bad bug :( [18:46] yeah, but not only for you ;) [18:48] i try find and fix it bug.. but.. i have very small knows about journaling fs.. [18:49] did some of the ext3 guys have a look at it, yet? [18:54] only honza send mail to i... [18:55] who is responsible for ext3 at the moment, stephen? [18:56] i don`t know.. [18:56] :) [18:57] EXT3 FILE SYSTEM [18:57] P: Stephen Tweedie, Andrew Morton [18:57] M: sct@redhat.com, akpm@zip.com.au, adilger@clusterfs.com [18:57] L: ext3-users@redhat.com [18:57] S: Maintained [18:58] so yup, stepehn and andrew ... maybe you should cc them ... [19:00] hm.. i try send mail to his.. [19:01] but i plain move to xfs as primary fs for vservers. what you think about it ? [19:02] hmm, I'm not sure ... the quota system is a little strange ;) [19:02] and I had some troubles with xfs about a a year ago ... moved away then ... [19:03] what troubles you have ? [19:03] I would prefer jfs, but they seem to have no quota at all ... [19:03] filesystem corruption and lockups ... [19:04] hm... [19:04] currently ext2 is the only filesystem I trust ;) [19:04] reiserfs have some troubles.. [19:04] eh.. [19:04] in 2.6 fix some races in ext2.. [19:05] yes, but I never had any issues/corruptions with ext2 yet ;) [19:05] eh.. [19:07] in one my stress test after panic - i cont shall make new fs.. but jornaling fs - is more right for vserver usage.. [19:08] I agree, vservers need a journaling fs ... [19:09] Hurga (ident@217.231.168.222) left irc: Ping timeout: 492 seconds [19:11] i probe to test xfs and ask my freedns who work in hosting / isp companies about using xfs.. [19:16] herbert you know when scheduled release 2.6 kernel ? [19:17] no, don't know, but I would say somewhere in the first quarter of the next year ... [19:19] hm.. and after it rh 9.0 be end support.. interested.. [19:27] herber my freend send to me report about using xfs [19:27] > uptime [19:27] 3:16pm up 171 days, 19:57, 3 users, load average: 31.04, 35.75, 36.08 [19:28] /dev/md4 on /home type xfs (rw,usrquota,grpquota,osyncisdsync) [19:28] hmm, looks good ... [19:28] and his not have problems :-\ [19:28] I wanted to analyze the xfs quota anyway ;) [19:40] but if xfs support traditionals diskquota - me can add context quota also... [19:41] xfs has it's own quota system ... [19:43] hm.. i look in xfs code.. [19:46] hm.. xfs not installed in rh kernel.. need download.. [19:53] Hurga (ident@pD9E7988D.dip.t-dialin.net) joined #vserver. [19:53] I used newvserver and created a unifide vserver from a previous RH9 CD install. [19:53] the original RH9 vserver size was about 1.2 GB [19:54] the new unified one was 600 MB [19:54] is that too big ? [19:56] depends ... my servers are around 120MB ... [19:56] and usually unified, so actually 20-30MB per server ... [19:57] so why did I get such a big vserver ? :) [19:57] well, probably you have a lot of packages installed, you'll probably never need in a vserver ... [19:58] ! [19:58] but you can remove them from a vserver one by one ... [19:59] the install-rh9 script did the install from 1st rh9 CD. It reported 490 package installed. [19:59] I usually suggest to take an empty partition/second drive and do a minimum install, this will include some packages you'll never need, but usually produces a slim system ... [20:00] and from that I do a unified vserver ? [20:01] well, you manually reduce it further, and use it as template for all vservers ... [20:01] got it. thanx Bertl :) [20:01] the largest Mandrake server I use, has 239 packages ... [20:31] Herber you test aio in linux ? [20:33] aio? [20:34] yes. [20:35] async. io? [20:35] http://www.kvack.org/~blah/aio/ this one? [20:35] i remenber you create patchset linux-2.4.20-ctx14-aio.diff.bz2 [20:36] yes. [20:37] hmm, I do not remember ... 8-) [20:38] and I'm almost sure I didn't test it ... [20:39] i remeber you have some trobles with acpi and ask me... :-\ but not remember finish this story.. [20:39] well acpi is something I tested ... [20:40] now that it is included in the kernel, there is not much point in adding update patches .. [20:42] hm.. thanks.. [20:45] mhepp (~mhepp@r72s22p13.home.nbox.cz) left irc: Remote host closed the connection [20:49] mhepp (~mhepp@213.211.38.19) joined #vserver. [21:13] JonB (~jon@kg135.kollegiegaarden.dk) joined #vserver. [21:13] hi jon! [21:13] hey Bertl [21:16] anything you are working on? [21:20] uptime patch work fine:P [21:20] should be include ! [21:30] I'll include it in the next devel release ... [21:30] cool [21:31] what about the reboot helper? [21:31] did not try it yet [21:31] will test it today [21:32] still needs some userspace script to do the vserver stuff .. [21:33] what is this? [21:34] well the patch actually works in the following way: [21:36] when a context != 0 calls sys_reboot() this is somewhat preprocessed and a user space helper (a script or a program) is called, and the relevant information is passed on ... [21:36] the kernel part for this is complete, the userspace part isn't done yet, except for a 'log the stuff' implementation ... [21:40] i see [21:52] alekibango (~john@b59.brno.mistral.cz) joined #vserver. [21:52] hi alekibango! [22:00] hi [22:13] Hest (~jon@129.142.112.33) joined #vserver. [22:13] hi Hest? [22:14] Bertl: close your eyes and i will perform a magic trick [22:14] Nick change: Hest -> JonB_ [22:14] oh wow! how'd you do that? ;) [22:14] Bertl: magic ;-P [22:21] JonB (~jon@kg135.kollegiegaarden.dk) left irc: Ping timeout: 493 seconds [22:21] Nick change: JonB_ -> JonB [22:26] hey Bertl what about vserver as modules ? [22:27] hmm, what about processes as modules? [22:28] hm.. vserver can`t be kernel module.. [22:28] ok [22:29] can't be is wrong, but it would add severe overhead to do so .. [22:32] mhepp (~mhepp@213.211.38.19) left irc: Remote host closed the connection [22:34] anybody really high-spirited? I have something to test ... [22:34] Bertl: try me [22:36] http://vserver.13thfloor.at/Experimental/patch-2.4.23-pre9-vs1.1.1c2.diff [22:37] say-out (~say@212.86.243.154) left irc: Ping timeout: 492 seconds [22:37] Bertl: i cant run bigger than 2.24.21 [22:37] 4.21 [22:37] hmm, won't work then, why by the way? [22:38] Bertl: i cant get cipe to work with any bigger kernels [22:38] hmm, this is an addon, right? [22:40] Bertl: it is a set of patches [22:40] matta (matta@69.10.150.254) joined #vserver. [22:40] hi matt! [22:40] Bertl: and i cant get vmware to work on my main machine, so no testing there either :/ [22:40] what do those patches do? [22:40] Bertl: there is patch jari, and patch intl [22:40] Bertl: i think they add crypto api [22:40] okay crypto api shouldn't be a problem .. what else? [22:40] Bertl: then there is patch ppdd, which adds a loopback encryption that allows you to change password [22:40] Bertl: google for ppdd gives you the PPDD homepage [22:41] Bertl: but i would much rather get my vmware to work [22:41] hi [22:42] JonB you need help with vmware? [22:42] shuri: yes pleace [22:42] please [22:42] what is the problem [22:43] whicj version? [22:43] workstation [22:43] GSX / ESX [22:43] shuri: well, i only have a license for workstation 3.0 [22:43] ok [22:43] shuri: i run the vmware-config.pl script [22:43] yep [22:43] shuri: it needs to know where my kernel is... [22:44] yes [22:44] shuri: but i run 2.6 [22:44] ha [22:44] think is not support yet [22:44] shuri: damn [22:44] run 2.4 [22:45] and 2.6 in vmware [22:45] :P [22:45] shuri: then i have to reboot [22:45] yes [22:45] hehe [22:45] shuri: i cant get it up and running in 2.4.x anyway :/ [22:45] shuri: it compiles, and then later on says it is not good enough [22:45] try with 2.4 [22:45] 4.0 sorry [22:46] workstation [22:46] the serial is everywhere [22:46] on the net [22:46] shuri: does 4.0 work with 2.6 ? [22:47] inside a vmware yes [22:47] shuri: i'd prefer on the outside [22:47] but dont know for the host [22:49] Download http://ftp.cvut.cz/vmware/vmware-any-any-update43.tar.gz [22:49] It contains source updates that support 2.6.0 kernels. Note that for users of glibc-2.3.x, vmware-nat support is still broken on 2.6.x. [22:49] edit the file /usr/bin/vmware-config.pl [22:49] replace string 'ksyms' to 'allksyms' and it should work [22:49] btw on RH9 and kernel 2.6.0test7 everything works so far... [22:49] shuri: thanks :) [22:50] pleaure [22:50] shuri: do those work with 3.0 ? [22:51] dont know [22:52] hmmm... [22:53] shuri: which does it work for ? [22:53] I'm running a vserver with quota, but I'd prefer not to have quota on /var/spool/mail. Any ideas? [22:53] well, don't add tagctx for that partition ... [22:54] hmm? [22:54] my vserver is one partition... [22:55] and you would like to share all the space with /var/spool/mail? [22:55] JonB vmware-any-any-update43.tar.gz [22:55] any any any [22:55] :P [22:55] test it [22:55] shuri: i am trying to figure out where to put the files [22:55] @Hurga maybe you should explain your setup, and what you want ... [22:55] ./runme.pl [22:57] Bertl: Sure. LVM on raid1, I created a partiton which runs a vserver, with (secure) quota. I now noticed that this quoua for all of the vserver is not good for /var/spool/mail where I'd prefer not to have quota. [22:58] okay, but this would mean that the quota is useless, because everybody could store their data in /var/spool/mail, right? [22:58] nope. users have restricted shell. [22:59] so you think they could not do that, right? [22:59] Yes. [22:59] Worked fine for years :) [22:59] I only had quota on /home. [22:59] okay, in this case, create a separate partition for the mail stuff ... and mount a subdirectory of that into each vserver ... or do the inverse on the /home ... [23:00] layout: part1: vserver, part2: home [23:00] mount a subdirectory of that into the vserver? [23:00] you want quota per vserver, you have to have home per vserver ... [23:01] that is understood. [23:01] you could do the following ... make a partition for all vservers [23:01] use the unification on that ... (no quota necessary ...) [23:02] and then make your lvm partiton per vserver /home ... [23:03] ok ok, I think I get you, I just would like to know how to get the new partition into the vserver. [23:03] simply name the lvm volume after the vserver, and you can automount/umount it on start/stop [23:03] you know the .sh scripts? [23:03] sure... [23:04] okay pre-start: mount post-stop: umount [23:04] ok, again. I have /dev/volg1/lvol2 14111960 12286088 1109072 92% /vservers/tig [23:04] now I create /dev/volg1/lvol3 for /var oder /home [23:04] this is the current layout ... [23:04] and what then? :) [23:05] best would be to do it this way: [23:05] make a /dev/volg1/virt (this will contain all vserver, except for the home part ...) [23:06] move all vservers there, except for the home directory ... [23:06] then you'll have a /dev/volg1/tig (which contains the home directory, or it's contents) [23:07] at vserver start (in the tig.sh script) you mount this onto the already mounted /dev/volg1/virt, which is mounted on /vservers) [23:07] hmm, nice.... [23:08] this way you get unification and quota ... [23:09] Action: Hurga goes and tries stuff. brb with another stupid quiestion soon, for sure. [23:14] this is excellent :) [23:28] @Jon well I guess, either you port the ppdd or you let it go ... [23:28] Bertl: i dont let it go [23:29] Bertl: i need encryption, and i NEED to be able to change the key [23:29] well, it uses the old api ... [23:29] Bertl: i know [23:29] since 2.4.22 the new crypto api is included into the kernel [23:30] Bertl: i know [23:31] so JonB is it working ? [23:31] what is the advantage of ppdd over, lets say des encrypted loop? [23:40] shuri: just about to reboot [23:40] Bertl: you can change the password (key) [23:41] Bertl: i'll be right back [23:41] JonB (~jon@129.142.112.33) left irc: Quit: Client exiting [23:45] uptime [23:45] Unknown HZ value! (3427) Assume 100. [23:45] 13:12:50 up 0 min, 0 users, load average: 0.53, 0.51, 0.25 [23:45] JonB (~jon@129.142.112.33) joined #vserver. [23:45] uptime [23:45] 08:12:38 up 12 min, 1 user, load average: 0.69, 0.53, 0.26 [23:46] what does this tell me? [23:46] shuri: grep: /proc/allksyms: Ingen sådan fil eller filkatalog [23:47] shuri: how was it, nat did not work ? [23:48] ENOENT? [23:49] vmware-nat support is still broken on 2.6.x. [23:49] shuri: okay, i'll try bridging [23:50] shuri: it appears to be working [23:51] Bertl how the reboot work? [23:51] i got http://www.paul.sladen.org/vserver/sys_reboot/schelper [23:51] well, simple, you add the patch ... [23:51] yes [23:51] done [23:51] and it will call /sbin/vshelper [23:52] the details regarding the arguments/environment are in my mail to the list ... [23:52] ok [23:52] about uptime [23:52] uptime [23:52] Unknown HZ value! (373) Assume 100. [23:52] 13:17:02 up 4 min, 0 users, load average: 0.01, 0.21, 0.18 [23:52] i got this [23:53] if you do testing, keep in mind that reboot does call init, which will not work, reboot -f does not ;) [23:53] where does this happen, on each vserver or only on one specific? [23:53] i got only one vserver [23:54] will make another .. [23:54] and it happens inside? [23:54] yes [23:54] est1:/# uptime [23:54] Unknown HZ value! (320) Assume 100. [23:54] 13:18:07 up 5 min, 0 users, load average: 0.00, 0.17, 0.17 [23:54] test1:/# exit [23:54] logout [23:54] VS:~# uptime [23:54] 08:18:10 up 18 min, 1 user, load average: 0.00, 0.16, 0.17 [23:55] could you strace the uptime command inside and outside (with strace >= 4.5) and put the logs somewhere? you know how to do that? [23:55] i can but dont know how [23:56] okay, first you get strace as .tar.gz (or bz2) unpack/configure/make [23:56] then you do: strace uptime >/tmp/uptime.log 2>&1 [00:00] --- Sun Nov 9 2003