Displaying 10 results from an estimated 10 matches for "event_control".
2015 Sep 24
1
Guest cpuacct counters and others location
...running on the host , these counters are not found at the same location :
CentOS 7 :
ls /sys/fs/cgroup/cpuacct/machine.slice/machine-qemu\\x2drhel6.0.scope/vcpu0
cgroup.clone_children cgroup.procs cpuacct.usage cpu.cfs_period_us cpu.rt_period_us cpu.shares notify_on_release
cgroup.event_control cpuacct.stat cpuacct.usage_percpu cpu.cfs_quota_us cpu.rt_runtime_us cpu.stat tasks
]#
RHEL6 :
ls /cgroup/cpuacct/libvirt/qemu/VM_Orion-1/vcpu0
cgroup.event_control cgroup.procs cpuacct.stat cpuacct.usage cpuacct.usage_percpu notify_on_release tasks
1) May I assume that th...
2010 Aug 21
1
Rendering a different Javascript file in respond_to
Hi everyone, I am stuck in an (apparently) simple problem.
In my event_controller I have the i_like_it action:
def i_like_it
@event = Event.find(params[:id])
... # logic
respond_to do |format|
format.js
end
end
In my case "i_like_it" is called with :method => PUT (it is an Ajax
call, "i_like_it.js.erb" will be returned as a...
2010 Jan 25
1
ActionMailer does not find templates in production mode
...ter_awaiting_approval''
/usr/lib/ruby/1.8/observer.rb:185:in `notify_observers''
/usr/lib/ruby/1.8/observer.rb:184:in `each''
/usr/lib/ruby/1.8/observer.rb:184:in `notify_observers''
(eval):10:in `create_or_update_without_callbacks''
app/controllers/event_controller.rb:71:in `request_approval''
public/dispatch.fcgi:24
However, I do have a corresponding template named
"approval_requested_notification.text.plain.erb" in "app/views/event_mailer",
which is correctly picked up in development mode. In production mode, however,
th...
2012 Dec 13
1
RHEL6 cgroup error after a few days of uptime
...emu/r04s14/cpu.rt_period_us
/cgroup/cpu/libvirt/qemu/r04s14/cpu.rt_runtime_us
/cgroup/cpu/libvirt/qemu/r04s14/cpu.stat
/cgroup/cpu/libvirt/qemu/r04s14/cpu.cfs_period_us
/cgroup/cpu/libvirt/qemu/r04s14/cpu.cfs_quota_us
/cgroup/cpu/libvirt/qemu/r04s14/cpu.shares
/cgroup/cpu/libvirt/qemu/r04s14/cgroup.event_control
/cgroup/cpu/libvirt/qemu/r04s14/notify_on_release
/cgroup/cpu/libvirt/qemu/r04s14/cgroup.procs
/cgroup/cpu/libvirt/qemu/r04s14/tasks
/cgroup/cpuacct/libvirt/qemu/r04s14
/cgroup/cpuacct/libvirt/qemu/r04s14/cpuacct.stat
/cgroup/cpuacct/libvirt/qemu/r04s14/cpuacct.usage_percpu
/cgroup/cpuacct/libvirt/...
2011 Jan 23
2
Cgroup
...virsh, and want to change cpu shares I receive an error
virsh # schedinfo --set cpu.shares=2048 test
Scheduler : posix
error: internal error cannot find cgroup for domain test
Really I didn't have any group test in
$ ls /dev/cgroup/cpu/sysdefault/libvirt/qemu/
cgroup.clone_children cgroup.event_control cgroup.procs cpu.shares
notify_on_release tasks
It happens if I run libvirt as usual user, how can I grant access to
create cgroup to ordinary user?
--
Nikita A Menkovich
JID: menkovich at gmail.com
2006 Mar 02
6
Newb question about facade columns
...ecord::Base
# create a a field based on updated_at, that''s an actual Date kind
# of object
def occurred_at
Time.at( read_attribute("updated_at") )
end
def occurred_at=(date)
write_attribute( "updated_at", date.to_i )
end
end
event_controller.rb
--------------
...
def update
@event = Event.find(params[:id])
if @event.update_attributes(params[:event])
flash[:notice] = ''Event was successfully updated.''
redirect_to :action => ''show'', :id => @event
else
rend...
2006 Jun 10
6
table associations
...d each event has one user. Instead of
seeing the id number for each event''s user, I''d rather display the
names of users instead. I tried to do this:
class Event < ActiveRecord::Base
belongs_to :user
end
class User < ActiveRecord::Base
has_many :events
end
in the event_controller.rb:
def list
@users = User.find(:all)
@events = Event.find(:all)
end
in the list.rhtml:
<% @events.each do |eachevent| %>
<tr>
<td><%= link_to eachevent.action, :action => "show", :id =>
eachevent.id %>
<TD><%= ea...
2015 Oct 29
2
How to retrieve legacy cgroups location ?
Hi,
As told in "Control Groups Resource Management" libvirt page :
Legacy cgroups layout
Prior to libvirt 1.0.5, the cgroups layout created by libvirt was different from that described above, and did not allow for administrator customization. Libvirt used a fixed, 3-level hierarchy libvirt/{qemu,lxc}/$VMNAME which was rooted at the point in the hierarchy where libvirtd itself was
2014 Sep 15
2
cgroups inside LXC containers losts memory limits after some time
...ontainer present cgroups.
Example for memory:
[root@ce7-t1 /]# ls -la /sys/fs/cgroup/memory/
total 0
drwxr-xr-x 2 root root 0 Sep 15 17:14 .
drwxr-xr-x 12 root root 280 Sep 15 17:14 ..
-rw-r--r-- 1 root root 0 Sep 15 17:14 cgroup.clone_children
--w--w--w- 1 root root 0 Sep 15 17:14 cgroup.event_control
-rw-r--r-- 1 root root 0 Sep 15 17:15 cgroup.procs
-rw-r--r-- 1 root root 0 Sep 15 17:14 memory.failcnt
--w------- 1 root root 0 Sep 15 17:14 memory.force_empty
-rw-r--r-- 1 root root 0 Sep 15 17:14 memory.kmem.failcnt
-rw-r--r-- 1 root root 0 Sep 15 17:14 memory.kmem.limit_in_bytes...
2006 Jun 15
8
rails saves it to the database and I don''t want to
...nes for an event.
so I have an event model
class Event < ActiveRecord::Base
has_many :datetimes
...
end
and a datetime model
class Datetime < ActiveRecord::Base
belongs_to :event
...
end
I have developed a view with the event information and information for
the datetimes. and in the event_controller when I capture a datetime I
do
@datetime = params ....
@event.datetimes << @datetime.
My problem is that "@event.datetimes<<@datetime" saves the datetime to
the datetimes table in the database. And after that when I validate the
event for the datetimes not to overlap if...