LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
Search this Thread
Old 07-04-2013, 09:49 AM   #1
Kaustuv
LQ Newbie
 
Registered: Aug 2011
Posts: 20

Rep: Reputation: Disabled
How to install libcgroup package on centos 5.5?


Hi All,

I have tried to install the libcgroup package using YUM with following command on 32 bit centOS 5.5:
>yum install libcgroup

I have got following error:
No package libcgroup available.

The file /et/yum.repo.d/CentOS-Base.repo is already have entires for
[base]
[addons]
[extras]
[centosplus]
[contrib]

I have following queries?
1) Does 32 bit centOS 5.5 support cgroup?
2) Do I need to add other repositories on .repo file to install libcgroup package?

Regards,
Kaustuv
 
Old 07-04-2013, 11:19 AM   #2
Linux MR
Member
 
Registered: May 2013
Distribution: Red Hat, Scientific, Fedora, openSuSE, Mageia, Mint, Arch
Posts: 57

Rep: Reputation: Disabled
I think you are going to need a newer kernel
Quote:
Red Hat Enterprise Linux 6 provides a new kernel feature: control groups, which are called by their shorter name cgroups in this guide.

Source: https://access.redhat.com/site/docum...uide/ch01.html
but then again you can always search your repos (see if it is in EPEL-type repo)
Quote:
# yum search cgroup
# yum search control group
Hope that helps
 
Old 07-04-2013, 11:44 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,114

Rep: Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639
No libcgroup in any repo, AFAIK.

'libcgroup-0.33' will build on CentOS 5.x (The "el6 version", libcgroup-0.37 failed)
http://archives.fedoraproject.org/pu...3.fc11.src.rpm

# yum install pam-devel byacc

Code:
$ rpmbuild -bb libcgroup.spec 
.
.
Wrote: /home/knudfl/rpms/RPMS/i386/libcgroup-0.33-3.el5.i386.rpm
.
 
Old 07-04-2013, 12:41 PM   #4
Kaustuv
LQ Newbie
 
Registered: Aug 2011
Posts: 20

Original Poster
Rep: Reputation: Disabled
Knudfl,

On which version of kernel on centOS U build libcgroup? Is it on minimum 2.6.24 kernel? I have read somewhere that cgroups work only kernel versio>=2.6.24. Is it right? Or itsit
it can be used on lower version also?

Regards,
Kaustuv
 
Old 07-04-2013, 01:12 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,114

Rep: Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639
# 4 .
Quote:
On which version of kernel on centOS U build libcgroup ?
→ 2.6.18 .
But : No kernel files seem to be required for building libcgroup.

Description : ( from the above mentioned Fedora 11 source )
Control groups infrastructure. The tools and library help manipulate, control,
administrate and monitor control groups and the associated controllers.
http://libcg.sourceforge.net/html/index.html
Wiki http://fedoraproject.org/wiki/Features/ControlGroups

'libcg' http://libcg.sourceforge.net/
> http://lwn.net/Articles/236038/

-

Last edited by knudfl; 07-04-2013 at 01:15 PM.
 
Old 07-06-2013, 12:11 PM   #6
Kaustuv
LQ Newbie
 
Registered: Aug 2011
Posts: 20

Original Poster
Rep: Reputation: Disabled
Hi knudfl,

I have build the rpm of libcgroup from source rpm & installed both libcgroup & libcgroup-devel.But when I tried to mount a cgroup it throws following error:

# mount -t cgroup -o cpuset red /cgroup/red
mount: unknown filesystem type 'cgroup'

My machine is on 2.6.18 kernel booted.
The mount command isn't suporting the Type=cgroup. Anything more I need to do?

Regards,
Kaustuv
 
Old 07-06-2013, 12:30 PM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,114

Rep: Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639
# 6 .

Ref. your post #4 :
""I have read somewhere that cgroups work only kernel version>=2.6.24.""

I guess it means that "groupfs" could be in "kernel-2.6.24 or later" only ?


'libcgroup' is to be used when 'groupfs' ("group file system") is included in the kernel.
And when you actually have a setup with groupfs / groups.

-
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cant install Virtual machine in CentOS 6 Cannot find package qemu-kvm in yum install linux_rhca Linux - Newbie 4 10-19-2011 06:37 AM
How to install mod_jk.so package in centos arun5002 Linux - Server 1 09-27-2011 03:26 AM
libcgroup and /etc/rc.d scripts rmjohnso Slackware 1 02-27-2011 05:39 PM
Added libcgroup mlpa Slackware 1 01-10-2011 09:16 PM
[SOLVED] Centos 5.5 yum install - No package libsdl-dev available. xunil123 Linux - Software 2 08-12-2010 04:03 PM


All times are GMT -5. The time now is 08:30 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration